Clojurians
#lumo
<
2018-02-10
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

lilactown00:02:40

I’m having trouble loading a neighbor dependency using lumo

lilactown00:02:04

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"

noisesmith00:02:45

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

lilactown00:02:14

:sweat_smile: I see

noisesmith00:02:47

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

lilactown00:02:04

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

lilactown00:02:14

cambia/web/scripts is the whole path

noisesmith00:02:24

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

lilactown00:02:26

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

noisesmith00:02:40

no, the extra scripts is still bad there

noisesmith00:02:53

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

noisesmith00:02:45

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

richiardiandrea02:02:10

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

richiardiandrea02:02:54

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

jiyinyiyong17:02:48

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

richiardiandrea17:02:07

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

mfikes17:02:56

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

richiardiandrea17:02:59

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