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
LSP: DEBG From server zls: {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/afac/main.zig","diagnostics":[{"range":{"start":{"line":0,"character":7},"end":{"line":0,"character":11}},"severity":1,"code":"ast-check","source":"zls","message":"duplicate struct member name 'main'","relatedInformation":[{"location":{"uri":"/","range":{"start":{"line":1,"character":7},"end":{"line":1,"character":11}}},"message":"duplicate name here"},{"location":{"uri":"/","range":{"start":{"line":0,"character":0},"end":{"line":0,"character":3}}},"message":"struct declared here"}]}]}}
The text was updated successfully, but these errors were encountered:
Zig Version
latest
ZLS Version
latest
Client / Code Editor / Extensions
kakoune
Steps to Reproduce and Observed Behavior
Open a Zig file containing
zig-lsp sends diagnostics with
"uri":"/"
which seems invalid?For more details, see the original report at kakoune-lsp/kakoune-lsp#811
Expected Behavior
"uri"://file/path/to/file.zig"
Relevant log output
LSP: DEBG From server zls: {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/afac/main.zig","diagnostics":[{"range":{"start":{"line":0,"character":7},"end":{"line":0,"character":11}},"severity":1,"code":"ast-check","source":"zls","message":"duplicate struct member name 'main'","relatedInformation":[{"location":{"uri":"/","range":{"start":{"line":1,"character":7},"end":{"line":1,"character":11}}},"message":"duplicate name here"},{"location":{"uri":"/","range":{"start":{"line":0,"character":0},"end":{"line":0,"character":3}}},"message":"struct declared here"}]}]}}
The text was updated successfully, but these errors were encountered: