-
-
Notifications
You must be signed in to change notification settings - Fork 270
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 environment handling #1020
Comments
This would conflict with the syntax proposed in #930. I'm pretty sure we could alternatively use |
#480 is a subset of this |
I wonder if the |
|
We need to be a bit careful to create the right mental navigation model. Currently the model is: there's a current active environment and home environment. If we have |
Yeah, that's the current way the sandbox works.
Agreed.
My personal preference is only one. A lot of CLIs have similar features but I almost never need to pop back more than once. On the rare occurrence that I require a full stack, I forget the syntax and just do it manually anyway. That being said, I don't feel strongly either way. |
To elaborate, the REPL features in this PR are meant to be used when someone needs to quickly (and lightly) navigate between related environments. For heavier env navigation, something like #621 seems more appropriate. |
Ok, so that seems simple enough then: |
Feels good:
|
I very much dislike this, and I don't understand why it would be good. Would |
Ok 🙂. I was on the fence about the feature you mention, but it doesn't seem worth the complexity. |
I still haven't even implemented The current alternative would be:
This feels snappy enough, and it comes at minimal implementation cost. |
I also like the nice "push/pull" with the |
So |
Yeah, it will give users a convenient syntax to interact with "sandbox" environments. |
Personally I don't think this would make my workflow any more convenient. When I am working on a project I generally have pwd set to that folder, and start julia with
Is it really worth the extra complexity to support
which is basically the same thing but just another thing to learn? |
The cost for both |
Sure, it might not be much implementation complexity, but it is extra syntax to communicate in docs and answer questions for. Is that worth it?
I don't think you jump between the sandbox envs. If you have a project with
What do you mean? |
The core issue is users have no convenient way to activate the test environment. Without this syntax, users have two alternatives:
With this syntax:
|
Honestly, I don't see the reason for pushback on this |
But you still need to type out the full path to the parent project first, just to then be able to use
when we already have
Yea, but isn't this typically what you have anyway? Why not use the tools with home project and active project that are already available? I also feel like you are only really interested in activating the test env when you are working on that particular project. If you develop multiple packages, e.g. from This is also not something that has been requested by anyone, or something that has been brought up as an annoyance. You are the only one that have argumented for this, so would be good to hear other peoples input. |
I personally almost never use
Because this presupposes a particular workflow. I wouldn't want to force users to work a certain way unless there is a compelling reason to do so.
|
You and me both. It's fascinating to see what people come up with. |
closed by #1488 |
I just wanted to sketch some ideas out, and possibly collect some pros/cons
activate
the default command in the REPL.For example:
pkg> dev/Foo
orpkg> v1.0
@
to mean related environment, this would work in conjunction with the new isolation systemFor example:
add Test @test
oradd Foo @deps
or evenadd Foo @dev/Bar
For example:
pkg> add Foo
,pkg> activate @test
,pkg> add Test
,pkg> activate -
The text was updated successfully, but these errors were encountered: