zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.91k stars 3.15k forks source link

A error diagnostic is shown even though LSP is not showing any error #18621

Open baptisteArno opened 2 months ago

baptisteArno commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Sometimes an error is highlighted in the code and when hovering it, it shows that the LSP is correctly up to date and is not showing any issue (see video recording)

Environment

Zed: v0.155.2 (Zed Preview) OS: macOS 15.0.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/user-attachments/assets/ac6a0815-7808-43af-9d85-492f72cf6b46

If applicable, attach your Zed.log file to this issue.

No response

notpeter commented 1 month ago

I have run into this occasionally as well. Is there anything your Zed Logs (cmd-shift-p, "zed: show log") or of note in the LSP logs (cmd-shift-p, "debug: open lsp logs") then select the language server in question and look under RPC messages.

As a workaround, you could also try restarting the lsp (cmd-shift-p, "editor: restart language server") and see if that helps.