-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unresolved symbol: ts_set_allocator (macOS) #80
Comments
You're installing the tree-sitter CLI instead of the library. make -C core
sudo make -C core install
export DYLD_LIBRARY_PATH=/usr/local/lib |
I'm sorry; that didn't help. I confirmed the library is there:
But I'm still getting
Your README.md instructions say to
I assume the above command installs the Also, could you add all of this to your README? |
git clone https://github.com/tree-sitter/tree-sitter-java
cd tree-sitter-java && make && sudo make install Unfortunately I don't have a macOS machine to figure out what's wrong. |
@mikepigott, are you able to build previous versions of java-tree-sitter which do not use If that also fails to find (different) symbols, then maybe it is somehow loading a really old tree-sitter library version? |
I am experiencing the same issue on Windows: Tree-sitter (installed via Chocolatey):
Jextract:
Compiled tree-sitter-java from source:
Added Compiled this project using Maven: build output
|
When I check out v0.24.1:
When I check out v0.24.0:
|
I encountered the same problem. |
Again, that's not the library. |
I suppose what you are referring to is what the documentation calls Edit: after I compiled libtree-sitter from source (https://github.com/tree-sitter/tree-sitter/tree/master/lib) and put tree-sitter.dll on my %PATH%, the unresolved symbol error still persists. |
Hi, I'm trying to install this on my Mac. I have jextract installed:
However, when I run the rest of the README instructions, I get an
java.lang.UnsatisfiedLinkError: unresolved symbol: ts_set_allocator
error, among others. I tried installingtree-sitter
separately, though bothcargo install --locked tree-sitter-cli
andbrew install tree-sitter
, but I'm still getting this error. What am I doing wrong?The text was updated successfully, but these errors were encountered: