Closed adityamwagh closed 3 years ago
@adityamwagh does your theme/config have a Python segment? If so, can you share the configuration?
This is the content of the python segment. According to the documentation, display_virtual_env
defaults to true
. So not mentioning it shouldn't be an issue.
{
"type": "python",
"style": "powerline",
"foreground": "#906cff",
"properties": {
"prefix": "\u005b\uE235 ",
"postfix": "\u005D "
}
},
@adityamwagh we look at a few environment variables to define if there's a virtual env active. Can you confirm one of these actually holds a value:
Also, there need to be python files in the folder to actually show the context in this basic use-case. Otherwise you need to add "display_mode": "context"
to the segment's properties.
Also, there need to be python files in the folder to actually show the context in this basic use-case. Otherwise you need to add
"display_mode": "context"
to the segment's properties.
Found the culprit. Thanks!
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Prerequisites
CONTRIBUTING
guideDescription
The space theme isn't showing virtual environments in the prompt.
Environment
Steps to Reproduce
virtualenv .env
source .env/bin/activate
Expected behavior: Show which virtual environment I am in.
Actual behavior: No difference in prompt.