Oh, that's odd. I don't have any entries in my own user plugins for "lein 
new" templates. (I'm assuming you meant ~/.lein/profiles.clj, right?)

Is there some reason you have them in there? "lein new chestnut" should 
work just fine without them, but maybe I'm not understanding what you're 
trying to do.

Tim

On Monday, March 9, 2015 at 6:30:48 PM UTC-4, webber wrote:
>
> I've commented chestnut/lein-template from the ~/.lein/projects.clj as 
> follows, then it worked.
> It worked using 0.6.0 if there was the chestnut/lein-template definition. 
> Was my usage wrong ?
>
> {:user {:plugins [
>                   [lein-try "0.4.3"]
>                   ;[lein-pprint "1.1.1"]
>                   [lein-ancient "0.6.4" :exclusions 
> [org.clojure/core.cache]]
>                   [lein-bikeshed "0.2.0"]
>                   [lein-ritz "0.7.0"]
>                   [lein-marginalia "0.8.0"]
>                   [http-kit/lein-template "1.0.0-SNAPSHOT"]
>                   [cider/cider-nrepl "0.9.0-SNAPSHOT"]
>                   [cljs-complete "0.1.1"]
>                   ;;[chestnut/lein-template "0.7.0"]
>                   ;;[chestnut/lein-template "0.6.0"]
>                   ]
>         :dependencies [;;[nrepl-inspect "0.4.1"]
>                        [compliment "0.2.0"]
>                        [ritz/ritz-nrepl-middleware "0.7.0"]
>                        [cider/cider-nrepl "0.9.0-SNAPSHOT"]
>                        [alembic "0.2.1"]
>                        [org.clojure/tools.nrepl "0.2.7"]
>                        ]
>
>         :repl-options {:nrepl-middleware
>                        [cider.nrepl.middleware.classpath/wrap-classpath
>                         cider.nrepl.middleware.complete/wrap-complete
>                         cider.nrepl.middleware.info/wrap-info
>                         cider.nrepl.middleware.inspect/wrap-inspect
>                         cider.nrepl.middleware.stacktrace/wrap-stacktrace
>                         cider.nrepl.middleware.trace/wrap-trace
>                         ]}
>
>         }}
>
> Makoto
>  
>
>> I ran into this same behavior, and then I realized it only happened if I 
>> run the "lein new" command if I'm *already in* a previously-created 
>> project created with "lein new chestnut". I'm guessing that something in 
>> the generated project.clj interferes some of the lein new behavior somehow. 
>> At any rate, running lein new in a directory without a project.clj file in 
>> it is working fine for me.
>>
>> Tim
>>
>> On Saturday, March 7, 2015 at 5:38:41 AM UTC-5, webber wrote:
>>>
>>> I tested the v 0.7.0 of chestnut and I encountered the following error.
>>> The v 0.6.0 works fine.
>>>
>>> $ lein new chestnut test-app
>>> Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.pom from 
>>> clojars
>>> Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.jar from 
>>> clojars
>>> Exception in thread "main" java.lang.ExceptionInInitializerError
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:270)
>>> at clojure.lang.RT.loadClassForName(RT.java:2093)
>>> at clojure.lang.RT.load(RT.java:430)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:421)
>>> at stencil.core$loading__4958__auto__.invoke(core.clj:1)
>>> at stencil.core__init.load(Unknown Source)
>>> at stencil.core__init.<clinit>(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:270)
>>> at clojure.lang.RT.loadClassForName(RT.java:2093)
>>> at clojure.lang.RT.load(RT.java:430)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:512)
>>> at leiningen.new.templates$loading__4958__auto__.invoke(templates.clj:11)
>>> at leiningen.new.templates__init.load(Unknown Source)
>>> at leiningen.new.templates__init.<clinit>(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:270)
>>> at clojure.lang.RT.loadClassForName(RT.java:2093)
>>> at clojure.lang.RT.load(RT.java:430)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:512)
>>> at leiningen.new$loading__4958__auto__.invoke(new.clj:1)
>>> at leiningen.new__init.load(Unknown Source)
>>> at leiningen.new__init.<clinit>(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:270)
>>> at clojure.lang.RT.loadClassForName(RT.java:2093)
>>> at clojure.lang.RT.load(RT.java:430)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at leiningen.core.utils$require_resolve.invoke(utils.clj:80)
>>> at leiningen.core.utils$require_resolve.invoke(utils.clj:83)
>>> at leiningen.core.main$lookup_task_var.invoke(main.clj:68)
>>> at leiningen.core.main$pass_through_help_QMARK_.invoke(main.clj:78)
>>> at leiningen.core.main$task_args.invoke(main.clj:81)
>>> at leiningen.core.main$resolve_and_apply.invoke(main.clj:318)
>>> at leiningen.core.main$_main$fn__6160.invoke(main.clj:392)
>>> at leiningen.core.main$_main.doInvoke(main.clj:385)
>>> at clojure.lang.RestFn.invoke(RestFn.java:436)
>>> at clojure.lang.Var.invoke(Var.java:388)
>>> at clojure.lang.AFn.applyToHelper(AFn.java:160)
>>> at clojure.lang.Var.applyTo(Var.java:700)
>>> at clojure.core$apply.invoke(core.clj:624)
>>> at clojure.main$main_opt.invoke(main.clj:315)
>>> at clojure.main$main.doInvoke(main.clj:420)
>>> at clojure.lang.RestFn.invoke(RestFn.java:482)
>>> at clojure.lang.Var.invoke(Var.java:401)
>>> at clojure.lang.AFn.applyToHelper(AFn.java:171)
>>> at clojure.lang.Var.applyTo(Var.java:700)
>>> at clojure.main.main(main.java:37)
>>> Caused by: java.io.FileNotFoundException: Could not locate 
>>> clojure/data/priority_map__init.class or clojure/data/priority_map.clj on 
>>> classpath: , compiling:(clojure/core/cache.clj:1:1)
>>> at clojure.lang.Compiler.load(Compiler.java:7142)
>>> at clojure.lang.RT.loadResourceScript(RT.java:370)
>>> at clojure.lang.RT.loadResourceScript(RT.java:361)
>>> at clojure.lang.RT.load(RT.java:440)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at stencil.loader$fn__11439.invoke(loader.clj:43)
>>> at stencil.loader__init.load(Unknown Source)
>>> at stencil.loader__init.<clinit>(Unknown Source)
>>> ... 101 more
>>> Caused by: java.io.FileNotFoundException: Could not locate 
>>> clojure/data/priority_map__init.class or clojure/data/priority_map.clj on 
>>> classpath: 
>>> at clojure.lang.RT.load(RT.java:443)
>>> at clojure.lang.RT.load(RT.java:411)
>>> at clojure.core$load$fn__5066.invoke(core.clj:5641)
>>> at clojure.core$load.doInvoke(core.clj:5640)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at clojure.core$load_one.invoke(core.clj:5446)
>>> at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
>>> at clojure.core$load_lib.doInvoke(core.clj:5485)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$load_libs.doInvoke(core.clj:5524)
>>> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>> at clojure.core$apply.invoke(core.clj:626)
>>> at clojure.core$require.doInvoke(core.clj:5607)
>>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>> at 
>>> clojure.core.cache$eval5339$loading__4958__auto____5340.invoke(cache.clj:9)
>>> at clojure.core.cache$eval5339.invoke(cache.clj:9)
>>> at clojure.lang.Compiler.eval(Compiler.java:6703)
>>> at clojure.lang.Compiler.eval(Compiler.java:6692)
>>> at clojure.lang.Compiler.load(Compiler.java:7130)
>>> ... 121 more
>>>
>>>>
>>>>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to