leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
arohner 2020-01-10T15:32:58.003800Z

Hi, I’m seeing

{:type clojure.lang.Compiler$CompilerException,
    :message
    "Syntax error compiling at (/tmp/form-init6016442836112069381.clj:1:73).",
    :data
    {:clojure.error/phase :compile-syntax-check,
     :clojure.error/line 1,
     :clojure.error/column 73,
     :clojure.error/source "/tmp/form-init6016442836112069381.clj"},
    :at [clojure.lang.Compiler load "Compiler.java" 7648]}
   {:type clojure.lang.ExceptionInfo,
    :message "command lein returned non-zero: 137",
    :data {:exit 137},
    :at [griffin.util.sh$sh_stream_BANG_ invokeStatic "sh.clj" 67]}]

vemv 2020-01-12T22:24:02.007900Z

:jvm-opts ["-Dclojure.main.report=stderr"] may help. Normally I set that in CI

arohner 2020-01-10T15:33:45.004700Z

in CI, but not locally. Is there a way to get lein to print that temp file, or otherwise get a better error message?

arohner 2020-01-10T15:34:11.005200Z

and the error is non-deterministic. Rebuilding will often fix it

2020-01-10T16:31:23.005900Z

@arohner not sure about actually getting ahold of the tmp file (without perhaps modifying lein source - or an option I’ve never seen) but you can set DEBUG=true env variable before running lein

2020-01-10T16:31:45.006500Z

and it could give you more info on the steps plugins/lein are doing which can sometimes give a bit more context at least

2020-01-10T16:32:32.006800Z

the 137 return code is “out of memory” I believe if that helps

2020-01-10T16:34:03.007300Z

at least it often means that it seems - not sure all the details of how that code ret standard works