Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

[BUG] Double Workspace Loaded on Sumneko 2.6.0 #41

Closed
tigorlazuardi opened this issue Jan 17, 2022 · 6 comments
Closed

[BUG] Double Workspace Loaded on Sumneko 2.6.0 #41

tigorlazuardi opened this issue Jan 17, 2022 · 6 comments

Comments

@tigorlazuardi
Copy link

Two workspaces are loaded in the newest Sumneko lua server when using lua-dev. I can confirm this does not occur when not using lua-dev in lspconfig.

The effect of loading two workspaces is super slow startup for the lsp, and super slow autocompletes and goto definitions.

The proof of two workspaces loaded can be seen in the screenshot by using lsp_status indicator in the status line (the bottom row).

image

This is most likely caused by the new workspaces feature. Can be seen from this compare tag commits.

@captainko
Copy link

I'm experiencing this too.

@captainko
Copy link

@folke can you check this one out? Because of this, the loading time has increased dramatically.

@folke
Copy link
Owner

folke commented Jan 19, 2022

I don't really see anything I can do to fix this?

Seems like a bug in Sumneko? As far as I can see, there's only one lsp client.

@tigorlazuardi
Copy link
Author

tigorlazuardi commented Jan 19, 2022

Thank you for the answer. Downgrading sumneko_lua to v2.5.6 fixed the issue. It seems best to wait until sumneko_lua to be stable before going to v2.6.x or higher.

I consider this issue from my side closed, but left the decision to close it to you.

@ikerurda
Copy link

ikerurda commented Jan 21, 2022

Hi!
Could this be related?

warn message in ~/.cache/nvim/lsp.log:

[WARN][2022-01-21 14:39:09] .../lua/vim/lsp.lua:812	"server_request: no handler found for"	"workspace/semanticTokens/refresh"

I'm getting 100% CPU usage and no response from the server.

I've also tried it without applying

require("lua-dev").setup { lspconfig = M.general }

and the warning keeps appearing (I assume it has to do with sumneko_lua) but the CPU usage won't rise...

@folke
Copy link
Owner

folke commented Sep 27, 2022

The reason for this is LuaLS/lua-language-server#1596

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants