This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-24
Channels
- # adventofcode (11)
- # architecture (12)
- # beginners (132)
- # boot (19)
- # cider (26)
- # clojure (69)
- # clojure-dusseldorf (4)
- # clojure-gamedev (1)
- # clojure-italy (46)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-switzerland (2)
- # clojure-uk (91)
- # clojurescript (79)
- # css (4)
- # cursive (2)
- # datomic (16)
- # docs (9)
- # duct (20)
- # editors (94)
- # fulcro (15)
- # graphql (2)
- # hoplon (1)
- # instaparse (7)
- # jobs (3)
- # lein-figwheel (3)
- # leiningen (2)
- # lumo (40)
- # mount (35)
- # off-topic (19)
- # reagent (18)
- # reitit (1)
- # shadow-cljs (123)
- # specter (7)
- # sql (5)
- # test-check (4)
- # tools-deps (38)
- # vim (20)
- # yada (9)
i saw this thread but couldn't quite figure out what is going on: https://github.com/anmonteiro/lumo/issues/328
@johanatan this is what I do
cp=$(clojure -Srepro -C:dev -R:lumo-compile -Spath)
lumo -sfK -c "$cp" -n $port
I don't think lumo
should call clojure
directly or the whole no-JVM story would be lost
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
clojure
will download deps in .m2
for you
np 😄
can anyone share the right incantations for including a namespaced source file via --cp
?
i.e., both the ns
declaration inside the file to be shared and the use
on the receiving side
@johanatan how do you mean?
there is no special rule, it is just clojure
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
I think not in ClojureScript
you need :only
also use
is frowned upon 😄
https://stackoverflow.com/questions/12879027/cannot-use-in-clojurescript-repl
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
is anyone aware that -A warn
seems more error-like than the result obtained via -A error
?
[it's just that the former is a warning including the word "error" and the latter is just a warning]
One difference is that checked array warns should, at worst, cause noisy logging, while errors will cause exceptions to be thrown, stopping the show.
A little more detail is here https://clojurescript.org/news/2017-07-14-checked-array-access#_new_compiler_enhancements