Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile doesn't work with tree-sitter 0.22 #48

Open
mavit opened this issue Apr 10, 2024 · 2 comments
Open

Makefile doesn't work with tree-sitter 0.22 #48

mavit opened this issue Apr 10, 2024 · 2 comments

Comments

@mavit
Copy link

mavit commented Apr 10, 2024

With recent versions of tree-sitter, make ends with the following error:

src/parser.c:1:10: fatal error: tree_sitter/parser.h: No such file or directory
    1 | #include <tree_sitter/parser.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: src/parser.o] Error 1

This appears to do the trick:

rm Makefile
tree-sitter generate
sed -i 's/^VERSION := 0\.0\.1$/VERSION := 0.1.2/' Makefile
@camdencheek
Copy link
Owner

Fixed! Thanks for the report.

@mavit
Copy link
Author

mavit commented May 10, 2024

Thanks, but now it fails with:

install: cannot stat 'bindings/c/tree-sitter-dockerfile.h': No such file or directory
make: *** [Makefile:91: install] Error 1

This file is created by tree-sitter generate, but this is obscured by the following .gitignore rule:

/bindings/c/*.h

@camdencheek camdencheek reopened this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants