You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just discovered a regression in the current main build of Zed, where a diagnostic message sent from an LSP is incorrectly getting overwritten by an empty recieved RPC message. This prevents it from appearing under the diagnostics pane (it actually does appear there momentarily, but disappears immediately after this empty diagnostic message is sent).
Preview of this under LSP logs is as follows:
// Receive:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/kartik/code/personal/zed-ansible//example/roles/setup-fedora/handlers/main.yml","diagnostics":[{"message":"Too many blank lines (3 > 2)","range":{"start":{"line":10,"character":0},"end":{"line":10,"character":2147483647}},"severity":1,"source":"ansible-lint","code":"yaml[empty-lines]","codeDescription":{"href":"https://ansible.readthedocs.io/projects/lint/rules/yaml/"}},{"message":"All names should start with an uppercase letter.","range":{"start":{"line":11,"character":0},"end":{"line":11,"character":2147483647}},"severity":1,"source":"ansible-lint","code":"name[casing]","codeDescription":{"href":"https://ansible.readthedocs.io/projects/lint/rules/name/"}}]}}
// Receive:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/kartik/code/personal/zed-ansible/example/roles/setup-fedora/handlers/main.yml","diagnostics":[]}}
This issue is not observed under the current stable release:
Open this file and observe RPC Messages under ansible-language-server logs.
Actual Behavior:
No diagnostic message appears (or more accurately: appears very briefly before being cleared up).
Expected Behavior:
The file should fail linting as all tasks name should be in uppercase, and as such a relevant diagnostic message should appear under the diagnostics pane.
Summary
Hi team, hope you are all doing well!
I have just discovered a regression in the current main build of Zed, where a diagnostic message sent from an LSP is incorrectly getting overwritten by an empty recieved RPC message. This prevents it from appearing under the diagnostics pane (it actually does appear there momentarily, but disappears immediately after this empty diagnostic message is sent).
Preview of this under LSP logs is as follows:
This issue is not observed under the current stable release:
Steps to trigger the problem:
RPC Messages
underansible-language-server
logs.Actual Behavior:
No diagnostic message appears (or more accurately: appears very briefly before being cleared up).
Expected Behavior:
The file should fail linting as all tasks name should be in uppercase, and as such a relevant diagnostic message should appear under the diagnostics pane.
Zed Version and System Specs
Zed: v0.176.0 (Zed Dev 328e4d6)
OS: macOS 15.3.1
Memory: 32 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: