-
Notifications
You must be signed in to change notification settings - Fork 89
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
Hangs in "Main thread is Waiting" in tree sitter mode (java-ts-mode) #447
Comments
I encountered the same issue. |
Hi @huangfeiyu I get similar results when I use lsp-semantic-tokens-enable, the highlighting is a little confusing. For now, I can continue using the old java-mode. I just struggle with it sometimes, and was hoping the new java-ts-mode would be cleaner. |
Try this: (setq lsp-java-format-tab-size 4) Then restart lsp server. If it works for you then I can push a fix. |
Yep, that fixes it. Thank you!! |
It fixed the launching issue for me too. However, it broke jdtls' snippet expansion (#449). Setting it back to its default value and switching to Upd: I'm sorry for this confusion. The problem was with the |
Describe the bug
Stuck on "Main thread is waiting" when using java-ts-mode (tree sitter mode) now available in Emacs 29. Using standard java-mode seems to work.
To Reproduce
Get tree-sitter grammer for java libtree-sitter-java.so and place in ~/.emacs.d/tree-sitter/
emacs -Q
open test java file
Expected behavior
lsp server will initialize and start working
Logs
The text was updated successfully, but these errors were encountered: