You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuesmacosIssues with VS Code on MAC/OS XupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
VSCode Version: Version 1.3.0-insider (1.3.0-insider) 6bc81df
OS Version: OS X 10.11.5
Steps to Reproduce:
A message pops up saying there's a new version and Insiders will be updated after it restarts.
Click 'Update Now'. Code closes but doesn't reopen even after waiting a very long time.
After manually reopening it it's still on the previous version
This has been happening for the last few weeks so it isn't a recent development, but with the daily builds now it's a little more annoying. Downloading the most recent version from the website and replacing it works fine. The stable build of Code I have installed does the automatic update fine. I have both builds installed in my Applications folder.
Reacted by Stephen Laughton, Robert R., Leonard Punt, Ryan Krueger, Chris Fritz, Mattia, Per Lundberg, Dan Rothschild, Khalil Awada, Christoph Berger and 37 more
Unfortunately, no can do - still get the errors in system.log saying the update failed:
May 2 09:27:47 ecvaawplun5 com.apple.xpc.launchd[1] (com.microsoft.VSCode.ShipIt): Service only ran for 0 seconds. Pushing respawn out by 2 seconds.
May 2 09:27:49 ecvaawplun5 ShipIt[43736]: Resuming installation attempt 3
May 2 09:27:49 ecvaawplun5 ShipIt[43736]: Installation error: Error Domain=SQRLInstallerErrorDomain Code=-1 "Failed to copy bundle file:///var/root/Library/Caches/com.microsoft.VSCode.ShipIt/update.0sNg83X/Visual%20Studio%20Code.app/ to directory file:///var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/com.microsoft.VSCode.ShipIt.qdjtdoLO/Visual%20Studio%20Code.app" UserInfo={NSFilePath=/var/root/Library/Caches/com.microsoft.VSCode.ShipIt/update.0sNg83X/Visual Studio Code.app, NSLocalizedDescription=Failed to copy bundle file:///var/root/Library/Caches/com.microsoft.VSCode.ShipIt/update.0sNg83X/Visual%20Studio%20Code.app/ to directory file:///var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/com.microsoft.VSCode.ShipIt.qdjtdoLO/Visual%20Studio%20Code.app, NSUnderlyingError=0x7ff83ad29110 {Error Domain=NSCocoaErrorDomain Code=260 "The file “Visual Studio Code.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/root/Library/Caches/com.microsoft.VSCode.ShipIt/update.0sNg83X/Visual Studio Code.app, NSUnderlyingError=0x7ff83ad21770 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
May 2 09:27:49 ecvaawplun5 com.apple.xpc.launchd[1] (com.microsoft.VSCode.ShipIt[43736]): Service exited with abnormal code: 1
May 2 09:27:49 ecvaawplun5 com.apple.xpc.launchd[1] (com.microsoft.VSCode.ShipIt): Service only ran for 0 seconds. Pushing respawn out by 2 seconds.
May 2 09:27:51 ecvaawplun5 ShipIt[43739]: Too many attempts to install, aborting update
May 2 09:27:51 ecvaawplun5 ShipIt[43739]: Application launched at file:///Applications/Visual%20Studio%20Code.app
I did a manual uninstall now, but I wouldn't be sure that it will work the next time an update is rolled out.
(Sorry if I sound negative. I love VSCode and the work you're doing, and I also promote it to colleagues etc. It's just a bit annoying when this happens and the suggested workaround still doesn't help.)
Thanks Julian A (@jagloro) it is definitely related to that dir, also for vscode insiders.
After: sudo chown $USER ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt/*
vscode update complained that my copy was corrupted and advised to reinstall.
Instead I did a: rm -rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt
And that did the trick for me.
Joao - please lock the discussion now, so we don't bury it further. Other similar installation/update problems can be reported in other issues, to keep the threads more separate.
bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuesmacosIssues with VS Code on MAC/OS XupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Activity
joaomoreno commentedon Jun 9, 2016
Does it always happen? In other words, was an Insider update never successful for you?
scottste commentedon Jun 9, 2016
João Moreno (@joaomoreno) As far as I can remember it's always happened with the insiders build and has never been successful.
joaomoreno commentedon Jun 9, 2016
Have you ever opened Code with
sudo?scottste commentedon Jun 9, 2016
Not that I remember. Is there a way I can check to see if I did and fix it?
joaomoreno commentedon Jun 10, 2016
Basically, you can check the permissions of
~/.vscode-insidersand~/Library/Application Support/Code - Insiders.scottste commentedon Jun 10, 2016
~/.vscode-insiders-drwxr-xr-x 7 myusername~/Library/Application Support/Code - Insiders-drwx------ 10 myusernameI tried removing both of those folders and reinstalling an insiders build from a couple of days ago and it still won't update.
138 remaining items
perlun commentedon May 2, 2017
João Moreno (@joaomoreno) before trying to apply the update, here are my Code processes:
The fix does unfortunately not help. I have rebooted, I have run:
Unfortunately, no can do - still get the errors in system.log saying the update failed:
I did a manual uninstall now, but I wouldn't be sure that it will work the next time an update is rolled out.
(Sorry if I sound negative. I love VSCode and the work you're doing, and I also promote it to colleagues etc. It's just a bit annoying when this happens and the suggested workaround still doesn't help.)
UncleVic commentedon May 5, 2017
I've again got message
"Could not create temporary directory: Permission denied."
I did chow and xattr before. But it was showed again.
Version 1.11.2
masOS Sierra
I downloaded version 1.12 and replace it old version. Error message hasen't displayed.
Roscoechen commentedon May 7, 2017
It works for me, too!
jagloro commentedon May 11, 2017
Tried various things in this Issue. This is the one that worked for me.
(I've never had this much difficulty updating software. I hope this is fixed in the future)
rikkert commentedon May 12, 2017
Thanks Julian A (@jagloro) it is definitely related to that dir, also for vscode insiders.
After:
sudo chown $USER ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt/*vscode update complained that my copy was corrupted and advised to reinstall.
Instead I did a:
rm -rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipItAnd that did the trick for me.
perlun commentedon May 12, 2017
This is the fix suggested by João Moreno (@joaomoreno) which has been working for most of us, most of the time.
Joao - please lock the discussion now, so we don't bury it further. Other similar installation/update problems can be reported in other issues, to keep the threads more separate.
joaomoreno commentedon Sep 27, 2018
This is due to a well known Squirrel issue: Squirrel/Squirrel.Mac#182
Workaround: Move Code out of Downloads and into the Applications folder.
Workaround 2: If updates still don't work after moving Code to the Applications folder, you can fix it with
xattr:Closing this issue since the fix for #57664 allows us to inform users of this situation, instead of failing silently.