I only got it to half work. Using elpa, have done the same as others. Using mvn w/clojure plugin to do "mvn clojure:swank"; changed to use swank 1.2.1.
C-c C-k works fine... C-c C-c bombs with Java.lang.exception (No such namespace) like so: Backtrace: 0: swank.commands.basic $eval__1235$compile_string_for_emacs__1237$fn__1239.invoke(basic.clj: 170) 1: swank.commands.basic $eval__1235$compile_string_for_emacs__1237.invoke(basic.clj:166) 2: clojure.lang.Var.invoke(Var.java:375) ...... SLIME is 20100404 (thats the version elpa is pushing now); Clojure mode is 1.7.1; swank-clojure is 1.2.1 If I throw a (in-ns) at the top of the file it goes away ex: (in-ns 'user) -- almost like clojure-mode can't figure out what NS its in. Some files I open don't have a (ns) or (in-ns) at the top. Under previous versions of clojure-mode/slime it defaulted to the current ns that the repl happened to be in when you did C-c C-c against areas of a file that that didn't set a ns (for example a clj script). Is there any way to get the previous behavior? On May 18, 3:38 pm, Robbie Vanbrabant <robbie.vanbrab...@gmail.com> wrote: > OK I got it to work, but it was painful. > > - I didn't see a swank-clojure 1.2.1 on GitHub (1.2.0 is listed as the > latest release) > - Decided to follow the Leinigen instructions > onhttp://github.com/technomancy/swank-clojure. It magically found a 1.2.1 > - Also copied the clojure and clojure-contrib jars into lib/ > - lein swank > - use slime-connect and say yes on this: versions differ: nil (slime) vs. > 20100404 (swank) continue? > - works > > For completeness, I started from an emacs-starter-kit installation and then > installed swank-clojure and SLIME using ELPA. Removing swank-clojure with > elpa does not get rid of the warning. Is there another way to get rid of it? > (I also don't get how my SLIME version can be nil). > > Thanks > Robbie > > On Tue, May 18, 2010 at 5:06 AM, Hugo Duncan < > > > > hugodun...@users.sourceforge.net> wrote: > > On Mon, 17 May 2010 10:38:43 -0400, grav <mikk...@gmail.com> wrote: > > > clojure-mode 1.7.1 > >> slime 20100404 > >> slime-repl 20100404 > >> swank-clojure 1.1.0 > > > You'll need swank-clojure 1.2.1 to work with that version of slime. > > > -- > > Hugo Duncan > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en