-
Notifications
You must be signed in to change notification settings - Fork 9
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
VSCode on Windows needs elevated right to be able to create ./lib/STLinkedResources
link files
#2
Comments
Could you please check whether the problem is to create the link in the directory (e.g. by creating a link to a file in the parent directory) or whether the problem is that the target file cannot be accessed? |
Sorry, I don't know how to do that. |
Can you experiment with the access rights and the ownership of the directory? It looks as if there is some problem there that doesn't allow a normal user to create symlinks. To me it looks strange that you cannot create a symlink in a directory that you own... |
In an administrator Searching more information, I found this Microsoft page in which we can read that for security reasons, elevating to administrator privileges is mandatory to create symbolic links. |
I now had the time to look at this. The explanation is very clear, Microsoft thinks that creating symbolic links is too dangerous for normal users. Thank you for the link to the Microsoft page explaining this.
|
My account has Administrator access right and I cannot create a symbolic link in a 'standard' user context (neither VSCode nor Powershell). I have to run the mlink command in an 'Administrator' context to be allowed to create a symbolic link. I tried using pyuac which sounds great... but I'm not able to setup it (I don't know Python very much). |
When launched without elevated access rights, VSCode on Windows is not able to create
./lib/STLinkedResources
link files when the script is executed and generate aCannot create symlink in directory
error.I don't know if the script can be executed as elevated while it's launched by a non-elevated instance of VSCode...
If it's not possible, could please mention to launch VSCode 'As Administrator' in the README.md?
Thank you
The text was updated successfully, but these errors were encountered: