clay icon indicating copy to clipboard operation
clay copied to clipboard

AOT compilation issue with Leiningen

Open egri-nagy opened this issue 1 year ago • 6 comments

I am using [org.scicloj/clay "2-alpha38"] for generating tables of Vega-Lite graphs. It works from the repl, but when I am trying to produce an uberjar with lein uberjar, the whole process hangs. I figured that this is related to the AOT compilation needed for the executable jar. I could not find a way to skip AOT compiling the namespace requiring clay.

Is there a way to avoid this problem?

egri-nagy avatar Oct 05 '23 09:10 egri-nagy

I converted the project to deps.edn, and I can produce an executable jar.

egri-nagy avatar Oct 10 '23 05:10 egri-nagy

Hi @egri-nagy, sorry for my slow reply; thanks for letting me know!

daslu avatar Oct 15 '23 21:10 daslu

Clay is going through major simplification and refactoring, removing some dependencies. Issues like this one are worth looking into soon after the refactoring. It is good to know that you can find a workaround for now.

daslu avatar Oct 15 '23 21:10 daslu

No worries, I will test this again whenever there is a new release. Thank you very much!

egri-nagy avatar Oct 16 '23 03:10 egri-nagy

Just a quick remark, the issue is still there with alpha42.

egri-nagy avatar Dec 01 '23 05:12 egri-nagy

Many thanks, @egri-nagy, it helps to know.

daslu avatar Dec 03 '23 17:12 daslu