Fix jump to source, close #3#27
Conversation
This fixes jump to source for jar files in clojure and clojurescript. This also fixes jumping to src-paths in clj e.g. lighttable/nrepl/eval.clj.
ec3920f to
12fcaad
Compare
|
@cldwalker added. |
|
Awesome work. |
|
Hi, Just tried this by requiring lein-light-nrepl 0.0.19 (which was just pushed and I believe has this fix - maybe I am wrong about that??). I'm running server remotely and connecting from LT. Now many commands give these sort of exceptions in the server. ;; Examples: toggle doc on form or jump to src on form give ;; Try jump to src: |
|
@jsa-aerial You have the correct version. It seems from this java issue, the issue comes from the java temp directory not existing. Could you check what the temp directory is with |
|
Hi Gabriel, I've never had an issue with temp files before, and from this: user=> (System/getProperty "java.io.tmpdir") we see it is just the usual /tmp system directory (this is on Ubuntu) and user=> (import java.io.File) But I still get the same error if trying doc or jumping to src (not On Tue, Oct 28, 2014 at 12:45 PM, Gabriel Horner notifications@github.com
|
|
@jsa-aerial The clojure plugin is also doing a File/createTempFile call. I'm guessing the reason it passes for the above and fails for the plugin is a difference in arguments, possibly one of them being nil or having spaces in the string. If you want to debug this, try the following:
I'm happy to fix if I can get those debugging values |
This fixes jump to source for jar files in clojure and clojurescript.
This also fixes jumping to src-paths in clj e.g. lighttable/nrepl/eval.clj.
I opted to unpack jarfiles to a consistent tempfile. I thought it would be helpful to cache created tempfiles to avoid unpacking each time and to allow dependencies to have temporary modifications
Following jumps should now work:
Note: cljs macros via :require-macros don't work because there's no metadata on them.
To QA this,
lein installin lein-light-nrepl/.@ibdknox Could you give me permissions to release lein-light-nrepl on clojars? I believe you'd need to add me, cldwalker, to the group page.