Replies: 2 comments
-
Rust analyzer only updates most diagnostics on save so you need to save the file for that diagnostic to update. From your lognitnlooks like you never saved. Generally language specific bugs like these are.never related yo.helix itself and instead the language server for the various languages (rust-analyzer in this vase). Helix doenst implement any language specific logic. #6447 improves this somewhat with better tracking for these kinds of "updated on save diagnostics" but the same issue exists in vscode so it's really just a trick i added to work around the LS (rust-analyzer) shortcomings. |
Beta Was this translation helpful? Give feedback.
-
hi @pascalkuthe , thanks commenting on this! Helix Log
|
Beta Was this translation helpful? Give feedback.
-
Summary
I am editing a rust file with the following code:
!Note that this is not a normal character, but a special box drawing unicode character!
When I navigate to the ═ character and
y
ank it, it will give a syntax error warning when trying top
aste it into the &str:The error goes away when I hit
u
ndo.Reproduction Steps
I tried this:
hx .
main.rs
let x = "═";
I expected this to happen:
No error because this is valid rust code (checked with rust playground and it compiles without errors)
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b3867553cbdd613001d336a0cd19e314
Instead, this happened:
I got an syntax error that only goes away when I restart the lsp server or hit
u
ndoHelix log
~/.cache/helix/helix.log
Platform
WSL2 on Windows
Terminal Emulator
Windows Terminal
Helix Version
helix 23.03
Beta Was this translation helpful? Give feedback.
All reactions