Lighttable 3.9 fails to connect to my project. I get the exception below, which is complaining about not finding git, which comes from an internal lein2 plugin. Our plugin is attempting to execute 'git' to get the current commit. This works outside of the light table context (e.g. lein2 repl). The relevant part of the plugin code is:
(defn rev-parse-head
"Extract the current branch HEAD"
[]
(string/trim (:out (sh "git" "rev-parse" "--short" "HEAD"))))
git should be found on the PATH, in my case, /usr/local/bin/git.
Is there any context on what light table does at connection time that might impact the environment in this way?
Exception in thread "main" java.io.IOException: Cannot run program "git": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at clojure.java.shell$sh.doInvoke(shell.clj:116)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at tcc_base_project.plugin$rev_parse_head.invoke(plugin.clj:14)
at tcc_base_project.plugin$version.invoke(plugin.clj:18)
at tcc_base_project.plugin$middleware.invoke(plugin.clj:24)
at clojure.lang.Var.invoke(Var.java:415)
at leiningen.core.project$apply_middleware.invoke(project.clj:311)
at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:60)
at clojure.core.protocols$fn__5890.invoke(protocols.clj:94)
at clojure.core.protocols$fn__5854$G__5849__5863.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
at clojure.core.protocols$fn__5875.invoke(protocols.clj:54)
at clojure.core.protocols$fn__5828$G__5823__5841.invoke(protocols.clj:13)
at clojure.core$reduce.invoke(core.clj:6030)
at leiningen.core.project$apply_middleware.invoke(project.clj:308)
at leiningen.core.project$activate_middleware.invoke(project.clj:329)
at leiningen.core.project$init_project.invoke(project.clj:385)
at leiningen.light$_main.doInvoke(light.clj:54)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at leiningen.light.main(Unknown Source)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 23 more