-
Notifications
You must be signed in to change notification settings - Fork 110
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
Don't require sudo for installing package #156
Comments
I'm sorry about the inconvenience. This is a change I'm a bit uncertain about: on one hand it's annoying to have this happen, OTOH it's also bad that Revise mysteriously failed for some people. It's possible that recent design changes make this less of a problem, but really it's not uncommon to load ~500 Julia packages, and that's a significant fraction of 8192 which is the default on many systems. Unfortunately, I'm unaware of a way to increase the maximum without sudo. I've already built in a way to disable the warning, see the |
During install when the issue is printed out to the terminal, can you ask the user if they want to do it or not and allow them to bypass it without the error? |
No, unfortunately I'd love it if it were more interactive: I'd like to ask users whether they want to add the automatic startup to their |
I can turn this off. I was just annoyed by bug reports about it not working. And I did set up a mechanism so you can prevent yourself from being annoyed. |
I had the same problem. It would be nice if I can set ENV["REVISE_ASK_USER_WATCHES"] = "no" to turn it off. Finding |
Sure, if that's easier. I've sometimes wondered if it would be better to have a config file, though, than setting all the |
I don't think it is appropriate for a package to go ahead and change your OS settings with no option to opt out as it will change the settings for all applications and the number of watchers might be a low value to prevent apps from degrading the filesystem performance. I would like the installer to give the warning and explain the potential issue and print out the command to run to increase the max watchers. I think adding env vars or config files is the wrong place for this as a user would likely not do that ahead of time. OS changes should be 'opt-in'. Is it possible to trap the error when Revise is running and then output a better error message (with remedy)? |
@timholy I totally agree that configuration via |
How about I think it makes sense to do the check at run-time since it looks like |
You have two options, (1) (not advertised) to create that empty file or (2) enter a wrong password. But I get that it's not ideal now. 👍 to the idea of trapping the error, that seems like the best solution. |
Great. This will even cover the case where the user is running on a different machine than the installer. Thanks Tim! |
I just hope I wrote the check for the error correctly! This is a very hard one to catch. |
Hi,
I don't have sudo access and the installer wants to expand the maximum number of watched files for which it requires sudo. The installer fails and I have to run it again. Please provide a way to bypass sudo so that the installer will complete with success.
Glen
The text was updated successfully, but these errors were encountered: