Fork me on GitHub
#lumo
<
2018-02-10
>
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?

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

Jon17: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

Jon02:02:18

Too long!

richiardiandrea02:02:41

Open for proposals 😄

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,.

mfikes17:02:34

What specifically are you referring to?

richiardiandrea17:02:03

Still analyzing it myself 😄

richiardiandrea17:02:16

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

richiardiandrea17:02:59

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