-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
REPL mode gives different behavior when activating with @ #2983
Comments
I actually think this is a bug. The alternative version is |
Duplicate of #2367? |
I'm inclined to agree with @fredrikekre's comment here: #2367 (comment) |
This does make sense in theory, but it's tripped up a few people now (enough for two GH issues) so it might be good to at least add a warning to Also, regarding this: Pkg.pkg"activate @global_env" Is there a way to pass an IOStream here? This is the reason I am using the functional API rather than REPL. |
Use the shared argument. |
I would just add that it does still feel like unexpected behavior that an identical string passed to the REPL version and the functional version should give entirely different paths, (keeping in mind that "@" is a valid character in filenames). At the very least passing "@" to the functional API should raise an error or warning. |
I think this is a reasonable consideration. You could suppress the warning with |
Beat me to the PR by 1 minute @DilumAluthge :) Thanks! |
There is different behavior when activating an environment with "@" as the first character, between REPL mode and functional mode:
If this is intended behavior, what is the correct way to activate an env in the Julia depot using Pkg's functional mode?(Nevermind, it's just
shared = true
)The text was updated successfully, but these errors were encountered: