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 that isn't necessary to reload the function/namespace. Cider can re-evaluate a whole buffer or region in the buffer without the need to save it. On Thu, Mar 27, 2014 at 7:49 PM, Michael Blume <[email protected]> wrote: > 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 11:43:19 AM UTC-7, Brian Craft wrote: >> >> 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 work, >> exactly? Does it rewrite the zip file and load that to the repl, or just >> update the repl from the working buffer? >> >> I just tried this in vim-fireplace, but it threw an error on writing to >> the jar buffer. Alternatively, perhaps I should eval it w/o trying to save >> the jar. That works so long as I then only evaluate expressions from the >> same namespace. In other namespaces, the edits are not apparent. It's like >> there are two versions of the namespace active in the repl. Not sure what's >> going on, or how to make other namespaces aware of the changes. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
