golangci-lint-langserver not working with workspace diagnostics #9729
Replies: 3 comments 2 replies
-
do you mind sharing your language config on how you enable this? |
Beta Was this translation helpful? Give feedback.
-
the same thing happens to me in a python project. Python LSP default config. Platform: macOS Sonoma 14.3.1 |
Beta Was this translation helpful? Give feedback.
-
This is how I got golantci-lint-langserver working on the Arch Linux packaged version of Helix: https://community.tmpdir.org/t/helix-editor/1244/9?u=cbrake @ClaraSmyth Regarding the original question, LazyVIM behaves the same as Helix and only shows me workspace diagnostics for the open buffers: (there are many more problems in this codebase). So, I suspect this is working as intended. You could probably open all source files or something ... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When using golangci-lint-langserver it works fine within the open buffers but when using the workspace diagnostic picker it will not show diagnostics for files not currently open.
Reproduction Steps
I tried this:
hx .
select any file in project
space + D
I expected this to happen:
To display diagnostics across all files in the workspace where the go.mod file is at the root
Instead, this happened:
Only diagnostics for the open buffers are displayed
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
wezterm 20240211-083735-b61c49fa
Installation Method
source
Helix Version
23.10-332-gcd02976f
Beta Was this translation helpful? Give feedback.
All reactions