ubaldot / vim-conda-activate

Activate Conda environments in Vim.
https://www.vim.org/scripts/script.php?script_id=6074
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

[Bug] Unexpected behavior with CondaActivate, not recognize conda binary inside built-in vim terminal #3

Closed hungpham3112 closed 1 year ago

hungpham3112 commented 1 year ago

Step to reproduce:

Additional information:

My thought:

Activating the command in vim-conda-activate so $PATH will be changed that leads to not recognize conda binary.

ubaldot commented 1 year ago

Hum, I cannot test it now on Windows, but I did in MacOSX and there is not that problem, but it could be that problem in Windows. And your thoughts make sense.

conda binary is typically in some .../condabin folder, typically in ~/Miniconda3/condabin or something like that. You can check on your system. Could you please verify if the output of echo $PATH from different places makes such a condabin folder to disappear?

hungpham3112 commented 1 year ago

I installed miniconda with scoop. conda still runs ok in different places, only appear like I described.

ubaldot commented 1 year ago

The issue should be fixed. Please check and let me know :)

hungpham3112 commented 1 year ago

Yes it works. I tested on cmd.exe and cmd.exe is problem. But still need to check if it working on others terminal or not( gnome-term, kde-term..).

ubaldot commented 1 year ago

@hungpham3112 Any news on this issue? :)

hungpham3112 commented 1 year ago

@hungpham3112 Any news on this issue? :)

Not yet, I'm still in the final exam of semester, I will update next week. Thanks.

hungpham3112 commented 1 year ago

I tested on Pop-OS (Ubuntu-based) 22.04 in allacritty terminal with conda 23.5.0 and didn't see any error. I think the problem solved. Thanks for your hard work. Feel free to reopen if anybody still see the error after PR.