lighttable connect failure

155 views
Skip to first unread message

Marc Limotte

unread,
Apr 17, 2013, 4:19:57 PM4/17/13
to light-table...@googlegroups.com
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

Chris Granger

unread,
Apr 17, 2013, 4:28:46 PM4/17/13
to light-table...@googlegroups.com
The plugin runs code at require time?

LT doesn't do anything fancy here. When it runs a client it's just calling java -jar ~/.lighttable/clients/lein-light... with a couple of args for the port and such. The env should be the same as when LT was started. It could maybe have something to do with it still using one of the preview versions of lein2, but I find that somewhat unlikely.

Cheers,
Chris.


--
You received this message because you are subscribed to the Google Groups "Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages