Vscode-neovim: desync between neovim and vscode

Created on 27 Dec 2019  路  11Comments  路  Source: asvetliakov/vscode-neovim

I'm running into a problem where the cursor desyncs and I find it difficult to provide a reproducible case for the issue. @asvetliakov is there a group of files one can provide so you can get an idea of what could be going wrong in neovim or vscode itself when an issue appears?

eg. some kind of neovim input log or vscode log file?

Anyways, here's the issue
cursor desync

As you can see, the cursor doesn't want to select text that is actually there. But then, also when I do 'dd', it deletes the line below (}) instead of the this.$router.push line

vscode-neovim 0.0.45
nvim 0.4.3 with empty init.vim and no plugins
vscode 1.41.1
ubuntu 19.04

bug need more info

All 11 comments

Also posting another issue I've had. The cursor can become stuck in the middle of the file also. In the gif below the cursor was stuck immediately after starting vscode (the editor groups were saved from a previous session). Maybe it's because I have the file Two.vue opened in both the left and right editor?
vscode stuck at bottom

Curious. I noticed you're using the mouse. Do you have mouse start visual selection toggle on in settings?

In the gif below the cursor was stuck immediately after starting vscode (the editor groups were saved from a previous session)

Create a separate issue. It was a known problem and i believed i fixed it, but looks like still no.

No I didn't have it enabled when creating the gifs above. I just wanted to show that there's no way to move the cursor at all.

Ok I'll do it

For original issue it looks nvim buffer was shifted line down. There is one known problem regarding buffer desync - #116 . Any chance you run into it before the gif was made by pasting while in visual mode ?

I'm 99% sure I was using visual line, delete and paste (eg. V -> jjjj -> d -> kkkkkk -> p) pretty extensively before creating the gif.

assuming it's some kind of #116 then. If you can provide full repro steps it'd help very much.

Hm, I think I've found something else unrelated to #116 - regarding the "cursor blocking and not wanting to go past a certain character" issue

Try creating a new untitled file inside vscode and paste this in:

偶",
藕",
艅",
艣",
贸",
膰",
艂",
膮",
a", //this works

When you're on the " character, and you press l (letter L, go right), you can't move the cursor to the , character. However when you go the last line of the pasted code snippet (a",), you can move the cursor to a",

line number is not related, seems something with multi-byte chars 馃槥 (logged #127, thanks for the report)

Yep line number is not related, I just happened to add the working case at the bottom. a", could've been in the middle. I'll keep looking regarding 116, recently it started happening after changing editor groups but I couldn't repro twice.

I think I've hit a similar issue with C++ files:

ezgif com-video-to-gif

I have disabled all other plug-ins and have an empty init.vim. Here's the text:

auto test() {
  using namespace xtplaceholders;
  return xt::view(output, xt::all(), xt::keep(sorted_anchor_idx));
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pieterdd picture pieterdd  路  4Comments

DrakeXiang picture DrakeXiang  路  3Comments

iansinnott picture iansinnott  路  4Comments

kkorus picture kkorus  路  4Comments

RAbraham picture RAbraham  路  4Comments