Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't initialize neither swank nor clojure-jack-in

I've a problem. I've installed clojure, slime, slime-repl and elein using marmalade. Now I open my project and call elein-swank. I get this:

Starting swank..
error in process filter: slime-presentation-init-keymaps: Symbol's function definition is void: slime-define-both-key-bindings
error in process filter: Symbol's function definition is void: slime-define-both-key-bindings

and If I try clojure-jack-in I get

Debugger entered--Lisp error: (error "Could not start swank server: That's not a task. Use \"lein help\" to list all tasks.
signal(error ("Could not start swank server: That's not a task. Use \"lein help\" to list all tasks.\n"))
error("Could not start swank server: %s" "That's not a task. Use \"lein help\" to list all tasks.\n")
  clojure-jack-in-sentinel(#<process swank> "exited abnormally with code 1\n")

What can I do?

like image 909
user1050817 Avatar asked Nov 25 '11 03:11

user1050817


2 Answers

I'm not sure what elein is, but I think for clojure-jack-in you need to install the swank-clojure plugin:

lein plugin install swank-clojure 1.3.3
like image 149
harto Avatar answered Sep 20 '22 05:09

harto


update: as of 2013, M-x nrepl-jack-in is preferred


The jack-in method is the preferred one, but you may also try the old favorite: run

$ lein swank

from the project's main dir, and then:

M-X slime-connect

from emacs. You still need swank-clojure:

$ lein plugin install swank-clojure 1.3.3
like image 37
ivant Avatar answered Sep 21 '22 05:09

ivant