Skip to content

Virtual Environment Does Not Appear Next to Path in Shell #2793

@adam-grant-hendry

Description

@adam-grant-hendry
  • 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).
  • OS version and name: <Windows 10, Version 1809>
  • Poetry version: <1.1.0a3>
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Moved #2788 to Bug as activate scripts within virtual environment folder indicate virtual environment name is supposed to appear next to path in parentheses (as is typical when using, e.g., virtualenv). This does not work (at least for Windows Command Prompt).

Action:

C:\Users\example\Desktop\Project>poetry shell

Expected Result:

Spawning shell within C:\Users\example\AppData\Local\pypoetry\Cache\virtualenvs\project-####-py#.#
Microsoft Windows [Version 10.0.17763.1339]
(c) 2018 Microsoft Corporation. All rights reserved.

(project-####-py#.#) C:\Users\example\Desktop\Project>

Actual Result:

Spawning shell within C:\Users\example\AppData\Local\pypoetry\Cache\virtualenvs\project-####-py#.#
Microsoft Windows [Version 10.0.17763.1339]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\example\Desktop\Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/uxFeatures and improvements related to the user experiencearea/venvRelated to virtualenv managementkind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions