Skip to content
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

LS wont work on neovim: "Panic: unimplemented request: workspace/semanticTokens/refresh" #155

Open
3 tasks done
Aggeloz opened this issue May 8, 2023 · 2 comments
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@Aggeloz
Copy link

Aggeloz commented May 8, 2023

Describe the problem

I installed NVChad and i tried installing the Arduino LS but every time i open a project it stops and i get this panic in the log:

[ERROR][2023-05-10 11:50:32] .../vim/lsp/rpc.lua:734	"rpc"	"arduino-language-server"	"stderr"	"11:50:32.145073 \27[91mIDE     LS <-- Clangd REQU workspace/semanticTokens/refresh 1\27[0m\n"
[ERROR][2023-05-10 11:50:32] .../vim/lsp/rpc.lua:734	"rpc"	"arduino-language-server"	"stderr"	"11:50:32.145150 Panic: unimplemented request: workspace/semanticTokens/refresh\n\ngoroutine 13 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\ngit.luolix.top/arduino/arduino-language-server/streams.CatchAndLogPanic()\n\t/home/build/streams/panics.go:29 +0x74\npanic({0xa353e0, 0xc00001c690})\n\t/usr/local/go/src/runtime/panic.go:838 +0x207\ngo.bug.st/lsp.(*Client).requestDispatcher(0xc0003947b0, {0xc49e70, 0xc00020ee80}, {0xc447e0, 0xc0002f4498}, {0xc0005a2920, 0x20}, {0xc000038ad8, 0x4, 0x8}, ...)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/client.go:199 +0x9fd\ngo.bug.st/lsp/jsonrpc.(*Connection).handleIncomingRequest(0xc000106080, 0xc0001d90e0)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:153 +0x2bb\ngo.bug.st/lsp/jsonrpc.(*Connection).handleIncomingData(0xc000106080, {0xc00001e540, 0x52, 0x52})\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:128 +0x167\ngo.bug.st/lsp/jsonrpc.(*Connection).Run(0xc000106080)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:119 +0x98\ngo.bug.st/lsp.(*Client).Run(...)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/client.go:83\ngit.luolix.top/arduino/arduino-language-server/ls.(*clangdLSPClient).Run(...)\n\t/home/build/ls/lsp_client_clangd.go:103\ngit.luolix.top/arduino/arduino-language-server/ls.(*INOLanguageServer).initializeReqFromIDE.func1.1()\n\t/home/build/ls/ls.go:218 +0x5b\ncreated by github.com/arduino/arduino-language-server/ls.(*INOLanguageServer).initializeReqFromIDE.func1\n\t/home/build/ls/ls.go:216 +0x4b0\n\n"
[ERROR][2023-05-10 11:50:32] .../vim/lsp/rpc.lua:734	"rpc"	"arduino-language-server"	"stderr"	"panic: unimplemented request: workspace/semanticTokens/refresh [recovered]\n\tpanic: unimplemented request: workspace/semanticTokens/refresh\n\ngoroutine 13 [running]:\ngit.luolix.top/arduino/arduino-language-server/streams.CatchAndLogPanic()\n\t/home/build/streams/panics.go:30 +0x145\npanic({0xa353e0, 0xc00001c690})\n\t/usr/local/go/src/runtime/panic.go:838"
[ERROR][2023-05-10 11:50:32] .../vim/lsp/rpc.lua:734	"rpc"	"arduino-language-server"	"stderr"	" +0x207\ngo.bug.st/lsp.(*Client).requestDispatcher(0xc0003947b0, {0xc49e70, 0xc00020ee80}, {0xc447e0, 0xc0002f4498}, {0xc0005a2920, 0x20}, {0xc000038ad8, 0x4, 0x8}, ...)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/client.go:199 +0x9fd\ngo.bug.st/lsp/jsonrpc.(*Connection).handleIncomingRequest(0xc000106080, 0xc0001d90e0)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:153 +0x2bb\ngo.bug.st/lsp/jsonrpc.(*Connection).handleIncomingData(0xc000106080, {0xc00001e540, 0x52, 0x52})\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:128 +0x167\ngo.bug.st/lsp/jsonrpc.(*Connection).Run(0xc000106080)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/jsonrpc/jsonrpc_connection.go:119 +0x98\ngo.bug.st/lsp.(*Client).Run(...)\n\t/go/pkg/mod/go.bug.st/lsp@v0.1.2/client.go:83\ngit.luolix.top/arduino/arduino-language-server/ls.(*clangdLSPClient).Run(...)\n\t/home/build/ls/lsp_client_clangd.go:103\ngit.luolix.top/arduino/arduino-language-server/ls.(*INOLanguageServer).initializeReqFromIDE.func1.1()\n\t/home/build/ls/ls.go:218 +0x5b\ncreated by github.com/arduino/arduino-language-server/ls.(*INOLanguageServer).initializeReqFromIDE.func1\n\t/home/build/ls/ls.go:216 +0x4b0\n"

Full output log is here (it was too long to paste in the issue):

logs.log

Expected behavior

I should be able to get auto complete and the rest of the features but all i get is client 8 quit with exit code 2 and signal 0

Arduino Language Server version

0.7.4

Arduino CLI version

0.32.2

Operating system

Linux

Operating system version

Arch Linux

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details
@Aggeloz Aggeloz added the type: imperfection Perceived defect in any part of project label May 8, 2023
@BrunoCooper17
Copy link

I was having a similar issue. Just have to let default server capabilities configuration (no capabilities = capabilities as the default NvChad lspconfig suggest).

arduino-language-server does not support lsp semantic tokens and NvChad tries to set it.

@GiorgosXou

This comment was marked as spam.

@arduino arduino locked as off-topic and limited conversation to collaborators Jun 26, 2023
@per1234 per1234 changed the title LS wont work on neovim LS wont work on neovim: "Panic: unimplemented request: workspace/semanticTokens/refresh" Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants