With Lance's help, I've gotten a better understanding of why CDT fails with Cake. The problem is that Cake makes use of Classlojure, (https://github.com/ninjudd/classlojure), which allows multiple versions of clojure to be loaded in the same vm simultaneously. (It's pretty cool!)
Anyways that breaks certain assumptions that CDT makes about what classes are loaded; it shouldn't be too hard to fix but will require a bit of a redesign of cdt, so it will probably be a week or two before I have a fix available. Thanks to Lance for helping me understand. g On Apr 25, 9:41 pm, lance bradley <lancebrad...@gmail.com> wrote: > I'll keep at it too. Make sure you do a manual checkout and use the > develop branch. I suspected this would be the fix, but I was wrong- it > could still be necessary > though:https://github.com/ninjudd/cake/commit/8d70cb88fd83e6aec17a0dac05e97f... > > On Apr 25, 9:30 pm, George Jahad <cloj...@blackbirdsystems.net> wrote: > > > not using openjdk. and the tools.jar issue is probably a red > > herring. i'll try installing cake and see if i can notice anything. > > definitely want to keep cake users happy! > > > On Apr 25, 8:33 pm, lance bradley <lancebrad...@gmail.com> wrote: > > > > Hey guys- > > > I spent some time trying to get this working today. My experiences > > > mirror Sam's. I'm on a mac, running the jdk that ships with xcode4. > > > According > > > tohttp://developer.apple.com/library/mac/#documentation/Java/Conceptual... > > > , tools.jar does not exist in the xcode jdk. George, are you perhaps > > > using the openjdk? Once I get this straightened out, I'll confirm that > > > cake's classloader hanky panky doesn't cause any other issues :) > > > > -lance > > > > On Apr 25, 12:12 pm, Sam Aaron <samaa...@gmail.com> wrote: > > > > > On 25 Apr 2011, at 19:34, George Jahad wrote: > > > > > >> When I press e the mini buffer prompts me to "Eval in frame:" and I > > > > >> propmpty type s1 to see the following error in the minibuffer: > > > > >> Unexpected exception generated: java.lang.IllegalArgumentException: > > > > >> Invalid method This stuff is all new to me, so I'm likely to be > > > > >> doing something silly. > > > > > > I doubt that. Most likely you have a fairly complicated installation, > > > > > whose problems i haven't experienced yet. > > > > > That's pretty unlikely unless it is specifically cake that's the issue. > > > > I was running in a completely new and empty project with nothing except > > > > clojure and swank-clojure as deps. > > > > > > Sam, can I suggest we eliminate those installation issues by > > > > > experimenting with a known working project, e.g. logos and seeing if > > > > > that works for you? > > > > > This seems to work perfectly :-) No tools.jar errors and I can examine > > > > the contents of s1 and s2 - Great stuff! This is really exciting :-) > > > > > However, if I create a fresh new logos clone, modify the project.clj > > > > again, and pull the deps with cake, add the .cake/config jvm.opts line > > > > and start a swank server I get the same issues I saw before: > > > > > * A tools.jar warning > > > > * An exception when trying to eval s1 > > > > > I think that this is pretty clearly a cake issue. I do think it would > > > > be cool if this worked out of the box with both lein and cake. I like > > > > lein, but cake has better native dependency support which I find > > > > extremely useful for my projects. > > > > > Have any of the cake devs tried the CDT stuff yet? How might I help > > > > debug this? > > > > > Sam > > > > > ---http://sam.aaron.name -- 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