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

Replacing with Neovim 0.3.2 enabled fails and require a VSCode restart #3323

Closed
GuillaumeRochat opened this issue Jan 4, 2019 · 6 comments
Closed

Comments

@GuillaumeRochat
Copy link

Describe the bug
Replacing with Neovim enabled changes indentation (changed from 4 spaces to tabs in my case) and makes vim unresponsive, requiring to restart VSCode. Also, the ex command stays in the status bar as if it wasn't executed.

To Reproduce
Steps to reproduce the behavior:

  1. Enable Neovim
  2. Open any file with space indents and perform a full replace such as :s/potato/carrot/g
  3. Notice that the indent changed to tabs.
  4. Notice that the ex command is still appearing in the status bar
  5. Notice that navigating in a file using vim keybind no longer works.

Expected behavior
The text is successfully replaced with no other side effects.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.17.3
  • VSCode version: 1.30.1
  • OS: Linux 4.20.0
  • Neovim: 0.3.2

Additional context
It only started happening after I updated to the latest version of Neovim (0.3.2) so it may be related to #3290. Does not happen on Neovim 0.3.1

@jpoon
Copy link
Member

jpoon commented Jan 5, 2019

What does the debug console say? With the next version we'll be displaying errors as info boxes so it'll be more apparent I'd there is a setup error.

@GuillaumeRochat
Copy link
Author

@jpoon would that be the console in Help > Toggle Developer Tools? If so, nothing appears in that console. In the process explorer, I can see the nvim -u NONE -i NONE -N --embed command and it says it's using 0mb of memory.

@jpoon
Copy link
Member

jpoon commented Jan 5, 2019

You need to turn on debug logging. Its off by default. On my phone but it's something like vim.debug.logging

@GuillaumeRochat
Copy link
Author

I don't see anything not normal. I changed the setting vim.debug.loggingLevel to debug :

console.ts:134 [Extension Host] debug: ModeHandler: handling key=<Esc>.
console.ts:134 [Extension Host] debug: Remapper: find matching remap. keys=<Esc>. mode=Normal.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=:.
console.ts:134 [Extension Host] debug: Remapper: find matching remap. keys=:. mode=Normal.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=%.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=s.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=/.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=p.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=o.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=t.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=a.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=t.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=o.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=/.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=p.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=o.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=t.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=a.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=t.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=o.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=/.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=g.
console.ts:134 [Extension Host] debug: ModeHandler: handling key=
.

The last one is a linebreak.

Could it be that nvim never replies and it's a blocking call? Let me know if there is anything else I can check to help, until then I'll work with neovim 0.3.1

@xconverge
Copy link
Member

I can reproduce this after I upgrade for 0.3.1 to 0.3.3

@xconverge
Copy link
Member

I think we need to upgrade to https://github.com/neovim/node-client

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

No branches or pull requests

3 participants