I don't think I did anything special. All I did was install clojure, clojure-contrib, slime, and swank-clojure using the M-x clojure-install command from clojure-mode. I'm pretty sure it doesn't make a difference, but I'm also running on a snapshot of Emacs.
Aside from that I just added the below to my .emacs file and I was up and running. The error that occurs when starting up the REPL is that it cannot find swank.swank, which means that swank clojure is not on the classpath. Adding it to the swank-clojure-extra-classpaths will cause it to pass that in the -cp parameter for java, which should allow the REPL startup script to find swank.swank. The REPL startup is using 'add-classpath to try to add the swank.swank namespace to the classpath, but it is obviously not working, which is why I thought it might be a problem with add-classpath. Paul On Mon, May 18, 2009 at 2:40 PM, klang <karstenl...@gmail.com> wrote: > > Using my existing definitions > > (setq clojure-src-root "~/lisp/clj") > > (setq swank-clojure-extra-classpaths > (cons (concat clojure-src-root "/swank-clojure") > (when (file-directory-p "~/.clojure") > (directory-files "~/.clojure" t ".jar$")))) > > This does not work, with "origin/master", rolling back to "origin/1.0" > works though. (with or without setting swank-clojure-extra-classpaths) > > Paul, you must have done something else to swank-clojure to make thing > work on origin/master? > > /klang > > On May 18, 7:14 pm, Paul Stadig <p...@stadig.name> wrote: > > I just happened to be setting up emacs an a new Ubuntu install today. I > > think it might have something to do with 'add-classpath. The > > swank-clojure-init function is trying to add the swank-clojure directory > to > > the classpath, but the 'require still fails when starting up the clojure > > REPL. > > > > I added the following to my .emacs to get it to work: > > > > (setq swank-clojure-extra-classpaths > > (cons "~/src/swank-clojure" > > (when (file-directory-p "~/.clojure") > > (directory-files "~/.clojure" t ".jar$")))) > > > > Paul > > > > On Mon, May 18, 2009 at 1:02 PM, Phil Hagelberg <p...@hagelb.org> wrote: > > > > > klang <karstenl...@gmail.com> writes: > > > > > > First things first: > > > > > > swank doesn't load and slime can't connect to the *inferior-lisp* > > > > running clojure > > > > > > I am missing something obvious, please advice. > > > > > It's not your fault; it looks like the latest Clojure 1.1 snapshot is > > > not compatible with swank-clojure. I haven't been following it closely, > > > but somewhere between 1.0 and the present it's broken. It looks like > > > swank-clojure will need to be updated to work with the latest. > > > > > In the meantime, cd to your checkout of clojure and perform: > > > > > $ git checkout origin/1.0 > > > $ ant > > > > > Then launch a new Emacs instance and M-x slime should work. This did > the > > > trick for me at least. I'll update clojure-mode to work with 1.0 by > > > default so you don't need to do anything by hand. > > > > > -Phil > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---