slime over tramp just keeps polling
I'm trying to run slime over tramp. Here are the steps.
-
(require 'slime-tramp) - Set
slime-filename-translations
(push (list "^lisphost$"
(lambda (emacs-filename)
(subseq emacs-filename (length "/ssh:lisphost.example.com:")))
(lambda (lisp-filename)
(concat "/ssh:lisphost.example.com:" lisp-filename)))
slime-filename-translations)
- Open a file
/ssh:lisphost.example.com:test.lisp - Give the command
slime
The result is that it starts lisp on the remote in the buffer *inferior-lisp* but gives repeated messages
Polling "/tmp/slime.29227" .. 157 (Abort with ‘M-x slime-abort-connection’.)
I tried setting temporary-file-directory to /ssh:lisphost.example.com:/tmp/ but to no avail.
My slime version is 20181205.944
Were you able to find a solution for this?
I also have this same problem, even when using a tunnel over ssh as per the slime manual: https://slime.common-lisp.dev/doc/html/Setting-up-Emacs.html
Are you using the right ports?
I'm using the default 4005.
Actually, I can avoid the "polling" issue if I use slime-connect (as per the manual) instead of just slime (as per other sources)
I can open a remote file over tramp, and I can compile a function with C-c C-c, and the repl itself seems to work fine, but I'm not able to jump to a definition with M-. and I can't compile a file with C-c C-k - both times a new file matching the remote path but without the ssh suffix is created.
Should I open a separate issue?
Well, duh. Slime starts a local instance. You need slime-connect.
Right, but even when using slime-connect I'm not able to jump to a definition with M-. and I can't compile a file with C-c C-k.
Any ideas?
Can't help with slime-tramp.
alright ... thank you for replying anyway, and keep up the good work 👍