Rust syntax highlighting stopped working after upgrade to 25.07 #13968
-
SummaryAfter upgrading to 25.07, syntax highlighting for Rust stopped working, and the logs contain errors related to rust-analyzer. Downgrading to version 25.01.1 solves the problem. Context
Reproduction StepsRust-version 1.88 I tried this:
I expected this to happen: Syntax highlighting to work as intended, and rust-analyzer to run without fatal errors. Instead, this happened: Syntax highlighting does not work, and helix logs contains multiple rust-analyzer errors. Downgrading to 25.01.1 solves the issue. Helix log~/.cache/helix/helix.log
PlatformmacOS Terminal Emulatorrio Installation Methodbrew Helix Versionhelix 25.07 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Syntax highlighting is provided by tree-sitter rather than the language server. If you aren't seeing any highlights at all then try uninstalling and reinstalling the runtime directory https://docs.helix-editor.com/building-from-source.html#configuring-helixs-runtime-files |
Beta Was this translation helpful? Give feedback.
-
What about 25.07 compiled from source? Could you provide minimal example? Try to reproduce the issue with boilerplate cargo init hello world project. If the lsp won't crash, try to add snippet which will crash it. Also, Rust-analyzer version would be pretty helpful |
Beta Was this translation helpful? Give feedback.
Syntax highlighting is provided by tree-sitter rather than the language server. If you aren't seeing any highlights at all then try uninstalling and reinstalling the runtime directory https://docs.helix-editor.com/building-from-source.html#configuring-helixs-runtime-files