lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
lilactown 2018-02-10T00:44:40.000136Z

I’m having trouble loading a neighbor dependency using lumo

lilactown 2018-02-10T00:46:04.000150Z

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"

2018-02-10T00:46:45.000089Z

@lilactown shouldn’t the path to child_process match the namespace structure?

lilactown 2018-02-10T00:47:14.000172Z

😅 I see

2018-02-10T00:47:47.000059Z

the error message isn’t perfect, but it does show you the file path it wants

lilactown 2018-02-10T00:48:04.000227Z

yeah - it’s confusing because that is the directory that I’m running it from

lilactown 2018-02-10T00:48:14.000220Z

cambia/web/scripts is the whole path

2018-02-10T00:48:24.000142Z

right, but it doesn’t look at that - it looks at the path starting from the cp entry

lilactown 2018-02-10T00:48:26.000105Z

but I see it wants cambia/web/scripts/cambia/web/scripts/

lilactown 2018-02-10T00:48:31.000163Z

👍

2018-02-10T00:48:40.000215Z

no, the extra scripts is still bad there

2018-02-10T00:48:53.000132Z

the path from the classpath entry to the file has to match the namespace

lilactown 2018-02-10T00:49:15.000199Z

got it

2018-02-10T00:49:45.000133Z

you can use ../../ etc. if you want to point the process at a classpath that’s a parent of the current directory though

richiardiandrea 2018-02-10T02:30:10.000098Z

I am compiling with latest master and I actually have that error when I boot release

richiardiandrea 2018-02-10T02:32:54.000094Z

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

Jon 2018-02-10T17:07:48.000076Z

trying to make use of https://github.com/lumo although I don't use lumo heavily. just found it available on GitHub.

richiardiandrea 2018-02-10T17:28:07.000107Z

Nice! I actually wanted to create an organization like cljs-self-hosted

mfikes 2018-02-10T17:31:56.000052Z

@anmonteiro @richiardiandrea FWIW, the v20180204 Closure JS release appears to be working fine with Planck; perhaps the same holds true for Lumo,.

richiardiandrea 2018-02-11T17:01:25.000099Z

Maybe this needs to go in for us and Planck as well: https://github.com/clojure/clojurescript/commit/72e2ab6e63b3341aa26abcbdd72dc291cbd0c462

mfikes 2018-02-11T17:02:34.000100Z

What specifically are you referring to?

richiardiandrea 2018-02-11T17:05:03.000011Z

Still analyzing it myself 😄

richiardiandrea 2018-02-11T17:10:16.000084Z

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

richiardiandrea 2018-02-10T17:34:59.000063Z

I have a patch in lumo that is failing a test... haven't investigated more though. Thanks Mike!