necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 49 forks source link

Eshell Python does not track environment #151

Open drdrjacobs opened 9 months ago

drdrjacobs commented 9 months ago

I have two environments that have different Python versions. However, when I switch between them, running "python" in Eshell does not track the version change.

Steps to reproduce:

  1. Open Emacs and activate one environment, for example env1.
  2. Open Eshell and run python. This gives me the expected Python version associated with env1.
  3. Exit the Python REPL and switch environments to env2, which should have a different Python version.
  4. Running python in Eshell, now still gives me the Python version associated with env1.

Restarting Eshell seems to resolve the problem.

I am on Emacs 29.1. I am also running Ubuntu 22.04 on Windows 11 WSL.

baruch11 commented 9 months ago

Hello, FYI, I have the same problem on emacs 29 (emacs-plus@29 on Macos ventura 13) I reinstalled emacs-plus@28 and the problem disappeared

necaris commented 8 months ago

Thank you @baruch11 for confirming this seems to be an Emacs version issue! I primarily use Emacs 28.x so this has been hard to reproduce. I'll try with Emacs 29, although I'm not likely to get to it soon.