Open manglobe opened 6 years ago
I've never seen a piece of software delete itself before. I've had issues with Microsoft software before, but this is a new one. Happened to me today, 2 years after first being reported. Glad to see they've not addressed it. /s
Happened to me today. Can someone edit the top comment and write the quick fix in there?
Something like "Edit: The quick fix to get VSCode back is to go to C:\Users\"your user"\AppData\Local\Programs\Microsoft VS Code\_
and move the content of the _
folder to the Microsoft VS Code
folder."
This happened to me today.
Happened to me today. Can someone edit the top comment and write the quick fix in there?
Something like "Edit: The quick fix to get VSCode back is to go to
C:\Users\"your user"\AppData\Local\Programs\Microsoft VS Code\_
and move the content of the_
folder to theMicrosoft VS Code
folder."
@Julian-Wollersberger thanks. Your solution worked.
Got 1.49.3 installed yesterday. After move out of _
folder got 1.50.0 installed.
This happened to me today.
This happened to me today.
Yeah wonderful. It just happened to me.
Just happened to me for the first time. If you download the newest version and install it manually VS Code seems to behave as if it was never deleted. It reopened my last project, all settings, extensions, etc. are there. So, yeah, it's a stupid issue, but it's not deleteing any of your previous efforts, so that makes it just a minor inconvenience.
oh man, This happened to me last night and in this morning when im open vscode , boom! where is my vscode gone ! never expected this before...last night i didnt notice vscode updating and close editor then shutdown.
W/o uninstall or install new application :
just move all files in dir _
into \Microsoft VS Code
and re-open your vscode, its work
Howdy everyone, so @muhimron90 comment just helped me https://github.com/microsoft/vscode/issues/52855#issuecomment-723381931
Not sure what triggered this, but if you follow his tip, it will save your life.
Happened to me today, followed just moving as commented by @muhimron90 - works like a freaking charm!!! Thanks!
Happened to me too. followed @Al-Himyari suggestion yes it's doesn't get deleted 🙂
Most of you are talking about moving the files from _
dir back to Microsoft VS Code
dir but I have no such dir , maybe because I have both visual studio code + community 🤔. Also, when executing code .
from the terminal it's not recognized how do I fix this ?😕
@natalyayyad
if only
when executing
code .
from the terminal it's not recognized
but ur vscode has been installed or not deleted or not missing files. and u already Know where is the location vs code(cross-platform editor). for windows user like me :') .
echo %PATH%
or reg query "HKCU\Environment"
if C:\Users\[UserProfile]\AppData\Local\Programs\Microsoft VS Code\bin
not in there , try :
or
SETX PATH "%path%;C:\Users\[UserProfile]\AppData\Local\Programs\Microsoft VS Code\bin"
or SETX PATH "%path%;C:\Program Files (x86)\Microsoft VS Code\bin"
Happened to me this morning. SImple re-install returned to previous state so all is OK. So, which MS dev thought that updating VSCode as it shuts down (when the PC is quite likely to be shutting down) was a good idea eh?
Happened to me just now!
Me too.
happened to me a few days ago
Same issue for me, I fixed it moving the content in the _ folder.
And seems today was my turn😅. I did as @Al-Himyari suggested and is all back to normal now.
Me, too. I'm not sure how useful these "me, too" comments are, but maybe they give out some info about the prevalence of the problem.
Happened to me today. Can someone edit the top comment and write the quick fix in there?
Something like "Edit: The quick fix to get VSCode back is to go to
C:\Users\"your user"\AppData\Local\Programs\Microsoft VS Code\_
and move the content of the_
folder to theMicrosoft VS Code
folder."
For me the Fix was not working (I'm using Microsoft VS Code Insiders - 1.56.0-insider), after I moved the files and try to open the program, two black windows are opened up where I can do nothing.
I downloaded a new Installer and fortunately after the install all extensions are still there :)
Just got this issue myself. Didn't realize that Visual Studio Code could delete itself.
Just happened. 😫
It happened today. I installed VS Code to the same directory. After that was compeled to disable/enable Salesforce extension and restart VS code once. All code with tabs, project and so on, on its place.
Right, so, to be clear, either this is a new issue, or the issue has become worse and this needs to be fixed, not closed, please. This is not a "minor inconvenience" I have lost a lot of work and have had to recreate all my settings and re-download any missing extensions. Some things did sync with my profile, but that was out of date and many things suffered regressions. Much time was lost in this.
This has just happened to me - or at least I think so. Have been happily using VS Code for a few years, just came in tonight and my shortcuts don't work and the program itself seems to have disappeared. Guess I'll have to redownload it but I'll have to reinstall all the extensions I had, this is ridiculously inconvenient and I've never known it happen with any other program!
EDIT: ok I overreacted, the download/install was pretty quick (despite my machine being quite old and not high-spec) and it seems to have remembered my extensions, so very little time was actually lost - more spent wondering what the hell had happened than actually fixing it! But it doesn't strike me as acceptable that this can happen, and from reading this and other related issues this doesn't seem like a rare occurence.
@robinzigmond Do you use Malwarebytes?
Based on my reading, Malwarebytes is a possible culprit. It appears to have been an issue in my case. See issue #60697.
@cmcqueen thanks - but not in my case. I have used Malwarebytes in the past but it must have been on a previous machine, I just checked and I don't have it on this one.
This has been happening to me for a while, I was solving as mention in this post I was not able to remove bin folder for some reason. (I have company-managed antivirus so I can't disable it and try.)
I download setup file for System and install VS Code for the whole system from the download page: https://code.visualstudio.com/download IMO this time I won't have problem after an update.
Yesterday I shutdown my computer. I noticed VSCode prevents me from shutting down, but I click "Shutdown anyway". Today morning I lose VSCode. I suppose VSCode tries to update itself after closing, but the machine shutdown so it fails and brings down everything else.
Is there an option to prevent update-on-closing ?
This is very annoying. I have run into this problem several times already. Do people at Microsoft not realizing the update should be like notepad++?
Hi, this issue is still happening. I closed vscode and when I clicked shutdown, it says vs code is running so I cancel. I shutdown again and now vs code needs to be re installed.
I think it would make a lot more sense to just ask the user if they want to update, or show "update available" in the bottom bar somewhere.
This happened today with me as well. It doesn't get deleted, it just get moved to another directory. By default, it would be located in
C:\Users\"your user"\AppData\Local\Programs\Microsoft VS Code\_
This solved it for me
Happened to me today, in the middle of coding, without shutting down the machine. All I wanted to do was close and reopen vscode, and as soon as I closed vscode, it self-destructed.
I went to start work and I can't find Visual Studio Code. Below is the only kind of feedback I'm getting. And this isn't just an issue of the shortcut being lost, I can't find Visual Studio Code in my programs or anywhere on my computer. I'll try the above that carlos-delamo recommended.
Update: I also use Malwarebytes, so I will try this suggestion: https://github.com/microsoft/vscode/issues/60697#issuecomment-633811531
Just happened to me, it's about the 4th time. Unsure about updates, all I know is I try to run VSCode, and it's no longer on my computer except for a broken shortcut and empty folder. Hopefully you'll figure out what it was!
This same thing happened to me today.
This has just happened to me - or at least I think so. Have been happily using VS Code for a few years, just came in tonight and my shortcuts don't work and the program itself seems to have disappeared. Guess I'll have to redownload it but I'll have to reinstall all the extensions I had, this is ridiculously inconvenient and I've never known it happen with any other program!
EDIT: ok I overreacted, the download/install was pretty quick (despite my machine being quite old and not high-spec) and it seems to have remembered my extensions, so very little time was actually lost - more spent wondering what the hell had happened than actually fixing it! But it doesn't strike me as acceptable that this can happen, and from reading this and other related issues this doesn't seem like a rare occurence.
same here! after downloading and running the installer, everything seems to work as before (settings, plugins, ...)
I can also confirm this problem. Happened yesterday night - after starting the computer again today VSCode is completely gone from my Windows 10 computer. Only a bunch of empty directories left.
Reinstall it, everything will come back. I later found, that when last time computer was shutting down, the updates ran, and did not completed. In the mean time computer shut down. So, after i installed it again, everything came back.
I can confirm this issue, it now happened to me for the 3rd time. Restarted computer, briefly saw a "Pending Updates" dialog popping up with Windows waiting for VS Code to end before shutting down. After reboot, VS Code was gone as described by other users above.
At least we know we’re not crazy, someone should download the source and see if they can fix it, can’t be too difficult. I may try if I can find some time this week!
Thank you,
Dan Chase
From: sarky-de @.> Sent: Wednesday, December 15, 2021 4:48 AM To: microsoft/vscode @.> Cc: Chase @.>; Comment @.> Subject: Re: [microsoft/vscode] VS Code was lost on shutdown with pending update (#52855)
I can confirm this issue, it now happened to me for the 3rd time. Restarted computer, briefly saw a "Pending Updates" dialog popping up with Windows waiting for VS Code to end before shutting down. After reboot, VS Code was gone as described by other users above.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode%2Fissues%2F52855%23issuecomment-994586751&data=04%7C01%7C%7C7aca250c880a4923408308d9bfb002cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637751584963259713%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=7xDDn93%2FXY2gZuyr9kU3Xr%2BjS2wZErwe3TCkWj%2FyZJs%3D&reserved=0 , or unsubscribe https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKNVHI37BPCDAXO25VQY6W3URBP5XANCNFSM4FG4NCNQ&data=04%7C01%7C%7C7aca250c880a4923408308d9bfb002cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637751584963259713%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9vdbRiacpvwwR14E7JmNapJOcqRCmnjeHbx0Ti43zpI%3D&reserved=0 . Triage notifications on the go with GitHub Mobile for iOS https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C7aca250c880a4923408308d9bfb002cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637751584963269668%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Rp%2BMPWc2g4Jhkc%2Bp6%2BjshDWvoMP386J%2B5eHhsTErD1Q%3D&reserved=0 or Android.
Microsoft really needs to address this. Just happened again to me.
I haven’t had it happen since I prevented updates. Running an older version but doesn’t impact me the same way as having to reinstall once a week.
This happened to me today for the second time. It seems to happened when there is a VS Code update and/or my computer has cumulative system updates (both scenarios occurred today). My solution last time, after restarting my computer with no success, was to uninstall/reinstall VS Code—I believe this happened on 2/3/2022 because that's when I downloaded VSCodeUserSetup-x64-1.64.0.exe.
I'm using Windows 11 and use Malwarebytes, but I "upgraded" to Win11 in November 2021, and I've used Malwarebytes for at least a year. (I mention Malwarebytes because it mentioned in the thread above.)
I know that basically I'm describing things that have happened to everyone else, but figured "what the hell" I'll add my experience.
Before restarting my pc this time, the VS Code shortcut no longer worked but the executable was still available. However, I got an error message when I tried running it. I checked file/directory permissions and those were fine. So I restarted the pc and now the exe is gone (unins000.exe is still available). I opened system settings and under Apps & Features, VS Code is still listed, but I only have the option to uninstall.
I've listed the two system updates that occurred today, but since I don't have any updates on or around 2/3/2022 (when I experienced this issue the first time), I don't know if system updates are part of the cause or just a correlation.
February 9, 2022: 2022-02 Cumulative Update for .NET Framework 3.5 and 4.8 for Windows 11 for x64 (KB5009469) 2022-02 Cumulative Update for Windows 11 for x64-based Systems (KB5010386)
It happened to me too (today) after update KB5010342 was installed
This is also the 2nd time for me this happened. VScode was waiting on github credentials. Closing VScode triggered the update, which failed due to a process still running (github authorization).
This issue has been going on for quite some time it appears, I saw another closed thread here on it. Happened to me just now. It is possible VS Code was waiting on my GitHub credentials as well. I shut things down yesterday (closed Code) came back today and it had uninstalled itself. I do recall an update was pending and it required a code restart. Will keep an eye out for details.
Certainly, this is a bug that is important to fix. I assume people don't like it when their tools disappear >: ). Don't delete code unless there's a way back!
I've experienced this exact issue no less than 12 times in the past two months. I don't pay attention to how often VS Code is updating, so I'm unsure if it ONLY happens when I close and there is an update, or not. However, every time it happens, it is after closing VS Code. This has caused me to lose several hours of productivity and is frustrating. I'm about to reinstall again, as apparently VS Code self-destructed after/during I shutdown last night. Unfortunately I am stuck using VS Code for the next three weeks, and seeing how this issue has persisted since about 2018 (there are several closed issues on this problem in this repo), I doubt it will be fixed by then.
Edit: Forgot to mention, when there is an update and I close VS Code, it begins the auto-update. It hangs indefinitely every time. The only way I can end it is by restarting the computer (task manager was useless). This results in the same issue of VS Code being uninstalled.
It was the second time ,it happend. I download VScode's update patch when I was coding , and then shut down the computer and forgot to update it. Next day I turn the computer on and can't find VScode anywhere , all the file was empty.