Prasad, I'm not positive but I suspect your issue is here:
> :cljsbuild [:builds []])
...the argument to cljsbuild must be a hashmap I believe. It's
currently a vector. Try:
> :cljsbuild {:builds []})
Let us know if that doesn't work.
DD
(2013/09/07 11:25), prasad wrote:
> When I followed all the steps in the book in the "Using lein-cljsbuild"
> section I get the following behavior: (both on windows and linux, with
> different versions of clojure and lein cljsbuild. )
>
> lein trampoline cljsbuild repl-rhino
> java.lang.IllegalArgumentException: Key must be integer
> at clojure.lang.APersistentVector.assoc(APersistentVector.java:316)
> at clojure.lang.APersistentVector.assoc(APersistentVector.java:18)
> at clojure.lang.RT.assoc(RT.java:702)
> at clojure.core$assoc.invoke(core.clj:187)
> at clojure.core$update_in.doInvoke(core.clj:5587)
> at clojure.lang.RestFn.invoke(RestFn.java:445)
> at leiningen.cljsbuild.config$convert_builds_map.invoke(config.clj:41)
> at leiningen.cljsbuild.config$normalize_options.invoke(config.clj:148)
> at leiningen.cljsbuild.config$extract_options.invoke(config.clj:182)
> at leiningen.cljsbuild$cljsbuild.doInvoke(cljsbuild.clj:194)
> at clojure.lang.RestFn.invoke(RestFn.java:425)
> at clojure.lang.Var.invoke(Var.java:419)
> at clojure.lang.AFn.applyToHelper(AFn.java:163)
> at clojure.lang.Var.applyTo(Var.java:532)
> at clojure.core$apply.invoke(core.clj:619)
> at leiningen.core.main$resolve_task$fn__2160.doInvoke(main.clj:148)
> at clojure.lang.RestFn.applyTo(RestFn.java:139)
> at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:619)
> at leiningen.core.main$apply_task.invoke(main.clj:188)
> at leiningen.trampoline$trampoline$fn__3842.invoke(trampoline.clj:57)
> at leiningen.trampoline$trampoline.doInvoke(trampoline.clj:55)
> at clojure.lang.RestFn.invoke(RestFn.java:442)
> at clojure.lang.Var.invoke(Var.java:423)
> at clojure.lang.AFn.applyToHelper(AFn.java:167)
> at clojure.lang.Var.applyTo(Var.java:532)
> at clojure.core$apply.invoke(core.clj:619)
> at leiningen.core.main$resolve_task$fn__2160.doInvoke(main.clj:148)
> at clojure.lang.RestFn.applyTo(RestFn.java:139)
> at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:619)
> at leiningen.core.main$apply_task.invoke(main.clj:188)
> at leiningen.core.main$resolve_and_apply.invoke(main.clj:192)
> at leiningen.core.main$_main$fn__2223.invoke(main.clj:256)
> at leiningen.core.main$_main.doInvoke(main.clj:246)
> at clojure.lang.RestFn.invoke(RestFn.java:436)
> at clojure.lang.Var.invoke(Var.java:423)
> at clojure.lang.AFn.applyToHelper(AFn.java:167)
> at clojure.lang.Var.applyTo(Var.java:532)
> at clojure.core$apply.invoke(core.clj:617)
> at clojure.main$main_opt.invoke(main.clj:335)
> at clojure.main$main.doInvoke(main.clj:440)
> at clojure.lang.RestFn.invoke(RestFn.java:482)
> at clojure.lang.Var.invoke(Var.java:431)
> at clojure.lang.AFn.applyToHelper(AFn.java:178)
> at clojure.lang.Var.applyTo(Var.java:532)
> at clojure.main.main(main.java:37)
>
>
> c:\projects\code\clojurescript\hello-world>
>
> Contents of project.clj:
>
> (defproject hello-world "0.1.0-SNAPSHOT"
> :description "FIXME: write description"
> :url "http://example.com/FIXME"
> :license {:name "Eclipse Public License"
> :url "http://www.eclipse.org/legal/epl-v10.html"}
> :dependencies [[org.clojure/clojure "1.5.1"]]
> :plugins [[lein-cljsbuild "0.3.2"]]
> :cljsbuild [:builds []])
>
> Any suggestions on how to move forward.
>
> Thanks,
> -Prasad
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.