reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

+cljx crashes lein test #10

Closed Frozenlock closed 9 years ago

Frozenlock commented 9 years ago

It seems that the :prep-tasks "cljx once" in the project.clj is messing with with lein test command.

This is the error I'm getting:

java.lang.ClassCastException: java.lang.Character cannot be cast to java.lang.String
 at clojure.core$symbol.invoke (core.clj:547)
    leiningen.core.utils$require_resolve.invoke (utils.clj:71)
    leiningen.core.main$lookup_task_var.invoke (main.clj:60)
    leiningen.core.main$resolve_task.invoke (main.clj:260)
    leiningen.core.main$resolve_task.invoke (main.clj:264)
    leiningen.core.main$apply_task.invoke (main.clj:294)
    lein_environ.plugin$write_env_to_file.invoke (plugin.clj:11)
    clojure.lang.Var.invoke (Var.java:394)
    clojure.lang.AFn.applyToHelper (AFn.java:165)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.core$apply.invoke (core.clj:626)
    robert.hooke$compose_hooks$fn__11692.doInvoke (hooke.clj:40)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:624)
    robert.hooke$run_hooks.invoke (hooke.clj:46)

If I remove the :prep-tasks, everything runs fine.

seancorfield commented 9 years ago

:prep-tasks should take a vector of task names, not a string.

yogthos commented 9 years ago

ah right, fixed and pushed out a new template

Frozenlock commented 9 years ago

Thanks!