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

b0bd429 breaks sumneko_lua #2355

Closed
folke opened this issue Dec 25, 2022 · 3 comments · Fixed by #2356
Closed

b0bd429 breaks sumneko_lua #2355

folke opened this issue Dec 25, 2022 · 3 comments · Fixed by #2356
Labels
bug Something isn't working

Comments

@folke
Copy link
Member

folke commented Dec 25, 2022

Description

When I switch between a file in my workspace and a file outside the worksapce, sumneko diagnostics get reset on all buffers and all buffers start showing errors.

The error only starts happening after b0bd429

See also folke/neodev.nvim#98

Neovim version

nightly

Nvim-lspconfig version

No response

Operating system and version

linux

Affected language servers

sumneko_lua

Steps to reproduce

  1. open a lua file in your project directory that is in .gitignore
  2. open a lua file in your project

Actual behavior

The second file will list a lot of errors

Expected behavior

no errors

Minimal config

..

LSP log

...

@folke folke added the bug Something isn't working label Dec 25, 2022
@glepnir
Copy link
Member

glepnir commented Dec 25, 2022

does #2356 works for you ?

@folke
Copy link
Member Author

folke commented Dec 25, 2022

just tested and still the same issue.

One sumneko instance always has two internal instances running. One for single files and one for the workspace.

It seems that when I open a single file, that the config without the workspace is pushed to the active sumneko instance and as such clearing its workspace settings

@theHamsta
Copy link
Member

theHamsta commented Dec 25, 2022

For me, b0bd429 or a commit after it causes rust-analyzer to crash with error code 101 (https://github.com/rust-lang/rust-analyzer/blob/2872e0558982360d499bdba79cf1a3ed06f1ae82/crates/rust-analyzer/src/bin/main.rs#L41-L45). Reverting to before b0bd429 fixes the problem.

EDIT: 212b99b was the problem for me. See #2357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants