1

Problem: Eldoc constantly spews FileNotFoundErrors into the minibuffer when editing a remote python file if you have a local python shell open.

To Recreate:

  • > emacs -Q
  • M-x run-python
  • open a file on a remote server and move the point around
  • minibuffer then periodically gives:
Traceback (most recent call last):
  File "<stdin>", line  1, in <module>
  File "/home/path/anaconda3/lib/python3.9/codecs.py", line 905 in open
   file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory '/tmp/pyJduZe2'

That temp file is being created on the remote server but then the local shell it seems is trying to open it. I don't want to just disable eldoc mode since I am otherwise trying to get it working with eglot mode with a remote lsp server (although that only works sometimes). Unfortunately this error isn't causes an actual emacs error so I can't use a debug trace to find out where it's being thrown. Any help appreciated.

1 Answers1

0

I could reproduce your problem with Emacs 27.2. With Emacs 28.1, this doesn't happen. Maybe time to upgrade?

Michael Albinus
  • 6,647
  • 14
  • 20