LightTable / Clojure

Light Table Clojure language plugin
MIT License
99 stars 47 forks source link

Windows 7 Error: Unable to access jarfile #20

Open tpgit opened 10 years ago

tpgit commented 10 years ago

My user name on Windows 7 has a space char in it. When I attempt to evaluate a form I get the following error:

Error: Unable to access jarfile "C:\Users\<user>\AppData\Local\LightTable\plugins\Clojure\runner\target\lein-light-standalone.jar"

See [Error accessing lein-light-standalone.jar after updating Clojure plugin](Error accessing lein-light-standalone.jar after updating Clojure plugin) for details

On Windows 7, calls to proc/exec should not wrap the args in quotes. In this case remove call to windows-escape from https://github.com/LightTable/Clojure/blob/master/src/lt/plugins/clojure.cljs#L819.

See Windows 7 "can't open file py-src\ltmain.py" error for details on why wrapping args in proc/exec calls is a bad idea even on Windows.

julianchurchill commented 10 years ago

I have this problem when my path has a space in it with LightTable 6.7 - I've installed into "Program Files" directory. When I try installing to a path without spaces it works ok. Also see this discussion on Google groups - https://groups.google.com/forum/#!topic/light-table-discussion/s_76oSBXVew

x5lcfd commented 10 years ago

@julianchurchill is right, the full path cannot take any space.

cldwalker commented 9 years ago

I'm not on windows. Happy to take a verified pull from a windows user. If you're new to contributing, there's a contributing tutorial