1) The error says default.clj is trying to find a "render" that doesn't exist. This file isn't in leiningen's 1.x branch[1]. So what is trying to load it? 2) The next lein call in the stacktrace is "at leiningen.new$resolve_template$fn__117.invoke(new.clj:9)". But this doesn't exist in lein's new.clj[2]. This lets me know that new.clj is from somewhere else, either a plugin(likely), or a jar being added by default to the classpath by your system(unlikely). 3) I know that there is a lein-newnew plugin that changes the lein new task. 4) Looking at that project, I can see that it's new task works like your stacktrace. 4) I can see in the commit history for that default.clj[3], that there was a commit that used (:use .. :only [.. render]), and then one that got rid of it. 5) The overall commit log looks like a 0.2.3 release might have been during that time.
At that point I can make a strong guess that having that as an installed plugin is causing your problem. It also helps that I've been doing dev on lein2 recently. [1]https://github.com/technomancy/leiningen/tree/1.x/src/leiningen [2]https://github.com/technomancy/leiningen/blob/1.x/src/leiningen/new.clj [3]https://github.com/Raynes/lein-newnew/commits/master/src/leiningen/new/default.clj On Fri, Apr 6, 2012 at 10:36 AM, uMany <elm...@gmail.com> wrote: > Thank your Nelson that worked. > I remover the lein-newnew pluging and reintalled and now all works again. > Can I ask you what lead you to that? > Thanks > > > On Thursday, April 5, 2012 11:26:53 AM UTC-4:30, Nelson Morris wrote: >> >> It looks like you have the lein-newnew plugin installed. If I'm reading >> its project history correctly, 0.2.3 might cause this. Try removing it from >> ~/.lein/plugins or upgrading to 0.2.5. >> >> On Apr 5, 2012 9:47 AM, "uMany" wrote: >>> >>> Hi, >>> >>> On Tuesday, April 3, 2012 11:20:10 PM UTC-4:30, Cedric Greevey wrote: >>>> >>>> On Tue, Apr 3, 2012 at 11:39 PM, uMany wrote: >>>> > Hi everybody >>>> > Everything was working great and just today, while trying to make a >>>> > simple >>>> > "lein new foobar" I got this error: >>>> > Exception in thread "main" java.lang.IllegalAccessError: render does >>>> > not >>>> > exist (default.clj:1) >>>> >>>> The JVM is loading an older version of a class, and the code is then >>>> trying to call a method added in a newer version. >>>> >>>> So, the version of some dependency of another dependency is wrong, >>>> most likely -- for instance, if your project.clj calls for a 1.3 >>>> contrib library and Clojure 1.2, or something like that. >>>> >>>> If lein deps doesn't fix things then try remaking the project.clj from >>> >>> The thing is that I don't have a project yet. I'm just starting a project >>> with >>> lein new something >>> and I got the error right away. >>> I've been trying to solve this a couple of days without any luck >>> >>> Thanks >>> >>>> >>>> scratch based on what you are using in that project. It could also be >>>> a bug in one of the dependencies, I suppose. > > -- > 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