Tassilo Horn <tass...@member.fsf.org> writes:

Hi again,

>> I'll try to get to that pretty soon so that you'll have something to
>> use. I don't know why one you built should fail, but I haven't tried
>> it myself. At first look, maybe it's the new numeric stuff or maybe
>> it still has a bad dependency chain in it's project.clj.
>
> The autodoc-0.8.0-SNAPSHOT.jar I get when I do "lein jar" in the git
> checkout of the autodoc project contains a lot of class files for
> external classes but also for clojure-contrib stuff.  Maybe the
> problem is that those are compiled using 1.2 but then run in my
> project with 1.3?

I added a (println *clojure-version*) to
autodoc/src/leiningen/autodoc.clj, and now I'm sure that "lein autodoc"
runs clojure {:major 1, :minor 2, :incremental 0, :qualifier } when I
get

  java.lang.NoSuchMethodError: clojure.lang.Numbers.lt(II)Z

in my clojure 1.3 based project.  Autodocing autodoc itself works fine,
though.

Then I tried to delete lib/clojure-1.3.0-master-SNAPSHOT.jar in my
project before running "lein autodoc", because I suspected some "2
clojure jars are in classpath" problem.  But then I get

--8<---------------cut here---------------start------------->8---
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/ccil/cowan/tagsoup/Parser (NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5440)
--8<---------------cut here---------------end--------------->8---

Ah, I found out that this is in tagsoup-1.2.jar which I then copied over
from autodoc/lib/ to my project's lib/dev/.

But still it does not work.  It creates the html files and their static
parts like headlines, but actually no function or var is contained in
the docs...

The errors are:

--8<---------------cut here---------------start------------->8---
/home/horn/uni/repos/funtg/src/de/uni_koblenz/funtg/core.clj: failed (ex = 
java.lang.NoSuchMethodError: 
clojure.lang.Compiler.pushNSandLoader(Ljava/lang/ClassLoader;)V (core.clj:1))
/home/horn/uni/repos/funtg/src/de/uni_koblenz/funtg/exceptions.clj: done.
/home/horn/uni/repos/funtg/src/de/uni_koblenz/funtg/funql.clj: failed (ex = 
java.lang.NoClassDefFoundError: Could not initialize class 
de.uni-koblenz.funtg.exceptions.FunTGException (core.clj:1))
/home/horn/uni/repos/funtg/src/de/uni_koblenz/funtg/funtl.clj: failed (ex = 
java.lang.NoClassDefFoundError: Could not initialize class 
de.uni-koblenz.funtg.exceptions.FunTGException (core.clj:1))
--8<---------------cut here---------------end--------------->8---

FunTGException is a gen-class-ed exception class from
de/uni_koblenz/funtg/exceptions.clj which is AOT-compiled with clojure
1.3.

Bye,
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
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

Reply via email to