CLI: how tu use parser binary built earlier? #3336
Unanswered
przepompownia
asked this question in
Q&A
Replies: 1 comment 1 reply
-
move the nvim-treesitter parser in ~/.local/share/nvim/..... to ~/.cache/tree-sitter/lib/php_only.so to make it use that one Note that php and php_only are two different parsers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the recent php_only parser I get crash but only on the binary built by nvim-treesitter (nvim-treesitter/nvim-treesitter#6573).
I'd like to report the bug but cannot reproduce it using CLI. Using
strace
I found that the CLI uses~/.cache/tree-sitter/lib/php.so
to parse. It suggests that the parser is built on the fly. I'd like to try the broken binary but not know how to provide the way of building same as nvim-tresitter does (cc -o parser.so -I./src src/parser.c src/scanner.c -Os -shared -fPIC
) to make a closer reproduction.Beta Was this translation helpful? Give feedback.
All reactions