Fork me on GitHub
#boot
<
2017-06-19
>
hkjels16:06:56

Hey, I’ve just converted one of our projects to use boot (http://github.com/bdo-labs/ui). It seems to work just fine stand-alone, but when I include it from another project I’m not able to find the namespace. Any ideas what I’m doing wrong?

hkjels16:06:39

I’ve done a boot version pom build-jar and that runs successfully

martinklepsch16:06:24

resource-paths and source-paths are not identical to their counterparts in Leiningen

martinklepsch16:06:08

resource-paths is “on the classpath” & “included in output” (can be target task or a jar, or something else)

martinklepsch16:06:28

source-paths is “on the classpath” only

martinklepsch16:06:08

@hkjels So the solution in your case would be to have

:resource-paths #{"resources" "src/clj" "src/cljs"}

hkjels16:06:21

Been troubling with that one for a while, so thanks!

martinklepsch16:06:08

@hkjels you’re welcome 🙂

Tim18:06:04

has anyone seen something like this before:

boot.user=> (clojure.core/load-file "./build.boot")
deftask boot.user/foo was overridden
deftask boot.user/hello was overridden
deftask boot.user/chan was overridden
deftask boot.user/insert-version-numbers-to-submodules was overridden
deftask boot.user/bump-versions-foo was overridden
#'boot.user/bump-versions-foo
boot.user=> (boot (bump-versions-foo))

java.lang.IllegalArgumentException: Arguments must be either all strings or all fns
boot.user=> (bump-versions-foo)

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: bump-versions-foo in this context, compiling:(/var/folders/7x/bdhllf3x3hj6rq19xn1rbh000000gn/T/boot.user4988841115757995892.clj:1:1)
             java.lang.RuntimeException: Unable to resolve symbol: bump-versions-foo in this context
boot.user=> (clojure.core/load-file "./build.boot")

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: deftask in this context, compiling:(/Users/timothy/development/backend/./build.boot:94:1)
             java.lang.RuntimeException: Unable to resolve symbol: deftask in this context
boot.user=>

Tim18:06:16

oops, nvm, looks like it was a problem with my task