Open arichiardi opened 7 years ago
Could you maybe provide a runnable repro snippet @arichiardi?
@martinklepsch yes definitely, I can actually probably write a small test but I need more time.
This is what fails (in build.boot
):
(deftask split-test
[a parent SYM:VER=PATH [sym str str]]
(with-pre-wrap [fs] fs))
$ boot split-test -a abc:efg=2
java.lang.Thread.run Thread.java: 748
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 624
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1149
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 1938
boot.core/boot/fn core.clj: 1032
...
boot.core/construct-tasks core.clj: 988
...
boot.from.clojure.tools.cli/parse-opts cli.clj: 500
boot.from.clojure.tools.cli/parse-option-tokens cli.clj: 350
clojure.core/reduce core.clj: 6544
...
boot.from.clojure.tools.cli/parse-option-tokens/fn cli.clj: 347
boot.cli/assoc-fn/fn cli.clj: 79
boot.cli/parse-type cli.clj: 62
clojure.core/symbol core.clj: 568
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to java.lang.String
clojure.lang.ExceptionInfo: clojure.lang.PersistentVector cannot be cast to java.lang.String
line: 107
This is actually what works:
(deftask split-test
[a parent SYM:VER=PATH #{[sym str str]}]
(with-pre-wrap [fs] fs))
Note the surrounding set.
I was trying to have this task option for a task:
And I got:
What am I doing wrong?