Hi all,

to get started with Clojure I've bought the PDF version of "Programming
Clojure".  But I don't get how I have to setup swank-clojure in order to
make the examples work.

I tried both

--8<---------------cut here---------------start------------->8---
(swank-clojure-config
 (add-to-list 'swank-clojure-extra-classpaths
              "/home/horn/repos/programming-clojure/"))
--8<---------------cut here---------------end--------------->8---

and

--8<---------------cut here---------------start------------->8---
(swank-clojure-config
 (add-to-list 'swank-clojure-extra-classpaths
              "/home/horn/repos/programming-clojure/examples/"))
--8<---------------cut here---------------end--------------->8---

in my .emacs where the examples lay as *.clj files in

      /home/horn/repos/programming-clojure/examples/

Now when I do

  user> (require 'examples.introduction)

I get this exception:

,----
| java.io.FileNotFoundException: Could not locate \
|      examples/introduction__init.class or \
|      examples/introduction.clj on classpath:  (NO_SOURCE_FILE:0)
|   [Thrown class clojure.lang.Compiler$CompilerException]
`----

When I use the repl.sh script that comes with the examples and start it
from /home/horn/repos/programming-clojure/ it works (. is in the -cp
argument), but I guess that's exactly what those extra classpaths of
clojure-swank are meant for.

Is this a bug in swank-clojure?  (And if so, is that the right place to
ask for help with clojure tool support anyway?)

Bye and thanks for any pointers,
Tassilo

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to