-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
VS Code automatic update not working #225160
Comments
Is there really such a |
Yes, there is. But if I delete it through Windows File Explorer, it comes back during the update itself and then the update errors again. I tried deleting the file and clicking retry on the update a few times, but it doesn't seem to end. |
Removing with PowerShell doesn't work either: ❯ Remove-Item "C:\Users\felip\AppData\Local\Programs\Microsoft VS Code\nul"
Remove-Item: Cannot find path 'C:\Users\felip\AppData\Local\Programs\Microsoft VS Code\nul' because it does not exist. Removing with wsl -e bash -c 'rm -f "$(wslpath "C:\Users\felip\AppData\Local\Programs\Microsoft VS Code\nul")"' This indeed deletes the file and it no longer shows up in the Windows File Explorer. Then, as I had mentioned, if I click retry on the updater window, it will spin a little and then fail again. The file will show up again on Windows File Explorer and the updater fails with the same error. This means the file is being created by the updater itself. I even tried deleting the file and waiting some minutes before clicking Retry to ensure the file won't be created again by some other process, but it doesn't. It only gets created after I click Retry on the updater. |
I tried updating again today, and it worked, surprisingly. I don't think I did anything special beyond perhaps applying Windows Updates. |
I hit this today in a slightly different version (#225719) so it seems like it's still present |
I haven't seen this, I tried restarting with vscode/xterm.js build tasks active and code - oss opened and it all shut down correctly. I have no idea what the @deepak1556 any hints on what could be going wrong here? I'm not sure how to investigate this further. |
#225719 and this one are unrelated. I will dedupe them.
vscode/src/vs/platform/update/electron-main/updateService.win32.ts Lines 226 to 230 in e377061
CreateFileW callsites should not create a file on disk, needs confirmation if it is the updater process. It is also a reserved name in Win32 namespace hence file manipulation cannot be performed from Win32 programs, refs PowerShell/PowerShell#16841
@felipecrs can you perform the following steps,
|
@deepak1556, absolutely. Will remember to do that as soon as a new update of vscode arrives. I already tried manually downgrading it then updating it, but the update happened very fast and the issue didn't happen. I guess it was cached somehow. |
@felipecrs Any updates here? 🙏 |
Yes, it hasn't happened anymore. :) |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
vscode-inno-updater-1723140822.log
I already tried several things, but the only thing that seems to work is to download the setup.exe again and run it by hand (which works flawlessly, no errors).
The text was updated successfully, but these errors were encountered: