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 <[email protected]> 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 <[email protected]> wrote:
>
> > klang <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---