vim-fireplace debug workflow: modifying jars

2014-03-27 Thread Brian Craft
Describing my debug workflow woes at clojure/west, it was suggested to me that I could jump into the jar file for a library and add print statements to elucidate its inner workings. I guess this is supported in emacs? Jump into the library source jar, edit, reload into the repl? How does this

Re: vim-fireplace debug workflow: modifying jars

2014-03-27 Thread Michael Blume
Don't worry about the jar, especially. You can have your own git checkout of the upstream project you're working with, and that'll work just fine. Open a source file you need to work with, connect with nrepl, edit a function, and eval -- that should be enough. On Thursday, March 27, 2014

Re: vim-fireplace debug workflow: modifying jars

2014-03-27 Thread Moritz Ulrich
Checking out a project your project depend on, finding the right version, etc. is quite cumbersome. With Emacs/nrepl, you can just press M-. over any function to jump to the definition, even when it's inside a jar. You can also edit and reload it (via C-c C-c). I don't think you can save it, but

Re: vim-fireplace debug workflow: modifying jars

2014-03-27 Thread Brian Craft
This seems like the right approach, but something is odd about the namespacing. Details: 0) using vim-fireplace 1) I jump into honeysql-0.4.2.jar::honeysql/format.clj 2) edit the format fn to always return foo, and eval the new fn definition 3) Eval (format {:select [5]}) in the format.clj