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

Does not start up with VSCode and no vim commands work #3753

Closed
janecakemaster opened this issue May 10, 2019 · 37 comments
Closed

Does not start up with VSCode and no vim commands work #3753

janecakemaster opened this issue May 10, 2019 · 37 comments
Labels

Comments

@janecakemaster
Copy link

Issue Type: Bug

Describe the bug
VSCode usually loads the extension with no problem. However, today i opened up VSCode and vim stopped working. when I try to use the command palette to switch to vim mode, i get command 'toggleVim' not found.

To Reproduce
Steps to reproduce the behavior:

  1. open vs code
  2. try to use vim mode
  3. try to use any vim command in the command palette

Extension version: 1.8.0
VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:22:55.268Z)
OS version: Darwin x64 18.5.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz (4 x 3100)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 3
Memory (System) 16.00GB (0.45GB free)
Process Argv
Screen Reader no
VM 0%
@zombiezen
Copy link

This appears to be a regression in 1.8.0. I am also able to reproduce with VS Code 1.33.1 on Linux, and downgrading the extension to 1.7.1 fixes the issue for me.

(For anyone using this workaround, be sure to set "extensions.autoUpdate": false to avoid 1.8.0 coming back.)

@foxbunny
Copy link

As an FYI, it appears to still be an issue in 1.8.1.

@zombiezen
Copy link

More details here: I ran the command Developer: Toogle Developer Tools and looked at the JavaScript console. I got a stack trace very similar to the one in #3473.

Error: Cannot find module 'winston-transport'
	at Function.Module._resolveFilename (internal/modules/cjs/loader.js:584:15)
	at Function.Module._load (internal/modules/cjs/loader.js:510:25)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/util/logger.js:11:25)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/util/logger.js:84:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/mode/modes.js:3:18)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/mode/modes.js:141:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/common/motion/position.js:6:17)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/common/motion/position.js:1064:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/actions/operator.js:20:20)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/actions/operator.js:1014:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/actions/include-all.js:4:1)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/src/actions/include-all.js:19:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at n (/usr/share/code/resources/app/out/vs/loader.js:15:488)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/extension.js:16:1)
	at Object. (/home/rlight2/.vscode/extensions/vscodevim.vim-1.8.2/out/extension.js:393:3)
	at Module.t._initNodeRequire.o._compile (/usr/share/code/resources/app/out/vs/loader.js:15:713)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
	at Module.load (internal/modules/cjs/loader.js:602:32)
	at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
	at Function.Module._load (internal/modules/cjs/loader.js:533:3)
	at Function.define._installInterceptor.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:491:111)
	at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:760:742)
	at Function.t.getExtensionPathIndex.then.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:176)
	at Module.require (internal/modules/cjs/loader.js:640:17)
	at require (internal/modules/cjs/helpers.js:20:18)
	at Function.i [as __$__nodeRequire] (/usr/share/code/resources/app/out/vs/loader.js:31:381)
	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:747:60
	at D._doActivateExtension (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:747:168)
	at D._activateExtension (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:746:6)
	at D. (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:742:827)
	at Generator.next ()
	at n (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:13:621)
	at new Promise ()
	at n (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:13:398)
	at Object.actualActivateExtension (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:742:529)
	at p._activateExtension (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:479:561)
	at define._activateExtensions.r.length.Promise.all.s.map.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:479:245)
	at Array.map ()
	at p._activateExtensions (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:479:233)
	at p.activateByEvent (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:477:126)
	at D._activateByEvent (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:744:680)
	at D._handleEagerExtensions (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:748:717)
	at define._startExtensionHost._readyToStartExtensionHost.wait.then.then (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:752:98)

I followed these steps (same as detailed on #3473) and was able to resolve the issue:

  1. Uninstall the vscodevim extension
  2. Reload VSCode
  3. Delete the ~/.vscode/extensions/vscodevim-1.8.2 folder
  4. Reinstall the vscodevim extension
  5. Reload VSCode

@wmmxk
Copy link

wmmxk commented Jul 26, 2019

Then how to specify the version of vim when installing the vim extension in VScode? I searched for "vim" and only saw Vim 1.8.2.

@J-Fields
Copy link
Member

Anyone still seeing this issue?

@janecakemaster
Copy link
Author

i'm ok on 1.9.0

@sonicbhoc
Copy link

I just experienced this bug when upgrading to version 1.10.0. Deleting the extension folder as @zombiezen said allowed me to get it running again.

@Dhineshss
Copy link

Vscodevim stopped working suddenly. Tried deleting extension folders. nothing works
Version 1.12.0

@Dhineshss
Copy link

Reinstalled previous version 1.11.3. Now its working....

@fangyuan
Copy link

fangyuan commented Dec 9, 2019

Reinstalled previous version 1.11.3. Now its working....

installed vim v1.12.0 and it did not work, back to v1.11.3, it works, thanks

@hkujy
Copy link

hkujy commented Dec 9, 2019

Reinstalled previous version 1.11.3 works.
Nothing work for the newest version that I installed 1 hour ago

@colopatiron
Copy link

How do you install an older version of the extension?

@hkujy
Copy link

hkujy commented Dec 9, 2019 via email

@chy373
Copy link

chy373 commented Dec 9, 2019

How do you install an older version of the extension?

image

@XatMassacrE
Copy link

v1.12.0 not work, reinstall with v1.11.3, works, thank you~

@sztomi
Copy link

sztomi commented Dec 9, 2019

#4340

@hamxabaig
Copy link

Yepp suddenly stopped working when it got auto updated to v1.12.0, v1.11.3 works!

@gomesalexandre
Copy link

Suddenly stopped working for me as well. 1.11.3 works, 1.12.0 didn't.

@Rom325
Copy link

Rom325 commented Dec 9, 2019

Stopped working 1h ago because of v1.12.0, reverted back to v1.11.3

@nevermyuk
Copy link

Stopped working when updated to v1.12, reverted back to v1.11.3 and its working fine again!

@donizb
Copy link

donizb commented Dec 9, 2019

I think something is wrong with v1.12
1.11.3 works

@ChrisShen93
Copy link

not work for me with v1.40.2

@yujincheng08
Copy link

Same here. Reinstalled previous version 1.11.3 works.

@tomGdow
Copy link

tomGdow commented Dec 9, 2019

Same story with me: 1.12.1 not working (suddenly), revert to 1.11.3 works fine. Thanks to everyone who pointed this out :-)

@Dhineshss
Copy link

New version !!!!

1.12.2
fixed the startup issue. Time to update the new package..

@ryfow
Copy link

ryfow commented Jan 10, 2020

1.12.4 appears to be broken

@itriese
Copy link

itriese commented Jan 23, 2020

Same story with me: 1.12.4 not working, switched back to 1.12.3 => works fine.

@bajatin
Copy link

bajatin commented Feb 11, 2020

For me none of the previous versions are working. I deleted the extension folder and I even went back till 1.8.0 but its still not working.
Status bar says --Normal-- but works like usual VSCode.

@sztomi
Copy link

sztomi commented Feb 11, 2020

Consider filing a new issue, I think closed ones rarely get any attention.

@bradparks
Copy link

bradparks commented Mar 12, 2020

I had this same issue, but when I went to the developer console, it told me

Neovim: configure the path to neovim and restart the editor
onDidChangeNotification @ notificationsAlerts.ts:40

I went to the extensions settings, and defined the path, which I found from the terminal by running

$ which nvim
/usr/local/bin/nvim

I put it in, restarted VS Code and it worked!

@ckwillling
Copy link

I had this same issue, but when I went to the developer console, it told me

Neovim: configure the path to neovim and restart the editor
onDidChangeNotification @ notificationsAlerts.ts:40

I went to the extensions settings, and defined the path, which I found from the terminal by running

$ which nvim
/usr/local/bin/nvim

I put it in, restarted VS Code and it worked!

it does work for me

@drewbietron
Copy link

This happened with me on a fresh install of my vscode plugins on a new machine. It installed 1.20.2 and wasn't working. I went back to 1.11.3 and everything works as expected.

@Pulpanj
Copy link

Pulpanj commented Mar 22, 2022

Just for record Vim extension does not work if Overtype extension is also installed. Disabling Overtype extension fixed it.

@gunterja
Copy link

This extension seemed to be the culprit for me:
Name: Auto Import - ES6, TS, JSX, TSX
Id: NuclleaR.vscode-extension-auto-import
Description: Automatically finds, parses and provides code actions and code completion for all available imports. Works with JavaScript and TypeScript. [Forked]
Version: 1.4.3
Publisher: Sergey Korenuk
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=NuclleaR.vscode-extension-auto-import

@zirahvi
Copy link

zirahvi commented Apr 21, 2022

Still a problem on Linux (vscodevim 1.22.2, code 1.66.0). No errors/messages in the developer console, just silently stops working.

Restarting VS Code seems to fix the issue, but the extension eventually stops working again.

@matart15
Copy link

Happening on v1.24.3 and OSX

@lime45
Copy link

lime45 commented Jan 18, 2023

It was the overtype extension for me as well.

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