code-server: VIM Extension is not working

  • Web Browser: NAVER Whale 2.8.108.15
  • Local OS: macOS Catalina Version 10.15.7
  • Remote OS: CentOS Linux release 7.4.1708
  • Remote Architecture: x86_64
  • code-server --version: 3.7.1 2bf91ff6a6d1f29a8a93f97684177ccf5388cf34

It works in code-server 3.6.0, but after I upgraded it 3.7.1, keymaps of VIM are not working. I tried other browsers like safari or firefox, they don’t work as well. I tried 3.6.2, 3.6.1, none of them are working… vim extension is only working at 3.6.0 . The version of my vim extension is 1.6, it is the latest and I tried to run code-server with --log trace option to get an information of extensions, there are nothing worth.

please let me know how to fix it?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 26 (15 by maintainers)

Most upvoted comments

Fixed in master, check the milestone for release details.

In the meantime, if one doesn’t want to stick with v1.6.0, vscode-neovim works quite well now, including clipboard support in code-server (just tested it). The version in the extension marketplace seems to be out of date though, using https://open-vsx.org/extension/asvetliakov/vscode-neovim works fine.

Taking a look at this as well. I see the same issue using and I’m using:

  • code-server: v3.8.0
  • vscodevim.vim: v1.18.5
image

However, installing v1.16.0 of the extension manually, the extension works correctly.

I’ll continue to investigate.

Just re-tried this with the newest update:

code-server: v3.8.0
 VS Code: v1.51.1
Commit: c4610f7829701aadb045d450013b84491c30580d
Date: 2020-12-18T20:25:37Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Sadly, the issue still persists; 1.6.0 continues to work.

I got the error “Unable to install vscodevim.vim extension because it is not compatible with the current version of VS Code (version 1.51.1)”. I’m using code-serve 3.7.4.

@code-asher Oh… I downloaded and tried the latest version of chrome browser, it works! Because Naver whale browser I’ve used is based on the chromium project, so I expected it would have worked as the same with the chrome. I’ll report this problem to Whale browser dev team.

Thanks for your help.

Trying another approach: I upgraded the version of VS Code from 1.51 to 1.52 and now I get a new error:

image

Cannot install 'Vim' because this extension is not a web extension

I wonder if we need to submit a PR to the Vim extension to tell VS Code that it is a web extension. Will continue investigating.

Interestingly, there is a property in the package.json (well, Extension Manifest) called extensionKind which can be either ui or workspace. It seems the Vim extension marks itself for both here. They list web even though the docs don’t say that’s valid. Not sure if that could cause issues.

Update: removing web from the package.json.extensionKind in the Vim extension allowed me to install it (without the previous web warning) but, now it’s grayed out and still doesn’t work.

image

The other idea I have is modifying the package.json.main line. Right now, the Vim extension uses different files based on the extension and the web extension:

image

I’m curious if I use the ./out/extensionWeb file for "main" if that may work (or be related to the issue of the extension not activating).

Update: no luck, still grayed out.

The only other idea I have for debugging this is manually walk commit-by-commit starting from v1.16.0 of the Vim extension and installing in code-server until I figure out what’s causing the issue. Since I know it works in v1.16.0 but not v1.17.0 I can work in between those tags, which have 98 commits in difference.

I’m taking place here because I’ve the same problem, the vim extension doesn’t work neither since last versions. I host vscode server on a ubuntu x86 on a remote server and I access it via chrome on macos. I not sur if it helps, but I can have the extension working when I reload the page with the cache disabled on the devtool:

Capture d’écran 2020-12-08 à 17 30 19

I just upgraded to 3.7.3 and the VIM extension 1.16.0 seems to be working fine. Can you try the new version?