Open kuba-orlik opened 2 months ago
Hello @manateelazycat i encountered the same problem.
I attached the reproduction code
npm install
npm run lint
eslint outputs following but lsp bridge does not receive any diagnosis from lsp
./src/app/layout.tsx
15:13 Error: 'React' is not defined. no-undef
30:7 Error: Expected a 'break' statement before 'case'. no-fallthrough
@braineo 可以考虑打开 VSCode 的 lsp trace log , 像这个issue https://github.com/manateelazycat/lsp-bridge/issues/1039#issuecomment-2394939660 那样。
我们对比一下 lsp-bridge 和 VSCode 的消息交互, 应该就可以修复。
@braineo 可以考虑打开 VSCode 的 lsp trace log , 像这个issue #1039 (comment) 那样。
我们对比一下 lsp-bridge 和 VSCode 的消息交互, 应该就可以修复。
That's exactly what i did, but i ran out of idea how to fix it.
What I've tried by mimicking vscode but did not work
didConfigurationChange
actively to servertextDocument/diagonstic
to server (this seems to be the key difference in vscode side)
When visiting a buffer in a typescript project, only Typescript errors are shown in the diagnostic list. Eslint errors are not shown. VSCode properly displays eslint issues in this project, so I know that eslint is properly configured.
I have both
typescript-language-server
andvscode-eslint-language-server
installed. Here's how I'm setting up lsp-bridge:With
pgrep
I can see that the eslint server is in fact running.In the messages buffer, I can see that the eslint server is detected
However, in the
*lsp-bridge*
buffer, I see that messages are sent to eslint server, but it doesn't seem to reply. The onlyRecv
lines from the eslint server areRecv window/logMessage notification from 'vscode-eslint-language-server'
after opening a file.But no more
Recv
s than that.I'm using
vscode-langservers-extracted
v4.10.0Downgrading to
vscode-langservers-extracted@4.8.0
(npm install -g vscode-langservers-extracted@4.8.0
) and restarting emacs makes the eslint diagnostics work properly