You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think pyright is doing the right thing here. It's registering for the "workspaceFolders" capability. Unlike most capabilities, this one doesn't have a "dynamicRegistration" indication. It's simply a boolean field indicating whether "workspaceFolders" is supported. NeoVim is indicating that it supports this capability ("workspaceFolders = true"). So I think the error message in the attached log is incorrect.
I'm debugging a similar issue and also found this error message. @holmanb Did you report this anywhere else?
In the message
[WARN][2022-04-06 09:38:58] ...lsp/handlers.lua:109 "The language server pyright triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
Describe the bug
Pyright attempts dynamic registration despite the the fact that the client does not support it.
To Reproduce
A minimal pyright configuration with neovim will reproduce. Requires (nvim > 0.5). Enable logging and check the logs.
Expected behavior
I expected to not see this warning.
Screenshots or Code
VS Code extension or command-line
Neither. Neovim 0.5.1 using native lsp.
Additional context
Here is a minimal log containing all of the JSON RPC related to this issue. I am also using esm with flake8 as an LSP server, so there are traces of that in the log. Note
dynamicRegistration = false
on line 2.The text was updated successfully, but these errors were encountered: