Skip to content
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

VSCode updates fail with "Failed to create file handle" on Code.exe #60815

Closed
jcotton42 opened this issue Oct 13, 2018 · 3 comments
Closed

VSCode updates fail with "Failed to create file handle" on Code.exe #60815

jcotton42 opened this issue Oct 13, 2018 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) install-update VS Code installation and upgrade system issues

Comments

@jcotton42
Copy link

  • VSCode Version:
    Version: 1.28.0 (user setup)
    Commit: 431ef9d
    Date: 2018-10-05T14:58:53.203Z
    Electron: 2.0.9
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64
  • OS Version: Windows 10 1803 (build 17134.345) 64-bit

Steps to Reproduce:

  1. Install VSCode update when available
  2. Observe that update fails

Does this issue occur when all extensions are disabled?: N/A as Code is closed during updates

When installing an update the updater will sit on the intermediate progress bar for several minutes, then shows the following error message

---------------------------
VS Code
---------------------------
There was an error while opening file handle: "C:\\Users\\Joshua\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe":

Failed to create file handle: The process cannot access the file because it is being used by another process.



Please verify there are no VS Code processes still executing.
---------------------------
Retry   Cancel   
---------------------------

Check file handles with a tool like Process Hacker 2 (Process Explorer should also work) shows that the handle is open by System, closing it is impossible. The machine must be restarted and the full setup must be rerun without opening Code beforehand. Disabling AV (Defender in this case) makes no difference.

Antivirus information: Windows Defender
Antimalware Client Version: 4.18.1809.2
Engine Version: 1.1.15300.6
Antivirus Version: 1.277.1010.0
Antispyware Version: 1.277.1010.0

@vscodebot
Copy link

vscodebot bot commented Oct 13, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the install-update VS Code installation and upgrade system issues label Oct 13, 2018
@jcotton42
Copy link
Author

Issue #60625 isn't a duplicate of this one. I tried setting "update.enableWindowsBackgroundUpdates": false but that didn't help either.

@joaomoreno
Copy link
Member

/duplicate #47841

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 15, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) install-update VS Code installation and upgrade system issues
Projects
None yet
Development

No branches or pull requests

2 participants