Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Thanks, Alex, I will give this a try the next time I run into this. Given a little distance from the problem, and the insights that you and Mars0i have been sharing, I have a clearer picture of what was going on at compile time. I suspect the problem is something along these lines: Leiningen in

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Alex Miller
You can just use the clojure.core/compile function to compile. There is a simple example at http://clojure.org/compilation. I have not seen or experienced a linkage error like this before and I'm not aware of any ticket like this. Generally a linkage error indicates you are seeing the wrong v

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
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/cl

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Mars0i
On Monday, August 3, 2015 at 9:47:10 AM UTC-5, James Elliott wrote: > > Wow, that is a challenge, Alex! I would have no idea how to even compile a > project without Leiningen. If I ever am not using 200% > I think you can do this with compile and

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Mars0i
On Monday, August 3, 2015 at 9:27:47 AM UTC-5, James Elliott wrote: > > Indeed, I visited the page you cite while trying to pin down this problem. > However, I am fairly certain that in my case it is a weird side effect, not > a root cause: I get that message when compiling my Clojure file if I t

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Wow, that is a challenge, Alex! I would have no idea how to even compile a project without Leiningen. If I ever am not using 200% of my free time working on these projects, I may try to research that. I am afraid it may be some time, though. I was just hoping this was a known issue with know sol

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Alex Miller
If you can create a small, reproducible test case (that does not require Leiningen), please file a ticket. On Monday, August 3, 2015 at 9:27:47 AM UTC-5, James Elliott wrote: > > Indeed, I visited the page you cite while trying to pin down this problem. > However, I am fairly certain that in my

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Indeed, I visited the page you cite while trying to pin down this problem. However, I am fairly certain that in my case it is a weird side effect, not a root cause: I get that message when compiling my Clojure file if I try to call a function which is defined later in the file. If I move the fun

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-02 Thread Mars0i
I don't have anything helpful to say, but: I've often gotten a useful stacktrace from compile-time errors using 'lein compile' with :gen-class. Not always. Sometimes I have to use the guess-and-comment-out method. So I think that whatever's happening is not just an issue with compilation of

Complete lack of helpful compilation errors with :gen-class

2015-08-02 Thread James Elliott
I don't know if this is an issue with the compiler in general, with Leiningen more specifically, or something I am doing wrong in trying to use them, but I have wasted many hours over the last couple weeks while working on afterglow-max