lem-project / lem

Common Lisp editor/IDE with high expansibility
http://lem-project.github.io/
MIT License
2.31k stars 165 forks source link

slime-connect failure #1197

Open rpx99 opened 8 months ago

rpx99 commented 8 months ago

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:

[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 [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Setup connection [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 [15:53:24] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Waiting for response [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: #") [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Read timeout [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Creating the REPL [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 [15:53:29] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Waiting for response [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: #") [15:53:34] lem-lisp-mode/swank-protocol swank-protocol.lisp (read-return-message) - Read timeout [15:53:34] lem-lisp-mode/swank-protocol swank-protocol.lisp (setup) - Reading rest messages [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.
cxxxr commented 8 months ago

You need to use micros, not swank.

cxxxr commented 8 months ago

Oh, you mean that you should give the appropriate error message. Thanks for the feedback.

garlic0x1 commented 2 months ago

This behavior has changed, it no longer errors but just hangs now, which is probably worse