elpy
elpy copied to clipboard
elpy-shell-get-or-create-process fails for remote files
Steps to reproduce
- open a tramp (remote) file
/foo:~/bar.py. - on the remote server, create a symlink:
ln -s /usr/bin/python3 ~/this-does-not-exist-locally - set
python-shell-interpreterto"~/this-does-not-exist-locally" - in the remote buffer,
C-c C-zfails becauseexecutable-finddoes not find"~/this-does-not-exist-locally" - if the call to
executable-findis removed, things just work.
My configuration
OS
local: mac remote: linux
Result of (elpy-config)
Emacs.............: 28.0.50
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: python3 3.9.5 (/usr/local/bin/python3)
RPC virtualenv....: rpc-venv (/Users/sdsg/.config/emacs/elpy/rpc-venv)
Python...........: python3 3.8.2 (/Users/sdsg/.config/emacs/elpy/rpc-venv/bin/python3)
Jedi.............: 0.18.0
Rope.............: 0.19.0
Autopep8.........: 1.5.6 (1.5.7 available)
Yapf.............: 0.31.0
Black............: 21.4b2 (21.5b1 available)
Syntax checker....: pylint (/Users/sdsg/.virtualenvs/myself/bin/pylint)
Elpy configuration in my init.el
(custom-set-variables
'(elpy-project-root-finder-functions
'(elpy-project-find-git-root
elpy-project-find-python-root
elpy-project-find-hg-root)))