Fork me on GitHub
#leiningen
<
2020-01-10
>
arohner15:01:58

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

vemv22:01:02

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

arohner15:01:45

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

arohner15:01:11

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

mikerod16:01:23

@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

mikerod16:01:45

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

mikerod16:01:32

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

mikerod16:01:03

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