You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Emacs 25, calling python-start-or-switch-repl (SPC m ' in Python buffers) when there's no REPL doesn't start a new REPL. In Emacs 24.5 it does start a new REPL.
A short check revealed that python-start-or-switch-repl (defined in Python layer) calls python-shell-switch-to-shell (built-in Emacs function). In Emacs 24.5, if no REPL exists then python-shell-switch-to-shell start a new REPL, but in Emacs 25 it no longer does so.
Reproduction guide 🪲
Enable the python layer
Start Emacs 25 (note: 25, not 24.5 or 24.4)
Open or create a python file
press , ' (calls python-start-or-switch-repl)
Observed behaviour: 👀 💔
Emacs doesn't open a REPL, instead prints an error message:
python-shell-get-process-or-error: No inferior Python process running.
Expected behaviour: ❤️ 😄
Emacs opens a python REPL.
Description
In Emacs 25, calling
python-start-or-switch-repl
(SPC m '
in Python buffers) when there's no REPL doesn't start a new REPL. In Emacs 24.5 it does start a new REPL.A short check revealed that
python-start-or-switch-repl
(defined in Python layer) callspython-shell-switch-to-shell
(built-in Emacs function). In Emacs 24.5, if no REPL exists thenpython-shell-switch-to-shell
start a new REPL, but in Emacs 25 it no longer does so.Reproduction guide 🪲
, '
(callspython-start-or-switch-repl
)Observed behaviour: 👀 💔
Emacs doesn't open a REPL, instead prints an error message:
Expected behaviour: ❤️ 😄
Emacs opens a python REPL.
System Info 💻
The text was updated successfully, but these errors were encountered: