Skip to content
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

PowerShell prompt string not modified by poetry shell #4560

Closed
2 of 3 tasks
AndreaCogliati opened this issue Sep 25, 2021 · 1 comment · Fixed by #5053
Closed
2 of 3 tasks

PowerShell prompt string not modified by poetry shell #4560

AndreaCogliati opened this issue Sep 25, 2021 · 1 comment · Fixed by #5053
Labels
kind/bug Something isn't working as expected

Comments

@AndreaCogliati
Copy link

AndreaCogliati commented Sep 25, 2021

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

poetry shell doesn't update the PowerShell prompt string, so there's no visual cue that a poetry environment is active in the current shell. See sample output:

Poetry (1.1.10) is installed now. Great!
PS C:\Users\Andrea Cogliati\source\repos\pigs> poetry new poetry-demo
Created package poetry_demo in poetry-demo
PS C:\Users\Andrea Cogliati\source\repos\pigs> cd .\poetry-demo\
PS C:\Users\Andrea Cogliati\source\repos\pigs\poetry-demo> poetry shell
Creating virtualenv poetry-demo-g8BhE-uU-py3.7 in C:\Users\Andrea Cogliati\AppData\Local\pypoetry\Cache\virtualenvs
Spawning shell within C:\Users\Andrea Cogliati\AppData\Local\pypoetry\Cache\virtualenvs\poetry-demo-g8BhE-uU-py3.7
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Andrea Cogliati\source\repos\pigs\poetry-demo> ls


    Directory: C:\Users\Andrea Cogliati\source\repos\pigs\poetry-demo


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         9/25/2021   4:31 PM                poetry_demo
d-----         9/25/2021   4:31 PM                tests
-a----         9/25/2021   4:31 PM            324 pyproject.toml
-a----         9/25/2021   4:31 PM              0 README.rst

PS C:\Users\Andrea Cogliati\source\repos\pigs\poetry-demo> $host.version

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  1237
@AndreaCogliati AndreaCogliati added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 25, 2021
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants