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
EACCES permission error when trying to install extension (Mac OS High Sierra) #43993
Comments
update: this seems to be only the case with the extension 'Vetur' |
@joaomoreno I found #41797 but the OP explicitly mentioned he has write access to temp dir. |
@cyrus86 What does |
It returns:
USERNAME is the current logged in user, who also owns vscode when checked in the activity monitor. |
How about |
Ooooh |
I don't know who creates that folder. But since this seems to happen always with the vetur extension (#41797), I'd say it's either them or vetur itself. Please check with them to understand who creates that GUID folder. |
const zipPath = path.join(tmpdir(), generateUuid()); |
I just realised that that path isn't a folder. The permissions @cyrus86 Can you install any other extension? Does the issue reproduce all the time with the Vetur extension? |
I reproduces every time with the Vetur extension. |
@sandy081 Any ideas? |
@cyrus86 Can you please set log level to |
Hi @sandy081 , thank you for helping me out.
the other logs didn't really show any changes when installing vetur. let me know if you need them as well. |
Assigning to February milestone for investigation |
i've got the same problem when trying to install prettier-vscode |
@cyrus86 and @uroymyy Are you both on High Sierra? Do you have FileVault on? |
Logs do not have additional information. Can you try downloading the extension directly from Market place ? Browse for the extension in market place and there will be a link to download extension under resource section on the right. Also try to download it into the temp directory. |
yes on High Sierra, i've downloaded the vsix file and installed it from the command line "code --install-extension ./Downloads/esbenp.prettier-vscode-1.2.2.vsix" works fine now... thanks |
Yes, High Sierra and no FileVault. edit: when downloading it into the temp folder it is being created without execution rights for the owner, though. so i guess it's a problem with my setup after all. though I am stumped why it works for other extensions $ lsa octref.vetur-0.11.7.vsix
-rw-r--r--@ 1 USER staff 23M Mar 5 16:39 octref.vetur-0.11.7.vsix |
No clue why it is working for other extensions. Can you open that temp folder and try to install an extension from VS Code and see if a folder is created in the temp folder? |
I tried and observed installing phpcs extension just now. It creates a temporary file just like above,
and has no problem installing. |
@joaomoreno No clue why it says no permission for downloading one and not for other. Not sure what can be done here |
@cyrus86 Can you run https://apple.stackexchange.com/a/104875/225998 might be the cause. |
|
Run it for the files where you see https://unix.stackexchange.com/questions/106642/what-does-the-at-symbol-mean-on-osx-ls |
this only applies to the manually downloaded file. all other files in the temp folder have no extra attributes, only folders.
mostly the same, but just for completeness, when downloaded into normal system downloads folder:
sample of some folders that have an @ in the temp folder:
|
Not sure if this will help anyone but I was able to fix this by uninstalling TrendMicro. As soon as I did, I was able to install prettier-vscode just fine. |
Incidentally we also have TrendMicro installed on our machines at work (where this occurred). |
I was able to install Vetur without problems when there is no TrendMicro installed on the machine in question. So I suppose it's a 3rd party security software related issue and has nothing to do with VSCode. Maybe it messes with the temporary directory permissions. For anybody ending up here with a similar problem: Please try to deactivate/uninstall your security software temporarily to confirm it's not an issue unrelated to vscode. I'm closing this issue, since the initial problem is solved and not related to vscode. |
Error message:
EACCES: permission denied, open '/var/folders/xq/8yrkk6xn1p9btfkhp6jdgckdpx3v2_/T/a56e830b-0d87-4be8-9357-6b481661b2f8'
with variable last folder name in path, but always in subfolder T (which apparently is the $TMPDIR on mac as I just found out)logged in user has permissions on the folder in question:
Steps to Reproduce:
not sure how to reproduce
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: