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

When updating Visual Studio Code is asking for a password to Add Helper #15924

Closed
JohnGinger opened this issue Nov 22, 2016 · 12 comments
Closed
Assignees
Labels
info-needed Issue requires more information from poster upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Milestone

Comments

@JohnGinger
Copy link

  • VSCode Version: 1.7.1
  • OS Version: macOS Sierra 10.12.2

Steps to Reproduce:

  1. Click check for updates
  2. The following dialog pops up, if you enter your password it says an update is available, but when clicking to restart it doesn't do anything
  3. This doesn't happen with a fresh install

screen shot 2016-11-22 at 22 05 13

@JohnGinger
Copy link
Author

On more investigation I'm getting the following error in dev tools when I don't give the password.

Failed to clear temp storage: It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources. SecurityError

@bpasero
Copy link
Member

bpasero commented Nov 23, 2016

This dialog shows up when you had VS Code installed in one location and then you downloaded it again to another location and the auto update kicks in because there is an update available.

@marcovandewater
Copy link

Hi, I did not move VS Code to a different location but I am getting the same message when auto update kicks in. Furthermore it fails to install the update and I need to install new versions of VS Code manually. It seems that this happens since I am on Sierra public beta.

@bpasero bpasero added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Nov 23, 2016
@bpasero bpasero added this to the Backlog milestone Nov 23, 2016
@bpasero
Copy link
Member

bpasero commented Nov 23, 2016

@joaomoreno any more clues where this could come from? I only saw it once on Sandeepds machine when he downloaded VS Code to a new location, started it and it was auto updated.

@bpasero bpasero added the info-needed Issue requires more information from poster label Nov 23, 2016
@joaomoreno
Copy link
Member

joaomoreno commented Nov 23, 2016

This is #7426 (Squirrel/Squirrel.Mac#182). It happens to me when Code is in the Downloads folder. @JohnGinger where is your application bundle located?

@JohnGinger
Copy link
Author

It looks like it is the same issue, Code is in the Downloads folder.

@joaomoreno
Copy link
Member

If you put it in the Desktop, for example, does it work?

@JohnGinger
Copy link
Author

It doesn't seem to update, but it doesn't prompt for a password before saying an update is avaliable.

@ramkinavy
Copy link

It keeps asking for password again and again

@xcity
Copy link

xcity commented Feb 8, 2017

it's linking to com.apple.quarantine feature in sierra, here is the WA.

  1. remove vscode completely using appdelete or others. you cannot just simply remove vscode inside from app.
  2. change com.apple.quarantine attribute
    xattr -dr com.apple.quarantine "/Applications/Visual Studio Code - Insiders.app"

after that, run vscode won't get a prompt of having a password to install helper, you will receive a new error message indicate no permission to create temp files. Off cause, the update still fail.
3. change permission.
sudo chown myuser:staff /Users/myuser/Library/Caches/com.microsoft.VSCode.ShipIt/*

change myuser to your user id.
4. re-try update.

@joaomoreno
Copy link
Member

@xcity It's better if you link people to my post in #7426

@yarandoo
Copy link

I have the same issue. Is there a less manual solution to this?

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

7 participants