Exception when connecting to swank server

When I try to merge the Mx slime server with the swank server running in the clojure application, I get the user prompt>, but as soon as I start entering connection breaks, as the application throws:

exception in read loop java.lang.RuntimeException: Invalid token: swank:: 

further down the glass that I see:

 unreadable message: (:emacs-rex (swank:autodoc (quote ("ns" "" swank::%cursor-marker%)) :print-right-margin 80) "user" :repl-thread 4) 

When I run the mucus, I get:

 Versions differ: 2010-07-21 (slime) vs. 20100404 (swank). Continue? (y or n) 

But this discrepancy should be in order .

I have swank-clojure 1.3.3 in my project dependencies and I also installed the leiningen plugin. I start a swank server with (swank.swank/start-server :host "localhost" :port 4005) from within the application.

My environment:

  • GNU Emacs 23.2.1 on debian squeeze (stable) amd64
  • mucus installed through debian repositories
  • sun-java6-jre
  • leiningen 1.6.2
  • swank-clojure 1.3.3
  • clojure 1.3.0

I should also note that Mx clojure-jack-in works fine, but I need to be able to connect remotely.

Could version mismatch be the culprit? Anyone using a similar working setting?

+4
source share
2 answers

You should upgrade to swank-clojure 1.4.0 and use the slime version that comes with it. There is the clojure -jack-in 'command in the clojure-mode, which will handle the loading of slime when you "connect" from the clojure project to swank. All errors that you see will disappear. slime-disconnect [-all] is the correct way out.

+2
source

I uninstalled the debian version of slime and installed slime-repl via ELPA. Everything works now, although the installation seems to fail with a compilation error: lime-repl.el:122:39:Error: No setf-method known for slime-connection-output-buffer

Another question: what is a β€œpolite” way out of mucus? If I use Mx slime-disconnect, this throws an exception in the remote swank server instance:

 java.lang.Exception: Error reading swank message 
0
source

Source: https://habr.com/ru/post/1388025/


All Articles