I’m having trouble loading a neighbor dependency using lumo
scripts
├── child_process.cljs
└── init.cljs
trying to run lumo -c ./scripts/ ./scripts/init.cljs
gives me: No such namespace: cambia.web.child-process, could not locate cambia/web/child_process.cljs, cambia/web/child_process.cljc, or JavaScript source providing "cambia.web.child-process"
@lilactown shouldn’t the path to child_process match the namespace structure?
😅 I see
the error message isn’t perfect, but it does show you the file path it wants
yeah - it’s confusing because that is the directory that I’m running it from
cambia/web/scripts
is the whole path
right, but it doesn’t look at that - it looks at the path starting from the cp entry
but I see it wants cambia/web/scripts/cambia/web/scripts/
👍
no, the extra scripts is still bad there
the path from the classpath entry to the file has to match the namespace
got it
you can use ../../ etc. if you want to point the process at a classpath that’s a parent of the current directory though
I am compiling with latest master and I actually have that error when I boot release
The step that fails is the aot
of macros and I am building cljs with script/build
. Maybe I need some additional step to produce cljs's artifact
trying to make use of https://github.com/lumo although I don't use lumo heavily. just found it available on GitHub.
Nice! I actually wanted to create an organization like cljs-self-hosted
@anmonteiro @richiardiandrea FWIW, the v20180204
Closure JS release appears to be working fine with Planck; perhaps the same holds true for Lumo,.
Maybe this needs to go in for us and Planck as well: https://github.com/clojure/clojurescript/commit/72e2ab6e63b3341aa26abcbdd72dc291cbd0c462
What specifically are you referring to?
Still analyzing it myself 😄
In particular I see a failure in convert-js-modules
in Lumo: https://github.com/anmonteiro/lumo/pull/350 so I guess we need that in
I have a patch in lumo that is failing a test... haven't investigated more though. Thanks Mike!