-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: dlopen: symbol not found in flat namespace (_tree_sitter_kotlin_external_scanner_create) #120
Comments
@jennycai0807 Can you please provide a full repro command and OS you're using? |
@VladimirMakaev // Function to create and set the language for the parser const parser = new Parser(); // parse code OS: Mac 12.6.1 |
I appreciate the repro but how do I execute this? Do I save this to a js file and run node? Probably not. |
@VladimirMakaev The repro command is: |
Hi @VladimirMakaev Is there a workaround to skip this error? It blocks my process. |
I'm not sure. If you have a way to check this from sources try if this still breaks with this PR. #121 Otherwise you're welcome to figure this out and send a fix. I don't think anybody is currently looking specifically at fixing this. Alternatively you can try bisecting to figure out where this broke and use a previous release |
I encountered the same error import { default as Parser } from "tree-sitter";
import language from "tree-sitter-kotlin";
const parser = new Parser();
parser.setLanguage(language); versions
"dependencies": {
"tree-sitter": "0.21.0",
"tree-sitter-kotlin": "0.3.6"
} OS
When I use So, I have to use
And I tried #121 by defining dependencies as bellows, but I encountered an error "dependencies": {
"tree-sitter": "0.21.0",
"tree-sitter-kotlin": "github:fwcd/tree-sitter-kotlin#7f6b43684536f9a7d26fb045bd79862e5710df9a"
} |
Hi there, I face a similar issue with Node 20.15.1 with the I run this basic code:
I get this issue:
Hope that helps :-) |
Error message:
node:internal/modules/cjs/loader:1452
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: dlopen(/Users/jenny.cai/Source/detect-bug-in-code/node_modules/tree-sitter-kotlin/build/Release/tree_sitter_kotlin_binding.node, 0x0001): symbol not found in flat namespace (_tree_sitter_kotlin_external_scanner_create)
at Module._extensions..node (node:internal/modules/cjs/loader:1452:18)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at load (/Users/jenny.cai/Source/detect-bug-in-code/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object. (/Users/jenny.cai/Source/detect-bug-in-code/node_modules/tree-sitter-kotlin/bindings/node/index.js:3:43)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32) {
code: 'ERR_DLOPEN_FAILED'
}
Version:
"tree-sitter": "^0.21.1",
"tree-sitter-javascript": "^0.21.1",
"tree-sitter-typescript": "^0.21.1",
"tree-sitter-java": "^0.21.0",
"tree-sitter-kotlin": "^0.3.6",
"tree-sitter-swift": "^0.3.6",
"tree-sitter-cpp": "^0.22.0",
"tree-sitter-html": "0.20.3"
The text was updated successfully, but these errors were encountered: