empty lines in inline diagnostics #11754
-
SummaryI get some weird line showcasing empty lines with no diagnostic information on, as seen in the picture below. I am wondering if this is expected behaviour because of some rust-analyzer thing? It is not like it is a big issue, but it does look somewhat weird. Is there someway to check of the diagnostic message is empty and then not draw the line perhaps? Reproduction StepsI added a new tuple field to an enum variant. I have not been able to reproduce the rust-analyzer hint in minimal examples unfortunately. Helix logI can provide the log file, but it quite large (around 7 MB just from indexing the rust project, 10s~ of runtime). PlatformNixOS 24.11pre681973.99dc8785f6a0 (Vicuna) x86_64 Terminal Emulatoralacritty 0.13.2 + zellij 0.40.1 Installation Methodflake Helix Versionhelix 24.7 (newer master build) revision 38e6fcd |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is probably an issue with the diagnostics that rust-analyzer produces. Can you search the log for a line that includes "publishDiagnostic" and also "tuple variant has 3 fields"? I expect that the message for the empty ones you see is empty in the publishDiagnostic notification. Filtering these out is probably not a good behavior - this should be fixed in the language server instead. |
Beta Was this translation helpful? Give feedback.
This is probably an issue with the diagnostics that rust-analyzer produces. Can you search the log for a line that includes "publishDiagnostic" and also "tuple variant has 3 fields"? I expect that the message for the empty ones you see is empty in the publishDiagnostic notification. Filtering these out is probably not a good behavior - this should be fixed in the language server instead.