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

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

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 try

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 https://clojuredocs.org/clojure.core/compile and then

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

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

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

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