-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make poetry env list show the current shell too #8
Comments
the activated environment is the one that poetry uses when you do stuff eg in your output you can see that the activated environment is the one used by that you might or might not get an answer to indeed your example emphasises that it would be very confusing to call that python the "shell" python since it is not the one that is used by still: merge requests welcome if you have improvements |
Sorry, I'm still a bit confused here. It's poetry that is setting the shell Python to point to a different environment than the activated environment. That's why I want Poetry to tell me which Python that is. |
these are the same thing:
I don't know what you mean, can you show something to support that? |
Yes, that's one way to spawn a shell. Consider:
It is very easy for the "shell environment" to diverge from the "activated environment". There is currently no way to display that. |
if you care to keep track of which environment you're currently in the usual way - and so far as I know also the default, perhaps you have deliberately undone this - is in the prompt
to be honest I consider |
Sorry, but I don't think that's right. The decativate command is exactly for this.
Yes, the state is confusing, which would be clarified by changing the display, which motivates my suggestions to display the current shell (if any). |
no, it isn't. The deactivate command would be suitable if you had activated the environment with This confusion is among the reasons that |
That's what I'm actually doing. I use zsh-poetry, which automatically calls activate and deactivate. I didn't want to complicate this issue though. |
Well that didn't work! In that case we are back where we started:
I'll add one more time: if there is something here that you care about, by far the most likely way of making a difference is to submit a merge request |
It's confusing to me that
poetry env list
shows an activated environment that's different from the shell environment. I'm not entirely clear what activated means, but it would be nice to also show the current shell if any.My suggested output would show outputs like:
I'm also not entirely sure why the shell can be different than the activated environment.
The text was updated successfully, but these errors were encountered: