boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
OrdoFlammae 2020-03-31T00:49:26.011700Z

I'm getting an odd bug when trying to use Boot with boot-cljs. When I try to require it (require '[adzerk/boot-cljs :refer [cljs]]), it fails with this error:

OrdoFlammae 2020-03-31T00:49:26.011800Z

Boot.main                          Boot.java:  257
                            java.lang.reflect.Method.invoke                        Method.java:  566
   jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke  DelegatingMethodAccessorImpl.java:   43
       jdk.internal.reflect.NativeMethodAccessorImpl.invoke      NativeMethodAccessorImpl.java:   62
      jdk.internal.reflect.NativeMethodAccessorImpl.invoke0       NativeMethodAccessorImpl.java     
                                              boot.App.main                           App.java:  500
                                           boot.App.runBoot                           App.java:  407
org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke        ClojureRuntimeShimImpl.java:  145
org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke        ClojureRuntimeShimImpl.java:  154
                                    clojure.lang.Var.invoke                           Var.java:  394
                                            boot.main/-main                           main.clj:  216
                                         boot.main/-main/fn                           main.clj:  216
                                   clojure.core/load-string                           core.clj: 3959
                                   clojure.core/load-reader                           core.clj: 3957
                                 clojure.lang.Compiler.load                      Compiler.java: 7326
                                 clojure.lang.Compiler.load                      Compiler.java: 7379
                                 clojure.lang.Compiler.eval                      Compiler.java: 6927
                                  boot.user$eval3009.invoke                                   :   11
                            boot.user$eval3009.invokeStatic                                   :   11
                                 clojure.lang.RestFn.invoke                        RestFn.java:  408
                                       clojure.core/require                           core.clj: 5796 (repeats 2 times)
                                         clojure.core/apply                           core.clj:  648
                                clojure.lang.RestFn.applyTo                        RestFn.java:  137
                                     clojure.core/load-libs                           core.clj: 5758
                                     clojure.core/load-libs                           core.clj: 5774
                                         clojure.core/apply                           core.clj:  648
                                clojure.lang.RestFn.applyTo                        RestFn.java:  142
                                      clojure.core/load-lib                           core.clj: 5717
                                      clojure.core/load-lib                           core.clj: 5736
                                   clojure.core/load-lib/fn                           core.clj: 5737
                                      clojure.core/load-one                           core.clj: 5697
                                 clojure.lang.RestFn.invoke                        RestFn.java:  408
                                          clojure.core/load                           core.clj: 5876
                                          clojure.core/load                           core.clj: 5892
                                       clojure.core/load/fn                           core.clj: 5893
                                       clojure.lang.RT.load                            RT.java:  419
                                       clojure.lang.RT.load                            RT.java:  456
<http://java.io|java.io>.FileNotFoundException: Could not locate boot_cljs__init.class or boot_cljs.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
   clojure.lang.ExceptionInfo: Could not locate boot_cljs__init.class or boot_cljs.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
    line: 11

OrdoFlammae 2020-03-31T00:50:09.012200Z

My build.boot is as follows:

(set-env!
 :source-paths #{"src/cljs"}
 :resource-paths #{"html"}

 :dependencies '[[adzerk/boot-cljs "2.1.5"]])

(require '[adzerk/boot-cljs :refer [cljs]])

OrdoFlammae 2020-03-31T00:54:36.012600Z

XD. I'm an idiot. I typed adzerk/boot-cljs instead of adzerk.boot-cljs.