Eslint diagnostics not shown, but EslintFixAll
fixes the errors
#3129
-
I just tried on vscode and I can see them there, but not in neovim. I even tried a fresh install in lazyvim but nothing works. I'm out of ideas. When I save ( Minimal config is: { import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.linting.eslint" },
{ import = "lazyvim.plugins.extras.formatting.prettier" }, I'm thinking that the only problem is not showing diagnostics, but tsserver diagnostics are shown. I'm thinking this because the following code on the eslint extra config is: local diag = vim.diagnostic.get(buf, { namespace = vim.lsp.diagnostic.get_namespace(client.id) })
if #diag > 0 then
vim.cmd("EslintFixAll")
end So, is something about the report on my current buffer that is the problem 🤔 Tsserver + eslint lsp shows on LspInfo and no errors are in the logs I would appreciate the help 🙇 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
I got same problem when update lazyvim this week and don't know how to fix the issue either😭 |
Beta Was this translation helpful? Give feedback.
-
As @dpetka2001 mentioned there seems to be a change in the pre releases which changes the diagnostics from push to pull. Now my question would be if anybody knows where this should be reported to get it to work again in neovim? vscode-langserver-extracted seem to just repackage the thing (and don't have an 'Issues' section). Then is it lsp-config, maybe? Or neovim itself? Any hints would be great. |
Beta Was this translation helpful? Give feedback.
Maybe related? They also seem to not be getting diagnostics from the server. Maybe the latest version distributed by Mason by default is the latest pre-release and has these problems. The eslint-lsp server seems to be downloaded from here. The last 3 days I can see commits for 4.9.0 and 4.10.0. Maybe you could try with 4.8.0 to see if you're getting diagnostics. You can install specific version of a package with Mason via the following command
:MasonInstall [email protected]
. Try to see if that makes any difference.