-
Notifications
You must be signed in to change notification settings - Fork 5.9k
VIM Extension is not working #2319
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
Comments
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? |
I tried the new version 3.7.3.. but it is still not working... When I launched vscode 3.7.3 in my browser, "activate extensions" message was shown several times and "Error loading webview: Service Workers are not enabled in browser. Webviews will not work." pop-up was also shown. |
My bad for leaving this so long; for some reason my email responses to this thread aren't getting posted. 😕 Could you post the browser console logs? |
It is a log from 3.7.3... but there is no log like it in 3.6.0... I think it might be a reason of the extension not working. |
@sangchul You might be right; VS Code calls @pojntfx Interesting, I have no idea what might be causing an inability to exit insert mode but I'll poke around and see if I can replicate. |
@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. |
I have issues with the latest Chrome Version 87.0.4280.67 using code-server v3.7.2. I would try v3.7.3 or later but I am running on ppc and those releases do not work on ppc. Here's the behavior I see. After initiallly connecting via Chrome browser, the VIM extension works perfectly. As soon as I reload the page, the VIM extension now causes all keyboard input when editing a file to have no effect. Every keyboard click pops up an "Activating Extensions" message in the footer of the app. The only way to regain keyboard input functionality is to disable the VIM extension. Re-enabling the VIM extension after this will again stop keyboard input from working. I have to continually quit my browser and/or reload code-server to get the extension to being working again. |
Could you post the browser console logs when this happens? Thanks!
|
This is an example of refreshing my browser and the Vim extension not working. Here is the Chrome console log saved to a file and I attached a screenshot as well. What I did? Connected to the service. Opened DevTools. Cleared the console log. Hit In this example, the VIM extension did not throw any errors. In the past, I have see it throw an error regarding an uncaught future. If I see that again I'll try to get to the bottom of it with the Vim folks. console-log.txt
|
Here is an exmple of the Vim Extension working. I killed code-server instance, cleared all the logs, restarted the code-server instance, and connected. Everything works. Sorry this is confusing, I did the steps in reverse. console-log.txt
|
Thanks for the logs! I don't see anything obviously wrong unless maybe
that initial extension host connection reconnect causes an issue somehow
although I'm not sure how it would.
Maybe when it tries to fetch the extension tar that request is getting
interrupted somehow. There should be a request for
`?tar=/some/path/to/vscodevim.vim-1.16.0`; does the network tab show
that it succedeed?
I tried to replicate with 3.7.2 but no luck so far. Maybe we need to
test on a Mac. @nhooyr curious if reloading the page with the vim
extension works for you on 3.7.2.
|
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 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. |
I can confirm @dclong's error. Pinned to 1.6.0 as a "fix" for now and disabled automatic extension updates (https://github.com/pojntfx/pojde/blob/master/setup.sh#L608). Maybe code-server should have an option to set the VSCode API version it advertises to fix this? Theia for example allows setting the API version with a CLI flag: https://github.com/pojntfx/pojde/blob/master/setup.sh#L837 |
I think it's supposed to automatically use the last version supported by
your VS Code version but we must have a bug with that somewhere!
|
Just re-tried this with the newest update:
Sadly, the issue still persists; 1.6.0 continues to work. |
Taking a look at this as well. I see the same issue using and I'm using:
However, installing I'll continue to investigate. |
One observation so far: it looks like part of the comptability check is looking for a However, it stays grayed out and does not work. I also tried manually bundling and installing Not sure if that's any progress though. Will keep investigating. |
Trying another approach: I upgraded the version of VS Code from
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 Update: removing The other idea I have is modifying the I'm curious if I use the Update: no luck, still grayed out. The only other idea I have for debugging this is manually walk commit-by-commit starting from |
Related: VSCodeVim/Vim#5883 |
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 |
Fixed in master, check the milestone for release details. |
Same thing, vim extension not working while using : code-server: v3.11.0 |
@acondura please open a separate bug report! |
code-server --version
: 3.7.1 2bf91ffIt 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?
The text was updated successfully, but these errors were encountered: