Replies: 4 comments 2 replies
-
Could you describe more your environment? Do you have a repo for a grammar that you tried to build? Could you try to adapt to your grammar compiler calls that mentioned in a bellow message? |
Beta Was this translation helpful? Give feedback.
-
The original post seemed to suggest that gcc and clang are available -- may be I misread that -- or perhaps they are not available on FWIW, when I had build issues before I modified code near: tree-sitter/cli/loader/src/lib.rs Line 427 in c51896d tree-sitter cli. That allowed me to manually perform the invocation and experiment / diganose more easily.
May be it's worth having a debug flag to echo the invocation for investigative purposes? |
Beta Was this translation helpful? Give feedback.
-
@ahlinc Nice! Gave it a try:
I especially like the Thanks! |
Beta Was this translation helpful? Give feedback.
-
Yes, I get that Was just happy to be able to see exactly where the shared library ended up because in the past I had encountered issues where the shared library being used was not the one I thought (because of the change in the location that gets referenced In any case, thanks again for this :) |
Beta Was this translation helpful? Give feedback.
-
Hello, It's my first time using tree-sitter. I tried creating grammar by following this tree-sitter page. But failed in step parsing a file.
The error of it:
GCC and Clang version:
Directory list:
Step I do:
gh repo create
cd tree-sitter-arturo
pnpm i nan && pnpm i tree-sitter-cli -D
nvim grammar.js
pnpm exec tree-sitter generate
echo hello > example-file
pnpm exec tree-sitter parse example-file
This where the error beginsBeta Was this translation helpful? Give feedback.
All reactions