Wrong Environment Name with Feature "Honor user's custom prompt (PS1) setting."
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- anaconda, zsh
- Domain
- cli
Research direction
Start in Settings -> Features by reproducing the issue with “Honor user's custom prompt (PS1) setting.” enabled, then run conda activate ENV_NAME and compare the prompt with conda info. Trace how the active environment name is obtained and rendered when the custom PS1 setting is enabled. Done means the prompt shows ENV_NAME while the active environment is ENV_NAME.
Written by the indexing model from the issue text.
Description
Discord username (optional)
No response
Describe the bug
With the feature "Honor user's custom prompt (PS1) setting." activated, the anaconda environment name in the prompt keeps showing "base" after "conda activate ENV_NAME", even though the active environment has actually been switched to the "ENV_NAME".
With the feature "Honor user's custom prompt (PS1) setting." deactivated, the anaconda environment name is correct in the prompt.
To Reproduce
Steps to reproduce:
- Go to 'Settings -> Features'
- Activate 'Honor user's custom prompt (PS1) setting.'
- Go back to terminal, create a new environment with
conda create -n ENV_NAME python=3.9 - Activate the new environment by
conda activate ENV_NAME - Check the environment name in the prompt (which will still be
base) - Check the actual environment name by typing the command
conda info, the 'active environment' will beENV_NAME - Go to 'Settings -> Features'
- Deactivate 'Honor user's custom prompt (PS1) setting.'
- Now check the environment name in the prompt (which will change to
ENV_NAME) - Redo step 6 and confirm the 'active environment' to be
ENV_NAME.
Expected behaviour
When 'Honor user's custom prompt (PS1) setting.' feature is activated, the environment name shown in the prompt should be the same as the active environment name. In the above procedure, the environment name shown in the prompt should be ENV_NAME in step 5, the same as the active environment in step 6.
Screenshots
Operating System
MacOS
OS Version
12.4
Shell Version
zsh 5.8.1 (x86_64-apple-darwin21.0)
Warp Version
v0.2022.05.30.09.10.stable_02
Additional context
Mac: 2021 14' MacBook Pro
Anaconda version: Anaconda3-2022.05-MacOSX-arm64
Python version: 3.9
Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19
No response
- Dominant language
- Rust
- Stars
- 65.1k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from warpdotdev/warp
-
area:agent area:window-tabs-panes enhancement needs-info os:mac repro:high triaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
warpdotdev/warp#15768 · 3 comments · 1 reaction ·
-
bug factory-auto-implement factory:revops-factory os:mac ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 1/5 Under an hour Newbie friendliness 90/100
warpdotdev/warp#15697 · 2 comments ·
-
area:editor-notebooks bug repro:high triaged warp:auto-triage-review warp:tracking
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
warpdotdev/warp#13949 · 3 comments ·
-
markdown_parser: unclosed `<u>` markers pair via the emphasis algorithm and delete surrounding text Openarea:editor-notebooks bug ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
warpdotdev/warp#12863 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
warpdotdev/warp#11969 · 2 comments ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100