Yay, this is the kind of insight I was hoping for! ^_^ On Monday, August 3, 2015 at 9:49:17 AM UTC-5, Mars0i wrote: > > Ah--if that's the problem, it sounds familiar. Try doing 'lein clean' > before 'lein compile' and see whether you get the same error. That's > assuming you have namespaces/classes listed after :aot in project.clj. (If > not, then I don't think that 'lein compile' is actually doing anything.) >
Excellent point, I completely forgot about that (something about spending fifty or so hours in the previous three days cranking out code). The only time compilation would actually happen, given my project configuration, would be in creating the überjar, because that is the only profile which has :aot turned on. So I should have not been surprised that my "lein compile" did nothing. > You probably know this, but: When using Java classes, whether defined by > gen-class or one of the other four ways to define classes (defrecord, > deftype, proxy, reify), Clojure is very persnickety about compilation > order. A class has to be compiled before you can compile something that > explicitly references it. (No cyclic dependencies between explicit > references to classes.) > I had not thought in precisely those terms before, but I am definitely used to struggling with cyclic dependencies and the Clojure compiler, so I am fairly confident that I did not have this issue. I think, though, that between what you just reminded me about when compilation (doesn't) happen, and what Alex is suggesting about running the compiler directly, I likely have a workaround. When I get in this state, I will try running the compiler directly on just the suspect Clojure file and see what it says. I now strongly suspect the problem is that somewhere in the bowels of Leiningen, this output is being discarded. Thanks, -James -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.