Fork me on GitHub
#leiningen
<
2020-02-12
>
uosl16:02:32

I have a weird problem with lein pdo trampoline less auto, with-profile +repl run throwing the following:

Error encountered performing task 'run' with profile(s): 'base,system,user,provided,dev,repl'
java.lang.IllegalStateException: Attempting to call unbound fn: #'leiningen.core.eval/eval-in-project 
This only occurs on one specific Linux computer. Tested with a fresh install of latest lein. It seems to only occur when pdo and trampoline are used together. Anyone experienced this before?

noisesmith19:02:19

pdo and trampoline seem incompatible to me? pdo starts N threads with lein tasks, trampoline replaces the lein task with your target task

👍 4
noisesmith19:02:34

% lein help trampoline
Run a task without nesting the project's JVM inside Leiningen's.

Calculates the Clojure code to run in the project's process for the
given task and allows Leiningen's own JVM process to exit before
running it rather than launching a subprocess of Leiningen's JVM.

Use this to save memory or to work around stdin issues.

Note that this can be unpredictable on account of collapsing all
eval-in-project calls into one run. For example, tasks chained
together under different profiles end up all running together.

noisesmith19:02:55

I'm not sure how allowing lein to exit so your task can run, and leaving another task running in parallel would work out...