-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Code won't update on macOS #7426
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
Comments
Does it always happen? In other words, was an Insider update never successful for you? |
@joaomoreno As far as I can remember it's always happened with the insiders build and has never been successful. |
Have you ever opened Code with |
Not that I remember. Is there a way I can check to see if I did and fix it? |
Basically, you can check the permissions of |
I tried removing both of those folders and reinstalling an insiders build from a couple of days ago and it still won't update. |
@scottaddie Let's do something else:
|
Here's a copy of the log from when the app started and for the next few minutes after I clicked the 'update' button in vs code. The service errors continue to happen even after quitting vs code. Let me know if there's anything else I can provide. |
electron/electron#5139 - did you try restarting your machine? 😖 |
Restarting me machine stopped the errors, but they just started again the next time I tried to update the program. |
I'm still having this problem. If anyone wants to remote debug my machine, I'm here! Any time I update manually, i.e. grabbing the latest and overwriting it in my applications folder, I still have the problem. the stable build never hiccups. |
I am also experiencing this same issue with similar Console.app logs. Also resorting to overwriting every time I need to update. |
@ryanmagoon @stephenlaughton Can we take a look at your logs too? |
Sure! I’ll grab them in the morning. Ryan Magoon On September 2, 2016 at 4:42:00 PM, João Moreno (notifications@github.com) @ryanmagoon https://github.com/ryanmagoon @stephenlaughton — |
The same thing is happening to me with El Capitan 10.11.6. The problem is that the update process asks to elevate to do the update:
Here are the relevant folder permissions on my machine:
Here's listing of the
Because the updater asked to elevate, the log files are owned by the root user. While the
I only invoke code-insiders from terminal windows (as a regular user, not sudo), but I tried running it via Spotlight and had the same problem. |
Hmm, I'm also back at this. chown (tried both the non-admin-group-one and the ones with admin group) and xattr did not help. This is my
Maybe I should just get a PC instead... 😆 (My problem is that I've used multiple accounts on my Mac and run the update on the other account, so it's quite likely that some more permission or something is messed up.) |
I gave up and move the *.app from |
Tried rebooting, then xattr and chmod. Still get errors. 😢
@joaomoreno any ideas? |
This is the fix. I am tempted to lock this thread so people would stop burying it further. When you execute Code, run
So, fully read the fix and try again. |
Worked like a charm, thanks @joaomoreno |
@joaomoreno Understand your frustration. I checked and my Code is not running from the strange path and still, I am getting this error. Should we treat this as a separate issue and debug it there? It's not clear to me if it has the same root cause or if it's a different beast. |
“joaomoreno” solution worked for me also, I’m a new mac user crossing over from windows world. Just needed to do the 1st step and it upgraded instantly……….I didn’t have the “com.apple.quarantine” issue, so I didn’t do that step………..but anyway Thank you. |
@joaomoreno before trying to apply the update, here are my Code processes: $ ps -fe | grep Code
0 461 1 0 Tue02PM ?? 0:01.64 /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper
501 41234 1 0 9:17AM ?? 3:25.84 /Applications/Visual Studio Code.app/Contents/MacOS/Electron
501 41235 41234 0 9:17AM ?? 0:00.75 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=gpu-process --channel=41234.0.1121821213 --mojo-application-channel-token=A0E7712AA25C3FD859EEC5667A36CA23 --no-sandbox --supports-dual-gpus=true --gpu-driver-bug-workarounds=18,20,40,51,52,56,58,66,67,71,73,75 --gpu-vendor-id=0x1002 --gpu-device-id=0x6821 --gpu-driver-vendor --gpu-driver-version --gpu-driver-date --gpu-secondary-vendor-ids=0x8086 --gpu-secondary-device-ids=0x0d26 --gpu-active-vendor-id=0x1002 --gpu-active-device-id=0x6821
501 41236 41234 0 9:17AM ?? 0:00.83 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=SharedProcess
501 41239 41234 0 9:17AM ?? 0:08.03 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=425C308A4380EB11330BD7956BB948DE --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=98DCE7B7DFDA1C33F82F5BFB05E5762C --mojo-application-channel-token=425C308A4380EB11330BD7956BB948DE --channel=41234.1.1318110059
501 41789 1 0 9:17AM ?? 0:00.01 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/2p/f5tb9h_j15ngqjdpdkmwrd_00000gn/T/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=59
501 41790 41239 0 9:17AM ?? 0:02.37 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
501 41791 41239 0 9:17AM ?? 0:20.11 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
501 41794 41239 0 9:17AM ?? 0:00.43 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/local/bin/git /Volumes/extra/git/ecraft/ecraft-fieldops utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.10.0
501 41824 41790 0 9:17AM ?? 0:00.41 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/server/out/jsonServerMain.js --node-ipc
501 41826 41790 0 9:17AM ?? 0:02.34 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/plundberg/.vscode/extensions/streetsidesoftware.code-spell-checker-1.0.2/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/plundberg/.vscode/extensions/streetsidesoftware.code-spell-checker-1.0.2/server/src/server.js --node-ipc The fix does unfortunately not help. I have rebooted, I have run: $ sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*
$ sudo xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app 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.) |
I've again got message I did chow and xattr before. But it was showed again. Version 1.11.2 I downloaded version 1.12 and replace it old version. Error message hasen't displayed. |
It works for me, too! |
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) |
Thanks @jagloro it is definitely related to that dir, also for vscode insiders. |
This is the fix suggested by @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. |
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
Closing this issue since the fix for #57664 allows us to inform users of this situation, instead of failing silently. |
Steps to Reproduce:
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.
The text was updated successfully, but these errors were encountered: