Closed wasd96040501 closed 1 month ago
That's a limitation of go that we have not figured out how to solve properly.
A workaround is to add the repo as a git submodule and add this to go.mod
:
replace github.com/tree-sitter-grammars/tree-sitter-markdown => ./tree-sitter-markdown/bindings/go
For context:
github.com/tree-sitter-grammars/tree-sitter-markdown
doesn't work because there's no module in the root.
github.com/tree-sitter-grammars/tree-sitter-markdown/bindings/go
doesn't work because it can't access the parents.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
Go binding cannot build.
Here is my sample code
Terminal output:
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
build success
Repro
No response