-
-
Notifications
You must be signed in to change notification settings - Fork 132
Description
Did you check existing issues?
- I have read all the tree-sitter docs if it relates to using the parser
- I have searched the existing issues of tree-sitter-rust
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
In the Makefile, only the parser is installed, without any queries:
Lines 71 to 78 in 261b202
| install: all | |
| install -d '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter '$(DESTDIR)$(PCLIBDIR)' '$(DESTDIR)$(LIBDIR)' | |
| install -m644 bindings/c/$(LANGUAGE_NAME).h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/$(LANGUAGE_NAME).h | |
| install -m644 $(LANGUAGE_NAME).pc '$(DESTDIR)$(PCLIBDIR)'/$(LANGUAGE_NAME).pc | |
| install -m644 lib$(LANGUAGE_NAME).a '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).a | |
| install -m755 lib$(LANGUAGE_NAME).$(SOEXT) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXTVER) | |
| ln -sf lib$(LANGUAGE_NAME).$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXTVER_MAJOR) | |
| ln -sf lib$(LANGUAGE_NAME).$(SOEXTVER_MAJOR) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXT) |
The tree-sitter-python project hosted under the tree-sitter organisation like tree-sitter-rust, does install queries as seen here:
https://github.com/tree-sitter/tree-sitter-python/blob/26855eabccb19c6abf499fbc5b8dc7cc9ab8bc64/Makefile#L81
Both tree-sitter-lua and tree-sitter-query are also doing this, as seen below:
- https://github.com/tree-sitter-grammars/tree-sitter-lua/blob/e284fcec45ead0d477e326fccd2cd4a68a89dae4/Makefile#L97
- https://github.com/tree-sitter-grammars/tree-sitter-query/blob/6350ad724e7b17a7eea712d4860b4d2ae892e0b6/Makefile#L97
As discussed here, this behaviour is expected from upstream. Currently, in ArchLinux, when installing the tree-sitter-rust package, highlighting doesn't work in Neovim, only parsing.
This issue might be related to #159
Steps To Reproduce/Bad Parse Tree
- Install
tree-sitter-rustfrom the system's package manager. - Don't get any queries for highlight or etc.
Expected Behavior/Parse Tree
To install queries as part of the install command in the Makefile, having it as part of the installation.