Skip to content

Code won't update on macOS #7426

Closed
Closed

Description

  • VSCode Version: Version 1.3.0-insider (1.3.0-insider) 6bc81df
  • OS Version: OS X 10.11.5

Steps to Reproduce:

  1. A message pops up saying there's a new version and Insiders will be updated after it restarts.
  2. Click 'Update Now'. Code closes but doesn't reopen even after waiting a very long time.
  3. 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.

Activity

  1. joaomoreno commented on Jun 9, 2016

    @joaomoreno
    Contributor

    Does it always happen? In other words, was an Insider update never successful for you?

  2. scottste commented on Jun 9, 2016

    @scottste
    Author

    João Moreno (@joaomoreno) As far as I can remember it's always happened with the insiders build and has never been successful.

  3. joaomoreno commented on Jun 9, 2016

    @joaomoreno
    Contributor

    Have you ever opened Code with sudo?

  4. scottste commented on Jun 9, 2016

    @scottste
    Author

    Not that I remember. Is there a way I can check to see if I did and fix it?

  5. joaomoreno commented on Jun 10, 2016

    @joaomoreno
    Contributor

    Basically, you can check the permissions of ~/.vscode-insiders and ~/Library/Application Support/Code - Insiders.

  6. scottste commented on Jun 10, 2016

    @scottste
    Author

    ~/.vscode-insiders - drwxr-xr-x 7 myusername
    ~/Library/Application Support/Code - Insiders - drwx------ 10 myusername

    I tried removing both of those folders and reinstalling an insiders build from a couple of days ago and it still won't update.

  7. added
    bugIssue identified by VS Code Team member as probable bug
    and removed
    info-neededIssue requires more information from poster
    on Jun 10, 2016
  8. 139 remaining items

  9. UncleVic commented on May 5, 2017

    @UncleVic

    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.

  10. Roscoechen commented on May 7, 2017

    @Roscoechen

    It works for me, too!

  11. jagloro commented on May 11, 2017

    @jagloro

    $ sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*

    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)

  12. rikkert commented on May 12, 2017

    @rikkert

    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.

  13. perlun commented on May 12, 2017

    @perlun

    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.

  14. locked and limited conversation to collaborators on May 15, 2017
  15. joaomoreno commented on Sep 27, 2018

    @joaomoreno
    Contributor

    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:

    sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*
    xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app
    

    Closing this issue since the fix for #57664 allows us to inform users of this situation, instead of failing silently.

  16. added a commit that references this issue on Sep 6, 2026
    5f2dcc7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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)

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions