I am attempting to use clojure-maven-plugin 1.0 and discovered that I
can crash the compile by inserting a newline in the ns declaration
between "ns" and the symbol naming the namespace:

    (ns
    somenamespace)

This produces the following stack trace:

    Compiling  to /home/smithma/w/minimal/target/classes
    Exception in thread "main" java.io.FileNotFoundException: Could
not locate __init.class or .clj on classpath:
        at clojure.lang.RT.load(RT.java:402)
        at clojure.lang.RT.load(RT.java:371)
        at clojure.core$load__6347$fn__6356.invoke(core.clj:4072)
        at clojure.core$load__6347.doInvoke(core.clj:4071)
        at clojure.lang.RestFn.invoke(RestFn.java:413)
        at clojure.core$load_one__6277.invoke(core.clj:3908)
        at clojure.core$compile__6362$fn__6364.invoke(core.clj:4082)
        at clojure.core$compile__6362.invoke(core.clj:4081)
        at clojure.lang.Var.invoke(Var.java:359)
        at clojure.lang.Compile.main(Compile.java:56)

Remove the line break so that somenamespace.clj consists of just

    (ns somenamespace)

and the exception does not occur.

This build of clojure-lang is being used by clojure-maven-plugin:

    clojure-lang-1.1.0-alpha-20091013.093205-73.jar
    sha1 = d02209bf56d1b2fb0849926bf62ad38a89000dae

A minimal recipe to reproduce this (using clojure-maven-plugin 1.0) is
available at:

    http://github.com/bpsm/clojure-ns-crash-compile-issue

// Ben

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