Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

`initialize': dlsym(0x1144e7300, tree_sitter_ruby): symbol not found (TreeSitter::DocumentError) #13

Open
geoffw8 opened this issue Apr 24, 2022 · 0 comments

Comments

@geoffw8
Copy link

geoffw8 commented Apr 24, 2022

Hey all - can't seem to get the gem working for some reason.

‘’’
irb(main):002:0> document = TreeSitter::Document.new('a + b * 5', language: 'tree_sitter_ruby')
Traceback (most recent call last):
(irb):2:in `initialize': dlsym(0x1144e7300, tree_sitter_ruby): symbol not found (TreeSitter::DocumentError)
Works perfectly from the command line, though i.e. tree-sitter parse app/controllers/some_controller.rb
‘’’

I had a dig into the gem code but its C, so a little bit over my head.

I seem to have been able to have had the gem install with native extensions on both the brew install location and using ‘TREE_SITTER_PARSER_DIR=[rails_app]/src/tree_sitter bundle install’ - but neither time I could get past that error.

I should add that my language in grammar.js is ruby and it doesn't work with that as the language: option either.

Thanks in advance for any help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant