-
Notifications
You must be signed in to change notification settings - Fork 180
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
Enable tree sitter code only when it's enabled #522
Conversation
This does not work for me. When I apply it locally, flycheck reports that |
Perhaps that should be an or? |
Adding Turning the I am reluctant to turn on native tree-sitter mode, as I develop some tree-sitter grammars and have the non-native tree-sitter support enabled. |
@alanz When do you actually see that warning that was reported by you ? Is it during installation or during some other step (Your latest comment indicates it's during flycheck) ? I can try reproducing it locally for my setup. I don't think doing |
I agree or is not the right step, it broke completely. I see the error on starting up emacs. I guess I need to dig more deeply into the actual origin. And/or go full native tree-sitter. |
And it seems the warning is benign, I have the functionality I need regardless. |
Looking at my Messages buffer - I can see a similar type of warning:
I receiving the warning even though I'm using a tree sitter based setup. Probably it's able to find the grammars subsequently, not sure.
Thanks for the confirmation, I assumed something was broken. Given the situation, I will close this PR. I would be happy to accept any PR that fixes the warning. :-) |
FYI, I switched to emacsformacosx, which has tree-sitter support build in. Without explicitly asking for the tree-sitter mode, I am getting
Which I guess means I need to work out how to install the language. Is it documented somewhere? A quick scan of the README does not show anything |
And it looks like the steps are init.el (setq treesit-language-source-alist
'((rust "https://github.com/tree-sitter/tree-sitter-rust")
)) In emacs |
My final piece of barrage. Putting the following into my init.le (use-package rust-ts-mode
:custom
(rust-mode-treesitter-derive t)
...
)
...
(use-package lsp-mode
:hook (rust-mode rust-ts-mode)
...
) And basically using
|
No description provided.