-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failure to install pylint when prompted to do so (Permission Denied) #386
Comments
Note: I'm aware of other alternatives such as |
I don't think |
Users probably don't have install permissions by default or otherwise one app could silently install another. I'd expect this kind of hardening from OS similarly to what happens on devices. Somewhat related microsoft/vscode#1614 and |
@MikhailArkhipov sounds like a good solution. One hiccup we run the command in a terminal. Guess we'll have to change the way we install the packages. |
OK, I can look into this |
I think sudo-prompt would be a good solution. I see many development package installers on macOS using something similar. I think Xcode 9.2 is using this or something similar to request "helper" support. |
I'm slowly starting to think we might want to offer to install a private copy of tools in the extension itself to avoid these kinds of issues. |
I'm a little leery of supporting people installing into a sudo-protected Python installation as you almost never want to do that. We will need to discuss this a bit further before committing any code. |
With this approach, we might want to include the command thats being executed. The reason I've used the terminal is so users can see what's happening and tweek the command if need be. |
--user doesn't help. |
@zzj0402 if |
Environment data
VS Code version: 1.181
Python Extension version: 0.8.0
Python Version: 2.7.10
OS and version: macOS 10.13.2
Actual behavior
Opening a .py file prompts to install pylint. Pylint installation fails.
Expected behavior
Pylint installation succeeds.
Steps to reproduce:
Logs
The text was updated successfully, but these errors were encountered: