lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
2017-12-14T14:03:43.000569Z

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?

2017-12-14T14:46:10.000097Z

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

2017-12-14T14:47:12.000465Z

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

2017-12-14T14:50:04.000714Z

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

2017-12-14T14:54:35.000091Z

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.

2017-12-14T15:24:23.000540Z

@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

2017-12-14T15:26:23.000568Z

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=> 

2017-12-14T15:27:29.000640Z

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

2017-12-14T15:28:36.000629Z

yea I think the space , was an issue

2017-12-14T15:28:54.000456Z

tks

👍 1
2017-12-14T20:43:43.000102Z

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.