On Oct 10, 2010, at 3:05 PM, HiHeelHottie wrote: > I'm running lein swank and using slime-connect from emacs. When I use > lein compile after making changes to a method, they don't appear to > get picked up unless I bring down lein swank, bring it up again, slime- > connect, etc. > > Is there a way to get lein compile changes to be picked up by an > already running lein swank? Also, would be interested to hear about > the workflow others are using with lein to develop a java class.
I believe you're seeing the effects of the Java behavior that (at least by default) a class loader will only load a given ".class" file once in the lifetime of a given JVM. Its contents are cached and the cache is used for all further reference to the classes defined in it. To be more dynamic than that you can arrange for your generated class to call out to Clojure functions to do some or all of its actual work. New versions of the Clojure functions you're working on can be loaded into a running lein swank as many times as you'd like from ".clj" files. --Steve -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en