Closed Raynos closed 1 year ago
Yeah sorry about that. Duplicate of #209, let's track it over there.
It's clearly not a duplicate because it has nothing to do with missing python
and everything to do with the third party dependency not compiling due to a bug in their C++
It looks like they hard coded g++-10
somewhere
npm ERR! make: g++-10: No such file or directory
And because I don't have g++-10
on my laptop I cannot compile this third party depedency.
I should probably install 2.19.5
instead because it does not have the broken third party dependency.
I should probably install
2.19.5
instead because it does not have the broken third party dependency.
Yes.
I'm thinking about downgrading tree-sitter-bash to v0.19.0 but that will likely not help you here either.
We have this same issue and v2.19.8 does not fix it I'm afraid. The newest version that works is v2.19.5.
It's clearly not a duplicate because it has nothing to do with missing
python
and everything to do with the third party dependency not compiling due to a bug in their C++
Sorry about that, read and assumed too fast that "No prebuilt binaries found" would essentially be the same issue (since the binaries are missing):
npm ERR! prebuild-install warn install No prebuilt binaries found (target=18.16.1 runtime=node arch=x64 libc= platform=linux)
tree-sitter-bash v0.19.0 has this list of binaries: https://github.com/tree-sitter/tree-sitter-bash/releases/tag/v0.19.0. Not sure what's missing that would match your environment(s)?
Wanted to get rid of an ancient dependency. Also see #72. The tree-sitter replacement works slightly better than bash-parser, so I don't fancy reverting, which would be a breaking change again.
None of those prebuilt binaries have anything to do with prebuild-install
( https://github.com/tree-sitter/tree-sitter-bash/blob/master/bindings/node/index.js ).
If you look at https://www.npmjs.com/package/leveldown?activeTab=code it has the binaries in the npm package.
If you look at https://www.npmjs.com/package/tree-sitter-bash?activeTab=code you will see zero binaries in the npm tarball.
The package author of tree-sitter-bash has to change their npm publish strategy ( see https://github.com/Level/leveldown/blob/master/.github/workflows/release.yml as reference )
Guess this wasn't the right time for tree-sitter yet. Reverted to bash-parser in v2.19.11.
Thanks for all the info, I will look into it and pass it through.
None of those prebuilt binaries have anything to do with
prebuild-install
( https://github.com/tree-sitter/tree-sitter-bash/blob/master/bindings/node/index.js ).
prebuild-install
uses the prebuilt binaries in the GitHub Release by default (the script you link then uses the GitHub Release asset fetched through prebuild-install
).
With linking to https://github.com/tree-sitter/tree-sitter-bash/issues/188 I'm going to close this issue.
Tips & tricks still most welcome, either for preventing similar issues in the future or for alternatives.
The tree sitter bash library does not compile.