Clojurians
#lumo
<
2017-12-14
>

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

firstclassfunc14:12:43

Guys, I am a little confused with lumo transient dependencies. I don't seem to be able to load cljs libraries even when specifying coordinates on command-line. Am i suppose to ignore those and only use js libraries?

hlolli14:12:10

@firstclassfunc how does your classpath look like you're feeding to lumo?

firstclassfunc14:12:12

@hlolli was using something like lumo -KvD "cljs-http:0.1.41, noencore/noencore:0.3.3"

hlolli14:12:04

you sure they exists in ~/.m2 directory? Otherwise I'm not good with the -D argument, but I'm not sure you need the quotes.. 1min...

hlolli14:12:35

https://github.com/anmonteiro/lumo/blob/master/src/js/util.js#L77-L89 yes it's just comma, don't need the space, it splits by a single comma.

firstclassfunc15:12:23

@hlolli I have tried various ways, if I do lumo -KvD cljs-http:0.1.41, noencore:0.3.3 I get an error

path.js:28
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:1249:7)
    at ke ([eval]:1:19910)
    at n.split.map ([eval]:1:19990)
    at Array.map (<anonymous>)
    at e.reduce ([eval]:1:19981)
    at Array.reduce (<anonymous>)
    at ze ([eval]:1:19945)
    at [eval]:161:82815
    at [eval]:161:82883

hlolli15:12:23

this error is for nonencore I guess, it things it's main script path.. I'm guessing, on my computer I can do this

$ lumo -d -D org.clojure/test.check:0.10.0-alpha2 -c src
Lumo 1.8.0-beta
ClojureScript 1.9.946
Node.js v9.2.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=> 

hlolli15:12:29

lumo -d -D org.clojure/test.check:0.10.0-alpha2,andare/andare-0.7.0.jar -c src works too

firstclassfunc15:12:36

yea I think the space , was an issue

hlolli20:12:43

Second time I bump into these kind of require pattern https://github.com/weavejester/cljfmt/blob/master/cljfmt/src/cljfmt/core.cljc#L23 where in cljc file, selfreference is provided to macros for cljs cases. Both times I get errors in Lumo, I wonder if this is a lumo thing, or deprecated cljs thing.