-
Notifications
You must be signed in to change notification settings - Fork 304
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
Can't open vscode offline in WSL when there is update #3839
Comments
I been frustrated by this, because I don't have access to internet all the time. I end up using another editer. |
This is what I am taking about:
But sometimes it is different error too. Because sometimes it doesn't fully xdownload. |
any updates on this issue? |
This makes VSCode unusable on spotty WiFi or if you have to restart VSCode for any reason after losing connection for an extended period of time (flight, outage, whatever). At this point I'm now considering leaving VSCode Remote for VSCode running in WSL itself just to avoid this problem. I don't understand why it's not possible to have the old server continue to work with the new client for non-breaking releases. This seems like a design oversight given that client-server architectures normally don't use all-or-nothing versioning. |
I definitely agree with @pluma and the fact that every new version is not compatible with previous version of WSL server make very little sense. This quite unreasonable and painful behavior. To add a bit more details to this issue the problem is coming from bootstrap script Here is the piece of code that remove the previous version.
I guess one solution could be is to check for internet connection before removing. However it seam unsound to do it in this download script. I'm trying to understand what trigger VSCode to update in the first place in case user is offline. I think, it would make most sense to do offline check before triggering the update procedure and just fall back to the installed version of VSCode server. |
Would it be possible to prevent VSCode from auto-updating when exited while offline, if the remote extension is installed? |
I could also imagine VSCode's auto-update having a notification like "A new version of VSCode has been downloaded in the background. VSCode will be updated the next time you exit the application" with a button for preventing that. Or at least a flag to prevent the auto-update while offline. |
I use wsl with visual studio it still does the very same thing |
same issue. Has this been resolved? |
just ran into this issue on the train. Windows seemed almost workable when using WSL ... |
@dneise Eaxtly. Although strange that someone listened. |
Maybe @Kif11 knows how to fix the problem. |
+1 I hit this on a flight this month thanks monthly update cycle. Even more discouraging was learning that there is seemingly no straightforward way to disable this behaviour, e.g. no quick flag to start it up anyway. I think the following sequence is shortsighted where the previous installation is deleted first, and then fetching the new version is attempted: $ code .
Updating VS Code Server to version 8dfae7a5cd50421d10cd99cb873990460525a898
Removing previous installation...
Installing VS Code Server for x64 (8dfae7a5cd50421d10cd99cb873990460525a898)
... Seemingly another manifestation of MSFT-branded product overlooking real-world on-the-road use-cases re the lack of thoughtful/elegant handling :-P. No doubt y'all work hard, please take a real vacation one day and venture off the grid for a bit to experience this first hand! In case it is not clear, the desired behaviour is:
A not-great quick workaround to suggest for now is if you plan on coding while on the go is to start VSCode before you embark and leave it open... However beware there are still cases where VSCode can still get a bit hairy and require a full re-start -- e.g. a case would be if some extension updates were installed automatically in the background while a connection was still available. |
Maybe you are talking gold, but maybe also you should not be using WSL, in flight? No offense intended |
Unfortunately, our implementation mandates that the client and the server version match. A client cannot work with a server that has a different version. Keeping the old server doesn't help, we simply can't use the old server anymore, unless you revert the version of the client. But yes, I understand that this is a real issue. Ideally the VS Code installer we could bundle the client and server download. |
There is a reason why we all use Vscode. It is not perfect, but good enough. I want for Vscode to be fixed, and maybe "a client and server download" is the way to go. Otherwise, there are may be other solution, such as delete the broken code from now. |
@hamza512b why close the issue?... at this time there is no resolution? |
Just, open new issue. |
I reopen the issue, I hope we sometimes find time to look at it. |
I am also experiencing this issue. I just tried to open VS Code in WSL on a train and couldn't get any work done because I couldn't download the new version. It feels ridiculous that the way VS Code is designed prevents me from performing entirely local tasks when offline. |
I have this kind of issue. Is there any workaround? |
In my opinion a good solution would be giving the user a checkbox in settings to check that says "force download of new remote server on WSL (or "the following wsl distributions") with VSCode update" or sth. like that. I would find that beneficial anyway since it would possibly also reduce the time i wait for VSCode on WSL to start when i actually need it. |
+1 on this issue. My WSL is isolated from the rest of our network by IT policy so I simply cannot use VSCode in WSL because of this :( |
I'm not sure if this is a fix, but this stackexchange post which set |
And so, vscode obviously falls into disrepair if the Internet is missing somewhere, great! |
+1 on this issue. |
okay so this was frustrating, my 4G was not fast enough and I had to just abandon coding altogether, sigh, I have currently disabled auto update so both versions don't update at all. |
for those from Iran who encountered this issue and are not on a flight or a train, don't be confused that's because our fucking government has filtered VSCode URLs for some ridiculous reason (I don't know may be there is no reason and Mullahs are just retarded). just used a VPN to other countries or other editors. |
@amirjj I think that may actually be GitHub/Microsoft trying to comply with export regulations. |
This is gold! I disabled updates on the client, manually installed vscode-server inside wsl and disabled its updates too. I don't know how insane you must be to assume a developer will always have internet when working. Clearly, the "vscode client doesn't match server" explanation is an cheap cop-out, since you can always check whether they match first, not just delete the server and reinstall it... |
If the editor versions are different, why not simply upload the one that is currently running. |
so you basically have to start VScode to disable a setting to be able to start it |
You should be able to edit the settings.json file without opening VS Code. |
Nope. That has nothing to do with Microsoft or GitHub fortunately. It's all about the decision that these illiterate people governing my country make DAILY:)))) |
I'm also affected by this issue. In my case I have internet, but HTTP endpoint from which update is downloaded is not available:
|
Fixed in WSL extension 0.76.0 (for the upcoming VS Code release 1.76) |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: