Fork me on GitHub
#lumo
<
2018-05-24
>
johanatan00:05:35

what is the current accepted way to use deps.edn with lumo ?

johanatan00:05:55

i saw this thread but couldn't quite figure out what is going on: https://github.com/anmonteiro/lumo/issues/328

richiardiandrea00:05:25

@johanatan this is what I do

cp=$(clojure -Srepro -C:dev -R:lumo-compile -Spath)
lumo -sfK -c "$cp" -n $port

richiardiandrea00:05:02

I don't think lumo should call clojure directly or the whole no-JVM story would be lost

johanatan00:05:20

yea, i understand how to get the classpath set properly. what i don't understand is how to get the things i want to specify in deps.edn to be downloaded into the classpath

richiardiandrea00:05:51

clojure will download deps in .m2 for you

johanatan00:05:05

from a file called deps.edn in the current dir?

johanatan19:05:22

can anyone share the right incantations for including a namespaced source file via --cp?

johanatan19:05:41

i.e., both the ns declaration inside the file to be shared and the use on the receiving side

richiardiandrea19:05:00

there is no special rule, it is just clojure

johanatan19:05:13

well, clojure requires directories to exist with the namespace name yea?

johanatan19:05:20

is that same requirement in play here?

johanatan19:05:33

i'll try that. thx

johanatan19:05:06

i'm getting:

cljs.user=> (use 'preamble.core)
            ⬆
Only [lib.ns :only (names)] and optionally `:rename {from to}` specs supported in :use / :use-macros; offending spec: [preamble.core] at line 1

johanatan19:05:13

is use supported?

richiardiandrea19:05:13

I think not in ClojureScript

richiardiandrea19:05:53

also use is frowned upon 😄

johanatan20:05:40

hmm, in this particular case, i am basically defining a preamble of things i want to always be available. so i want to bring all of them in

johanatan20:05:49

looks like require :refer [:all] isn't supported either?

johanatan20:05:58

would be a real pain to list out every symbol here

johanatan20:05:00

i suppose i will just go with :as and qualify all references

johanatan20:05:07

[which isn't terrible]

johanatan20:05:49

is anyone aware that -A warn seems more error-like than the result obtained via -A error ?

johanatan20:05:02

[and neither really seem like errors]

johanatan20:05:24

[it's just that the former is a warning including the word "error" and the latter is just a warning]

mfikes20:05:00

One difference is that checked array warns should, at worst, cause noisy logging, while errors will cause exceptions to be thrown, stopping the show.

johanatan21:05:18

yea, i'm not seeing that here

johanatan21:05:42

as i said, "warn" seems to be producing results more in line with an "error" (although still not stopping the show) and "error" just produces a warning