Zef, Can you compile files? My environment works fine by setting all necessary clojure.jar, clojure-contrib.jar, swank-clojure.jar, ~/clj (my own project directory) in swank-clojure-classpath. However, I have difficulty to generate classes from the *.clj. E.g. I have a find.clj in ~/clj/src/futils/. By running (compile 'futils.find), I got the following error. I think the swank at least already finds the find.clj to compile because it shows the different error below if I try to compile a non-existing file (compile 'futils.fake).
Except compiling, I can call functions in futils.find from slime-repl without any issue. Could someone shed me some light on this? p.s. clojure.jar(1.1), clojure-contrib.jar(1.1), swank-clojure.jar (1.0). I pull all of them from github and compiled them. Emacs elpha: clojure-mode(1.6) swank-clojure(1.1.0) slime (2009-10-16) slime-repl(2009-10-16) Thanks, James The file I want to compile :(compile 'futils.find) ==================== No such file or directory [Thrown class java.io.IOException] Restarts: 0: [ABORT] Return to SLIME's top level. Backtrace: 0: java.io.UnixFileSystem.createFileExclusively(Native Method) 1: java.io.File.createNewFile(File.java:883) 2: clojure.lang.Compiler.writeClassFile(Compiler.java:5000) 3: clojure.core$gen_class__7189.doInvoke(genclass.clj:594) 4: clojure.lang.RestFn.invoke(RestFn.java:498) 5: clojure.lang.Var.invoke(Var.java:379) 6: clojure.lang.AFn.applyToHelper(AFn.java:197) 7: clojure.lang.Var.applyTo(Var.java:476) 8: clojure.lang.Compiler.macroexpand1(Compiler.java:4504) The file doesn't exist (compile 'futils.fake) ==================== Could not locate futils/fake__init.class or futils/fake.clj on classpath: [Thrown class java.io.FileNotFoundException] On Jan 8, 6:19 am, Zef Hemel <zefhe...@gmail.com> wrote: > Thanks, indeed, swank-clojurewas not on my classpath, I added it as a > dependency to my project.clj and now it works fine. > > On Jan 8, 2:25 pm, Shawn Hoover <shawn.hoo...@gmail.com> wrote: > > > On Fri, Jan 8, 2010 at 4:39 AM, Zef Hemel <zefhe...@gmail.com> wrote: > > > After I do the swankclojureproject command, enter the directory and > > > press return myEmacsgets stuck doing this:http://imgur.com/Ap8mo > > > When I just go to the Slime CLI that works fine. Any idea what could > > > be wrong there? > > > > Zef > > > Check your inferior-lisp buffer. There may be some errors in there > > indicatingclojure.main or swank.swank is missing. > > > swank-clojure-project won't work unless all dependencies live in appropriate > > places under the project directory. Here's how I hackedClojureBox startup > > to not wipe out the entire classpath and build it from > > scratch:http://bitbucket.org/shoover/clojure-box/src/8015172a1dc3/default.el#... > > > Shawn
-- 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