Skip to content

Error: ENOENT: no such file or directory, scandir 'lib/java' #1

Description

@lokingdav

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions