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

Extension crash or hangs when failing to call nvim #3433

Closed
rodcloutier opened this issue Jan 31, 2019 · 8 comments
Closed

Extension crash or hangs when failing to call nvim #3433

rodcloutier opened this issue Jan 31, 2019 · 8 comments
Labels

Comments

@rodcloutier
Copy link
Contributor

Describe the bug

vscode extension crash/hangs when failing to call nvim. Receive a ENOENT error.
Extension cannot be used anymore.

Console output:

/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Neovim: error: Error spawning neovim. Error=spawn /usr/local/bin/nvim ENOENT.
t.log @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:303
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2508 Neovim: Error spawning neovim. Error=spawn /usr/local/bin/nvim ENOENT.
t.onDidNotificationChange @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2508
2/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Error: Unexpected SIGPIPE
	at process.on (/usr/share/code/resources/app/out/bootstrap.js:5:80)
	at emitNone (events.js:106:13)
	at process.emit (events.js:208:7)
	at Signal.process.on.wrap.onsignal (internal/process.js:208:44)
t.log @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:303

To Reproduce
Steps to reproduce the behavior:

  1. Create new file
  2. Type :W

Expected behavior
Vscode not freezing or crashing

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.0.5
  • No other extension enabled
  • Nvim: 0.3.3
  • VSCode
    Version: 1.30.2
    Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
    Date: 2019-01-07T22:49:48.319Z
    Electron: 2.0.12
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    OS: Linux x64 4.19.15-300.fc29.x86_64
@bradamelton
Copy link

I am also experiencing this. It works for a few seconds after startup, then crashes and no typing is possible. Just started today.

@buwilliams
Copy link

+1

@jpoon
Copy link
Member

jpoon commented Jan 31, 2019

  1. Was neovim working before w/ vscodevim < 1.0.5?
  2. Is this happening for all ex-commands?

@rodcloutier
Copy link
Contributor Author

  1. I thought it was working < 1.0.5 but was experiencing the same behaviour.
  2. I think it is happening for all commands that are sent to nvim. The same behaviour is triggered by:
  • Any non valid ex-command ie :PFSFS.
  • Replacement :s/main/Main/g
  • Sort :sort

@jpoon
Copy link
Member

jpoon commented Feb 1, 2019

With nvim 0.3.3 and vscodevim (on master), I can't repro.

There's a scenario where this repros (extension gets stuck) when you have nvim misconfigured which I'll fix in a PR shortly.

@rodcloutier
Copy link
Contributor Author

I can confirm that it was the case, my nvim path was wrong.
Thanks for the info/patch.

@jpoon jpoon closed this as completed Feb 1, 2019
@jpoon jpoon added the kind/bug label Feb 1, 2019
@dytra
Copy link

dytra commented Dec 20, 2023

I reinstalled the extension and it fixes itself

@pokemonsta433
Copy link

Update to this: if your nvim is configured to run as administrator and you launch vscode as normal user, you get the same error message and behaviour. Possibly ensure that your nvim is not configured as administrator.

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

No branches or pull requests

6 participants