warp icon indicating copy to clipboard operation
warp copied to clipboard

Still problems showing conda environment

Open richardjorne opened this issue 2 years ago • 13 comments

Dupe Check

Describe the bug

image after running conda activate llm, the (base) should change to (llm), but the new prompt is still (base).

To reproduce

Run conda activate [env name]

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

macOS Sonoma 14.5

Shell Version

No response

Current Warp version

No response

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

richardjorne avatar Jul 18 '24 08:07 richardjorne

Hey @richardjorne - what are you using for your prompt? Also, after you run conda activate llm, what's the output from running conda info?

vorporeal avatar Jul 18 '24 15:07 vorporeal

Same problem with you. Ever since I upgraded warp to the new version, this issue has been occurring.

KoapT avatar Jul 22 '24 07:07 KoapT

Hey @KoapT - what shell are you using? Also, can you run conda info after activating your conda environment and post the output here?

vorporeal avatar Jul 22 '24 16:07 vorporeal

same problem here: macOS , zsh after activating a new env, the prompt is still (base) btw: this issue should have been fixed long time ago since python is a relatively popular language ... that's odd

emmettng avatar Jul 23 '24 11:07 emmettng

Same here. My native terminal loads the ohmyzsh theme without issues and displays the conda environment correctly:

Captura de pantalla de 2024-07-24 11 55 50

Warp loads the theme but does not display the loaded conda environment:

Captura de pantalla de 2024-07-24 11 55 07

Here's the conda info output:


     active environment : asteca
    active env location : /home/gabriel/miniconda3/envs/asteca
            shell level : 1
       user config file : /home/gabriel/.condarc
 populated config files :
          conda version : 23.5.2
    conda-build version : not installed
         python version : 3.11.4.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.35=0
                          __linux=6.5.0=0
                          __unix=0=0
       base environment : /home/gabriel/miniconda3  (writable)
      conda av data dir : /home/gabriel/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/gabriel/miniconda3/pkgs
                          /home/gabriel/.conda/pkgs
       envs directories : /home/gabriel/miniconda3/envs
                          /home/gabriel/.conda/envs
               platform : linux-64
             user-agent : conda/23.5.2 requests/2.29.0 CPython/3.11.4 Linux/6.5.0-44-generic elementary/7.1 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Gabriel-p avatar Jul 24 '24 14:07 Gabriel-p

Hey @KoapT - what shell are you using? Also, can you run conda info after activating your conda environment and post the output here?

Just the same like https://github.com/warpdotdev/Warp/issues/5151#issue-2422077668

KoapT avatar Jul 25 '24 08:07 KoapT

I was able to reproduce this issue. I've noticed this only happens with a custom prompt, so I recommend the Warp prompt as a stopgap.

I'll let the team know and we'll post updates on this thread.

dannyneira avatar Jul 26 '24 22:07 dannyneira

Hey @richardjorne @KoapT @emmettng @Gabriel-p!

I believe a related fix for Python's default venv setup may help resolve this issue as well (https://github.com/warpdotdev/Warp/issues/5122#issuecomment-2264437815). Could you please update to v0.2024.07.30.08.02.stable_01, and see if you're still running into any issues? Thanks for reporting!

advait-m avatar Aug 02 '24 03:08 advait-m

I'm getting the exact same issue with v0.2024.08.06.08.01.stable_00

javiribera avatar Aug 11 '24 01:08 javiribera

I'm getting the exact same issue with v0.2024.08.06.08.01.stable_00

Gotcha - hmm yeah, conda still seems to be broken, though I expect it'll be a similar fix to Python's default virtualenv setup. I'll dig deeper into this later and update this thread.

Thanks for checking!

advait-m avatar Aug 11 '24 02:08 advait-m

I'm getting the exact same issue with v0.2024.08.06.08.01.stable_00

Same here

Gabriel-p avatar Aug 11 '24 12:08 Gabriel-p

I had the same issue with Warp not displaying my active conda env. In my case, ~~I'm using~~ I was using .oh-my-zsh with a custom theme. Rather than hope Warp gets to where I can continue to use my existing config, I chose to restore Warp to its default, and I must say that I am blown away with what you guys and gals set up as your default Warp prompt, and have no need to continue using my old configuration. For me, I'm gonna ride the Warp defaults train and watch with amazement. Change is good (and necessary) for survival.

rlovell3 avatar Sep 04 '24 18:09 rlovell3

这是来自QQ邮箱的自动回复邮件。您好,我已收到您的邮件,会在阅读之后尽快给您回复。

KoapT avatar Sep 04 '24 18:09 KoapT