Bill, thank you for your suggestion. I was already using the latest versions but I found out that the problem was that the path to clojure was wrong: it should have been / usr/local/src/clojure/trunk/target/clojure-lang-1.0-SNAPSHOT.jar : I forgot the "trunk".
The error message was misleading, though, or it was me not reading it properly? G. On Nov 15, 11:00 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: > Hi Giacecco, > > > > On Sat, Nov 15, 2008 at 2:27 PM, Giacecco <[EMAIL PROTECTED]> wrote: > > > I am using Aquamacs on MacOS 10.5.5, set up slime, swank and clojure- > > mode as described in the instructions, but when I start slime I get > > this error message: > > > === > > (add-classpath "file:////usr/local/src/clojure-swank/") > > > (require (quote swank)) > > > (swank/ignore-protocol-version "2008-11-02") > > > (swank/start-server "/var/folders/N8/N8qeBmGnFqqEQCAHzR9XOk+++TI/-Tmp-/ > > slime.5290" :encoding "iso-latin-1-unix") > > > Clojure > > user=> nil > > user=> java.io.FileNotFoundException: Could not locate Clojure > > resource on classpath: swank/swank.clj (NO_SOURCE_FILE:0) > > user=> java.lang.Exception: No such namespace: swank (NO_SOURCE_FILE: > > 5) > > user=> java.lang.Exception: No such namespace: swank (NO_SOURCE_FILE: > > 7) > > user=> > > === > > > Which is strange considering that my swank is not in a folder called > > "swank" but in /usr/local/src/clojure-swank . Is this me or a bug? > > > My .emacs is: > > > === > > (add-to-list 'load-path "/usr/local/src/clojure-mode") > > (require 'clojure-auto) > > > ;; Slime > > (add-to-list 'load-path "/usr/local/src/slime-2008-11-14") > > (require 'slime) > > (slime-setup) > > > (add-to-list 'load-path "/usr/local/src/clojure-swank") > > (setq swank-clojure-jar-path "/usr/local/src/clojure/target/clojure- > > lang-1.0-SNAPSHOT.jar") > > (setq swank-clojure-extra-classpaths (list "/usr/local/src/clojure- > > contrib/clojure-contrib.jar")) > > (require 'swank-clojure-autoload) > > === > > Looks like you're using the current version of clojure-swank (which > is designed to work with the latest Clojure version) with an older > version of Clojure. You always want to make certain that you're using > compatible versions of both Clojure and clojure-swank. Since the > latest Clojure has some path/namespace differences from earlier > versions, older clojure-swank installs won't work with it (and vice > versa). Try blowing away clojure, clojure-contrib, and clojure-swank > and grabbing the latest git/svn versions of each and re-building > everything. After building, you'll also need to update your > swank-clojure-jar-path and swank-clojure-extra-classpaths in your > .emacs file. Alternatively, if you want to stick with the older > Clojure and clojure-contrib, grab an older version of clojure-swank > from the git repository. > > -- > Bill Clementson --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---