tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
663 stars 118 forks source link

prebuild `tree-sitter.node` can not dlopen on ubuntu20 #203

Closed arashrun closed 4 months ago

arashrun commented 5 months ago

OS: ubuntu20 Node: node20.12 node-tree-sitter: 0.21.1

2024-06-14T23:11:48.600 ERROR (pid:2428) [extensions-manager] - Error on active extension coc-mantic: Error: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/like/conf/datas/extensions/node_modules/coc-mantic/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node)
    at Module._extensions..node (node:internal/modules/cjs/loader:1465:18)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at req (/home/like/conf/pack/code/opt/coc.nvim/build/index.js:77948:17)
    at load (/home/like/conf/datas/extensions/node_modules/coc-mantic/node_modules/node-gyp-build/node-gyp-build.js:22:10)
    at Object.<anonymous> (/home/like/conf/datas/extensions/node_modules/coc-mantic/node_modules/tree-sitter/index.js:1:104)
    at Module._compile (/home/like/conf/pack/code/opt/coc.nvim/build/index.js:77964:28)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32) {
  code: 'ERR_DLOPEN_FAILED'
}