lem
lem copied to clipboard
slime-connect failure
When a ssh connection is established to a server running sbcl with a swank created remotely a slime-connect fails as it needs the micros fork of slime and therefore a micros server running.
LEM tries to connect but fails with a timeout:
<DEBUG> [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (new-connection) - Connecting to SWANK LEM-LISP-MODE/SWANK-PROTOCOL::HOSTNAME: "127.0.0.1" LEM-LISP-MODE/SWANK-PROTOCOL::PORT: 4005 <DEBUG> [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Setup connection <DEBUG> [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (remote-eval-from-string) - Sending string to Swank LEM-LISP-MODE/SWANK-PROTOCOL::MSG: "(:emacs-rex (micros:connection-info) "COMMON-LISP-USER" T 1)" LEM-LISP-MODE/SWANK-PROTOCOL::CONTINUATION: NIL LEM-LISP-MODE/SWANK-PROTOCOL::THREAD: NIL PACKAGE: NIL <DEBUG> [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Waiting for response <DEBUG> [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Received LEM-LISP-MODE/SWANK-PROTOCOL::INFO: (:READER-ERROR "(:emacs-rex (micros:connection-info) "COMMON-LISP-USER" T 1)" "Package MICROS does not exist.
Stream: #<dynamic-extent STRING-INPUT-STREAM (unavailable) from "(:emacs-...">")
<DEBUG> [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Read timeout <DEBUG> [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Creating the REPL <DEBUG> [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (remote-eval-from-string) - Sending string to Swank LEM-LISP-MODE/SWANK-PROTOCOL::MSG: "(:emacs-rex (micros/repl:create-repl nil :coding-system "utf-8-unix") NIL T 2)" LEM-LISP-MODE/SWANK-PROTOCOL::CONTINUATION: NIL LEM-LISP-MODE/SWANK-PROTOCOL::THREAD: NIL PACKAGE: NIL <DEBUG> [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Waiting for response <DEBUG> [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Received LEM-LISP-MODE/SWANK-PROTOCOL::INFO: (:READER-ERROR "(:emacs-rex (micros/repl:create-repl nil :coding-system "utf-8-unix") NIL T 2)" "Package MICROS/REPL does not exist.
Stream: #<dynamic-extent STRING-INPUT-STREAM (unavailable) from "(:emacs-...">")
<DEBUG> [15:53:34] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Read timeout <DEBUG> [15:53:34] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Reading rest messages <DEBUG> [15:53:34] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Setup is done now
The repl shows:
NIL>
The user does not know what is going on.
You need to use micros, not swank.
Oh, you mean that you should give the appropriate error message. Thanks for the feedback.
This behavior has changed, it no longer errors but just hangs now, which is probably worse