I've looked into it a little and this is probably a solvable problem. Since my native code patch needs fork as well I will try an idea I have later today.
/mac On Dec 17, 7:02 pm, Steve Purcell <st...@sanityinc.com> wrote: > I came across this problem too, and David's patch helps, to a certain extent. > > Additionally, without David's patch, the "src" and "test" directories of the > current project don't get added to the classpath one sees from inside swank. > (All the jars upon which leiningen depends *are* in the classpath, which is > probably also less than ideal.) > > However, by forking the JVM, the console output is reformatted unpleasantly > by Ant, and any JAVA_OPTs etc. passed to lein's "master" JVM are not passed > through. The former is a nuisance, but the latter stops you from running > Swank with an increased max memory allowance, for example. > > Given my immediate goal of processing a moderate pile of data within a swank > REPL session and charting it with Incanter, I have had to revert to > swank-clojure-project, when it would have been considerably cleaner to use > "lein swank". > > I'm trying to get my head around what can be done here, and will report back > if I have any insights. It's been so nice to let leiningen take care of the > classpath for me, having abandoned Java years ago for less encumbered > languages. ("Ah, my old nemesis CLASSPATH, finally we meet again!") > > -Steve > > On 9 Dec 2009, at 19:13, David Nolen wrote: > > > > > I found a solution to this problem and patched my own fork of Leiningen: > > >http://github.com/swannodette/leiningen/commit/9d79d631a9faa870a93479... > > > The important thing to do if you want this to work is to closely follow the > > instructions for hacking on Leiningen that's currently available on GitHub. > > Then you need a custom-build of lein-swank. This is easy enough to do, move > > into lein-swank in your Leiningen checkout and run: > > > lein uberjar > > > You might see some errors but none are deal breakers. Copy the new > > lein-swank-standalone.jar and replace the one in that is in your lib folder > > in your leiningen checkout. > > > David > > > On Tue, Dec 8, 2009 at 11:35 AM, David Nolen <dnolen.li...@gmail.com> wrote: > > Just want to make sure other people are seeing this on OS X. When starting > > up "lein swank" from the project directory and attempting to connect from > > Emacs with slime-connect with this simple clojure > > projecthttp://github.com/swannodette/lein-macosx-bug(just creates a JPanel > > and draws a small line) I get an exception: > > > Cannot load apple.laf.AquaLookAndFeel > > > I'm using lein 1.0, usual Emacs/Clojure/SLIME config on OS X 10.6, JDK 1.6 > > 64bit. > > > I note that if I use leiningen from git checkout I don't have this problem > > which seems odd since there aren't many changes between 1.0 and > > leiningen/master. > > > Thanks, > > David > > > -- > > 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 -- 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