On Mar 4, 8:08 pm, Feng <hou...@gmail.com> wrote: > On Mar 4, 1:45 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote: > > > swank-clojure breaks in a number of small ways on Clojure 1.3 alphas, mostly > > because of moved/renamed functions. > > This seems not the case. I'm aware of print-doc and pprint caused > breaks. All fixed in my local swank clone. The same code works fine > for this commit. > > macair:clojure houf$ git log -1 > commit 174bd5001264f5c43276922505ba526aae471028 > Author: Stuart Halloway <s...@Stuart-Halloways-MacBook-Air.local> > Date: Fri Feb 25 16:24:21 2011 -0500 > > tests for #737 > > Go to the very next commit "lazy defn loading", it breaks. I couldn't > find any moved/renamed functions in that commit. Stacktrace and Var > value clearly show it has something to do with FnLoaderThunk. >
Ok. samples to isolate the issue. (ns swank.test) (let [] (defn foo [] :foo)) (let [v :bar] (defn bar [] v)) (def bob (let [] (fn [] :bob))) user=> (swank.test/foo) ClassNotFoundException swank/test$eval1856$foo__1857 java.lang.Class.forName0 (Class.java:-2) user=> (swank.test/bar) :bar user=> (swank.test/bob) :bob user=> It breaks when non-toplevel def(n) form binds to fn that does not capture any lexical vars? Regards, - Feng > It's ok master branch break things. I just want to report this early > so that it won't become too hard later to narrow down which commit > caused it. > > Regards, > - Feng > > > > > > > > > -Stuart Sierra > > clojure.com -- 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