Skip to content

Populate "ProjectRootManager" with activated venv name within project's misc.xml #240

Description

@kjozef-work

Describe the need of your request

There is ongoing issue in PyCharm with missing ProjectRootManager venv name, which affects scratch files in Pycharm (basically python built-ins are not recognized, full details with possible solutions under https://youtrack.jetbrains.com/issue/PY-89831 ).

From user POV, when user selects proper venv to use, propagate the information into misc.xml under ProjectRootManager part.

Proposed solution

Populate misc.xml component with proper venv name:

<component name="ProjectRootManager" version="2" project-jdk-name="<NAME OF VENV>" project-jdk-type="Python SDK" />

I'm not sure what is the algo for venv's naming, but it is consistent with displayed name in Project pane (in square brackets) in GUI.

Alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions