This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-22
Channels
- # announcements (4)
- # aws (1)
- # beginners (82)
- # boot (14)
- # braveandtrue (1)
- # calva (73)
- # cider (7)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (83)
- # clojure-belgium (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojure-france (3)
- # clojure-italy (31)
- # clojure-nl (11)
- # clojure-uk (15)
- # clojurescript (19)
- # code-reviews (9)
- # cursive (16)
- # data-science (1)
- # datomic (16)
- # events (1)
- # fulcro (4)
- # graalvm (1)
- # hoplon (7)
- # jackdaw (5)
- # java (10)
- # jobs (6)
- # jobs-discuss (7)
- # juxt (1)
- # leiningen (6)
- # midje (1)
- # off-topic (2)
- # pathom (18)
- # pedestal (1)
- # reagent (8)
- # reitit (2)
- # ring (1)
- # shadow-cljs (38)
- # spacemacs (5)
- # sql (41)
- # vim (10)
- # xtdb (1)
@dfcarpenter try Visual Studio Code with Calva unless your really keen on Atom. Atom appears to be dieing a slow death these days.
I have setting variables depending of the environment (dev, test, prod), how can I store and import them?
I just saw these ^^' So I can make 3 files (one for each environment) and use config-merge (preferred over shadow-env) when building the project?
I have to differentiate the environment, for example URL of my API is different if I'm in dev env or prod env
@dfcarpenter also check in #chlorine for what you can expect to work. (If you haven't, of course)
Thanks. I did realize where I was going wrong.
https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/cljs/devtools/config.clj#L104
I'm getting this:
Execution error (IllegalStateException) at com.google.common.base.Preconditions/checkState (Preconditions.java:823).
Externs must contain builtin for env BROWSER: whatwg_console.js
my dependencies (:lein true) are:
[
[thheller/shadow-cljs "2.8.41"]
[binaryage/devtools "0.9.7"]
[fulcrologic/fulcro "2.8.4"]
]
I really don't need fulcro, but I wanted to use pathom
which has a visualizer which uses fulcro. Oh well.
my code is able to compile fine the first time but when i save a file (whitespace change) i get this uncaught error in the JS console
#error {:message
"The map literal star … ven number of forms."
, :data {:type :reader-exception, :ex-kind :reader-error}}
figured it out
this project had this poorly formatted code
(let [color (.hcl js/d3 color)
color (.brighter color .9)]
(.toString color))
the complier emitted a warning but still compiled
however the edn message shadow-cljs was pushing to the client was malformed
hmm not sure how that would ever happen. do you have something reproducible for this?
the message is The map literal starting with :prefix contains 5 form(s). Map literals must contain an even number of forms.
the stacktrace is
shadow$cljs$devtools$client$env$process_ws_msg @ env.cljs:168
(anonymous) @ browser.cljs:349
i see the shadow-cljs websocket is connected
i see the offending message from the websocket, it’s huge and it does indeed have a malformed map
but AFAIK shadow-cljs server constructs this message
are there certain deps that are incompatible with shadow-cljs?