-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
while upgrading vscode, Error: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\cli.js' #147763
Comments
Issue Type: Bug I ran bisect while vscode failed installing. After reinstalling vscode, bicect opened & this is the output. Reported here - #147763 Extension version: 1.3.8 System Info
A/B Experiments
Again. Feel free to close with no changes. |
Can you uninstall and reinstall VS Code? |
I get the same issue - VS Code fails to upgrade and essentially corrupts the existing install, leaving no option but to completely reinstall. This is the second time in the past 3 months alone. My workstation is running for weeks without restarts. I also have multiple instances of VS and Code running for days (if not weeks). I am almost convinced that Code tries to sneakily and forcefully update itself in a background, and because I have running instances it fails and leaves me with a completely broken app. |
Do they share the same user data dir? |
No. I mentioned VS, because it often gets upset while updating itself and finding running Code instances (likely because of OmniSharp and dotnet). And that's when I sometimes find that Code install is corrupted (like happened yesterday). |
I meant: do the multiple instances of VS Code (not VS) share the same user data dir? |
It's definitely possible. 🤔 We might want to disable update in sessions started as Admin, when in the user setup. What do you think? |
Sounds like a good plan 👍 |
Created #148428 |
Admin mode wasn't in play for me. I think my situation was purely installing extensions while vscode was updating. Could disabling extensions while the update happens be a solution? Oh. Well. System level access is required for the update, isn't it? maybe it was. And the other windows wouldn't have been elevated. Hm. Good callout @RussKie! And yes, re-install did fix it. I installed it again via system-level installer. |
@tamusjroyce I'd still be interested in whether re-installing the user install would also fix it for you. System level access isn't required for that one. |
@joaomoreno: Just thought I should mention that running VS Code as admin is what enabled my VS Code to actually update in a user setup. #147408 (comment) |
Does this issue occur when all extensions are disabled?: Dunno
System-wide install
Steps to Reproduce:
Solution: Re-install vscode
note:
Help: Start Extension Bisect
results in a blank window as well3rd or 4th time over a few years this has happened. Always during an upgrade.
This comes up a lot. And the work-around of reinstalled vscode is an easy fix. Most upgrades this works flawlessly. I will be sure to have just 1 vscode open when I upgrade next time.
The text was updated successfully, but these errors were encountered: