Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:19:12+00:00 2026-05-28T17:19:12+00:00

When trying to M-x slime-connect to a swank server running in a clojure app

  • 0

When trying to M-x slime-connect to a swank server running in a clojure app I get a user> prompt but as soon as I start typing the connection breaks as the app throws:

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

further down the stack I see:

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

When I start slime I get:

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

But this mismatch should be OK.

I have swank-clojure 1.3.3 in my project’s dependencies and I have installed the leiningen plugin as well. I start swank-server with (swank.swank/start-server :host "localhost" :port 4005) from inside the app.

My environment:

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

I should also mention that M-x clojure-jack-in works fine but I need to be able to connect
remotely.

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:19:13+00:00Added an answer on May 28, 2026 at 5:19 pm

    You should upgrade to swank-clojure 1.4.0 and use the version of slime that is bundled with it. There’s a ‘clojure-jack-in’ command in clojure-mode that will handle the loading of slime when you ‘jack-in’ from a clojure project to swank. All the errors you’re seeing will be gone. slime-disconnect[-all] is the correct way to exit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a clojure noob trying to get emacs & slime set up. There doesn't
I'm trying to use slime from CVS (2009-01-05) but keep getting this error: LOAD:
I'm trying to embed a swank-clojure repl into my application for the purpose of
I'm trying to get Slime working with CDT and emacs 24, to no avail,
I'm a starter with Emacs (but quite experienced Vim user) and trying to play
So I'm trying to get some basic jQuery code with Rails working, but it
I'm trying to get the jQuery slider to have set values to slide to
Trying to setup an SSH server on Windows Server 2003. What are some good
Trying to get my css / C# functions to look like this: body {
Trying to find some simple SQL Server PIVOT examples. Most of the examples that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.