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

bug: Nvim0.10.0 crash / neovim was disconnected #2000

Closed
3 tasks done
HappyRustacean opened this issue May 22, 2024 · 17 comments
Closed
3 tasks done

bug: Nvim0.10.0 crash / neovim was disconnected #2000

HappyRustacean opened this issue May 22, 2024 · 17 comments
Labels
bug Something isn't working upstream

Comments

@HappyRustacean
Copy link

HappyRustacean commented May 22, 2024

Check the following:

  • I have checked the behavior after setting "vscode-neovim.neovimClean" in VSCode settings.
  • I have read the vscode-neovim docs.
  • I have searched existing issues.

Neovim version (nvim -v)

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713773202

Operating system/version

Mac Os X 14.5 (23F79)

Describe the bug

In the latest version v1.12.0, Neovim on macOS automatically exits after switching multiple VSCode tabs, causing plugins to disconnect.

Steps To Reproduce

  1. Open VSCode on macOS with the Neovim extension.
  2. Open multiple tabs within VSCode and maybe some splitted window.
  3. Switch between the tabs multiple times.

How to Solve

downgrade nvim version to

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202

@HappyRustacean HappyRustacean added the bug Something isn't working label May 22, 2024
@HappyRustacean HappyRustacean changed the title bug: bug: Neovim on macOS automatically exits after switching multiple VSCode tabs May 23, 2024
@xiyaowong
Copy link
Collaborator

So it's actually a bug of nvim0.10?

Are you sure you didn't use any plugins?

@bomut
Copy link

bomut commented May 23, 2024

Just adding my 5ct: I can confirm, after downgrading neovim from 0.10.0 to 0.9.5 the issue is resolved.

@xiyaowong
Copy link
Collaborator

@bomut With "neovimClean" ?

@bomut
Copy link

bomut commented May 23, 2024

No, I downgraded neovim via homebrew (following this guide using this bottle; yes, it's a bit cumbersome).

@ollien
Copy link
Collaborator

ollien commented May 23, 2024

Any kind of logs would be very helpful. I don't have a Mac to debug with (maybe someone else does), but we may be able to narrow something down. You can find instructions on how to gather them here

https://github.com/vscode-neovim/vscode-neovim/blob/master/CONTRIBUTING.md#logging

@tetzng
Copy link

tetzng commented May 24, 2024

I have the same issue

OS

macOS 14.5 (23F79)

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202

Log

I've attached the logs that were captured during the issue. The logs are quite long, and the most relevant information is probably towards the end. However, I'm including the entire log file just to be thorough.

vscode-neovim.log

@xiyaowong
Copy link
Collaborator

@HappyRustacean @bomut What I mean is whether any plugins were used. Some plugins might cause Nvim 0.10 to crash, for example, by using incorrect FFI.

@xiyaowong
Copy link
Collaborator

xiyaowong commented May 26, 2024

Confirmed in Windows 11.

@JohnEricson
Copy link

Yes, I got the same problem in Windows 11. Downgrading Neovim to version 0.9.5 solved it again.

@xiyaowong
Copy link
Collaborator

@xiyaowong xiyaowong changed the title bug: Neovim on macOS automatically exits after switching multiple VSCode tabs bug: Nvim0.10.0 crash May 28, 2024
@cayossarian
Copy link

cayossarian commented May 29, 2024

I believe I have the same issue (on macos), the log message I get is "MainController: Neovim was disconnected". I also am running neovim 0.10 but have another work around.

Rather than dowgrading neovim I see that downgrading the vscode neovim plugin to 1.11.5 also resolves this issue. Every version after 1.11.5 cause this disconnect/crash.

The log is filled with these messages:
ERR 2024-05-29T14:30:32.063 nvim.98485.0 chan_close_with_error:561: RPC: ch 1 (type=2) returned a response with an unknown request id 0. Ensure the client is properly synchronized

@xiyaowong
Copy link
Collaborator

Use Nvim v0.10.1 or the nightly version.

@xiyaowong xiyaowong changed the title bug: Nvim0.10.0 crash bug: Nvim0.10.0 crash / neovim was disconnected Jun 2, 2024
@UncleGoogle
Copy link

UncleGoogle commented Jun 3, 2024

Nightly version v0.11.0-dev-85+g93c55c238 still disconnects for me
wrong issue. Mine is ubuntu on WSL

@patleeman
Copy link

patleeman commented Jun 3, 2024

No, I downgraded neovim via homebrew (following this guide using this bottle; yes, it's a bit cumbersome).

Thanks, this helped!

For anyone else running into this on a mac.

brew uninstall neovim
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/63aa44faba5b5274a1a7579510cd5a570a2cca5f/Formula/n/neovim.rb
brew install -s neovim.rb

@so-jelly
Copy link

so-jelly commented Jun 5, 2024

using neovim on mac, switched to nightly and seems much better.

@patleeman anyone using homebrew to install neovim on mac ;)

mise use -g neovim@nightly

@willzhqiang
Copy link

No, I downgraded neovim via homebrew (following this guide using this bottle; yes, it's a bit cumbersome).

Thanks, this helped!

For anyone else running into this on a mac.

brew uninstall neovim
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/63aa44faba5b5274a1a7579510cd5a570a2cca5f/Formula/n/neovim.rb
brew install -s neovim.rb

This command appears to install nvim 0.9.5. I just installed it and hope it resolves the issue.

@nadunindunil
Copy link

Hi @willzhqiang,
Did this solve your issue?

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

No branches or pull requests