The initial setup script fails because lib/java does not exist. Upon inspecting, I found that the lib folder is empty, so the walk() function throws this error:
running: node rewrite-lib.js
==========jni============
[java]
extracting relation names..
node:internal/fs/utils:347
throw err;
^
Error: ENOENT: no such file or directory, scandir 'lib/java'
at Object.readdirSync (node:fs:1442:3)
at walk (/Users/dahmed/codeql-home/kaist-codeql/rewrite-lib.js:10:19)
at rewriteLib (/Users/dahmed/codeql-home/kaist-codeql/rewrite-lib.js:30:19)
at Object.<anonymous> (/Users/dahmed/codeql-home/kaist-codeql/rewrite-lib.js:84:1)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: 'lib/java'
}```
How do I resolve this issue?
The initial setup script fails because lib/java does not exist. Upon inspecting, I found that the lib folder is empty, so the walk() function throws this error: