-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
denols: jumping to definition then returning breaks lsp #1998
Labels
bug
Something isn't working
Comments
Commenting out this line https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/denols.lua#L33 appears to fix the issue. |
This is not fixed by #1995 In my testing it's fixed by commenting out this line https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/denols.lua#L38 |
sigmaSd
added a commit
to sigmaSd/nvim-lspconfig
that referenced
this issue
Jul 14, 2022
fix neovim#1998 I don't have a good idea *how* do this fixes the issue, but so far in my testing with this pr it seems to work perfectly.
justinmk
pushed a commit
that referenced
this issue
Jul 17, 2022
- remove unneeded lsp attach - default to single_file_support=true fix #1998
justinmk
pushed a commit
that referenced
this issue
Aug 23, 2022
I found the root cause of denols problems: neovim/neovim#19797 With that pr applied (and with this revert) denols works perfectly almost identical to vscode deno, its missing some features but I imagine those are out of scope for lspconfig. Problems will reappear until nvim fixes: #1998 This is an ok tradeoff because `single_file_support=true` causes other issues: #2069
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
jumping to definition then returning breaks lsp
coc-deno used to have the same issue but it was recently fixed fannheyward/coc-deno#139
Neovim version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Nvim-lspconfig version
41a8269
Operating system and version
Linux mrcool 5.18.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 02 Jul 2022 21:03:06 +0000 x86_64 GNU/Linux
Affected language servers
denols
Steps to reproduce
echo "console.log(4)" > test.ts
nvim test.ts
gd
to go to definitionActual behavior
Notice that lsp is not working correctly any more and have errors and the console and log have type any
Expected behavior
the lsp should continue working correctly.
Minimal config
LSP log
https://gist.github.com/sigmaSd/dbfd52efc9cf4f96e3e237f3cf65d9e8
The text was updated successfully, but these errors were encountered: