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

Conda env PROMPT is unstable #23151

Closed
ilyakochik opened this issue Mar 30, 2024 · 1 comment
Closed

Conda env PROMPT is unstable #23151

ilyakochik opened this issue Mar 30, 2024 · 1 comment
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@ilyakochik
Copy link

When I flip between environments PROMPT part that shows the current environment (...) changes in a weird way. See an example below.

  1. Here `(.conda) is fine.
(.conda) tree-sitter-sql % conda env list
# conda environments:
#
base                     /Users/user/Applications/miniconda3
                         /Users/user/Code/data-rc/backend/.conda
                      *  /Users/user/Code/data-rc/tree-sitter-sql/.conda
                         /Users/user/Code/mo-sql-parsing/.conda
  1. Now (base) (.conda) is a bit off, should be just (base).
(.conda) tree-sitter-sql % conda deactivate
(base) (.conda) tree-sitter-sql % conda env list
# conda environments:
#
base                  *  /Users/user/Applications/miniconda3
                         /Users/user/Code/data-rc/backend/.conda
                         /Users/user/Code/data-rc/tree-sitter-sql/.conda
                         /Users/user/Code/mo-sql-parsing/.conda
  1. Now it becomes too messy with (/Users/user/Code/data-rc/tree-sitter-sql/.conda) (.conda) instead of just (.conda).
(base) (.conda) tree-sitter-sql % conda activate ./.conda
(/Users/user/Code/data-rc/tree-sitter-sql/.conda) (.conda) tree-sitter-sql % con
da env list
# conda environments:
#
base                     /Users/user/Applications/miniconda3
                         /Users/user/Code/data-rc/backend/.conda
                      *  /Users/user/Code/data-rc/tree-sitter-sql/.conda
                         /Users/user/Code/mo-sql-parsing/.conda
  1. Now it is (.conda) while no environment is activated.
(/Users/user/Code/data-rc/tree-sitter-sql/.conda) (.conda) tree-sitter-sql % conda deactivate
(base) (.conda) tree-sitter-sql % conda deactivate
(.conda) tree-sitter-sql % conda env list
# conda environments:
#
base                     /Users/user/Applications/miniconda3
                         /Users/user/Code/data-rc/backend/.conda
                         /Users/user/Code/data-rc/tree-sitter-sql/.conda
                         /Users/user/Code/mo-sql-parsing/.conda

Feels like some PROMPT modifications is done by the plugin that interferes with the one made by Conda.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 30, 2024
@anthonykim1
Copy link

anthonykim1 commented Apr 1, 2024

Very similar root cause to #23150 in regards to PS1.
This should be stabilized/fixed once #23159 is completed.
Will keep track in issue #23159

Meanwhile, please try to enable shell integration, reload the Python extension to and vs code in general to see if you see any changes to your prompt display.

Also dup of #23137

@anthonykim1 anthonykim1 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants