This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-26
Channels
- # adventofcode (15)
- # beginners (7)
- # cider (2)
- # clojure (42)
- # clojure-austin (1)
- # clojure-europe (4)
- # clojure-nl (2)
- # clojurescript (19)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (30)
- # graphql (8)
- # hoplon (28)
- # hyperfiddle (16)
- # jobs (1)
- # off-topic (2)
- # philosophy (1)
- # re-frame (1)
- # shadow-cljs (30)
- # vim (3)
just wondering... just updated shadow-cljs and now, I seem to have a bunch of warnings:
------ WARNING #1 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/events.cljc:61:11
--------------------------------------------------------------------------------
58 | (if *handling*
59 | (console :error "re-frame: while handling \"" *handling* "\", dispatch-sync was called for \"" event-v "\". You can't call dispatch-sync within an event handler.")
60 | (binding [*handling* event-v]
61 | (trace/with-trace {:operation event-id
-----------------^--------------------------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.events/java
--------------------------------------------------------------------------------
62 | :op-type kind
63 | :tags {:event event-v}}
64 | (interceptor/execute event-v interceptors)))))))
65 |
--------------------------------------------------------------------------------
------ WARNING #2 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:48:29
--------------------------------------------------------------------------------
45 | (let [cache-key [query-v dynv]]
46 | ;; when this reaction is no longer being used, remove it from the cache
47 | (add-on-dispose! r #(do (swap! query->reaction dissoc cache-key)
48 | (trace/with-trace {:operation (first-in-vector query-v)
-----------------------------------^--------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
49 | :op-type :sub/dispose
50 | :tags {:query-v query-v
51 | :reaction (reagent-id r)}}
52 | nil)))
--------------------------------------------------------------------------------
------ WARNING #3 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:111:4
--------------------------------------------------------------------------------
108 | "
109 |
110 | ([query]
111 | (trace/with-trace {:operation (first-in-vector query)
----------^---------------------------------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
112 | :op-type :sub/create
113 | :tags {:query-v query}}
114 | (if-let [cached (cache-lookup query)]
115 | (do
--------------------------------------------------------------------------------
------ WARNING #4 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:129:4
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
------ WARNING #5 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:305:34
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
------ WARNING #6 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:320:34
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
------ WARNING #7 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/router.cljc:126:5
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.router/java
--------------------------------------------------------------------------------
------ WARNING #8 --------------------------------------------------------------
File: zprint/focus.cljc:100:47
cljs.core/-, all arguments must be numbers, got [#{nil clj-nil} number] instead
--------------------------------------------------------------------------------
------ WARNING #9 --------------------------------------------------------------
File: com/rpl/specter.cljc:1275:19
Use of undeclared Var com.rpl.specter/java
--------------------------------------------------------------------------------
------ WARNING #10 -------------------------------------------------------------
File: com/rpl/specter.cljc:1288:19
Use of undeclared Var com.rpl.specter/java
--------------------------------------------------------------------------------
Am I missing something?
I’m trying to use an NPM package that requires importing a CSS file. How can I do this with shadow-cljs? The readme for the package just says to do @import 'handsontable/dist/handsontable.full.css';
(https://github.com/handsontable/react-handsontable#handsontable-community-edition)
I guess this (https://github.com/thheller/shadow-cljs/issues/353) applies here?
@wombawomba CSS is not supported currently. you need to do that separately. I typically just use the node-sass
CLI
Alright. Do I need to run that as a separate process, or can I get it to run together with shadow-cljs somehow?
Is it possible to make shadow-cljs connect to a server running on a different host to localhost:9630 when running a build?
so if you load
it'll try to connect to
you can override which url it connects to by setting :devtools {:devtools-url "
hmm not sure i'm understanding how this is suppose to work correctly... I am starting a shadow-cljs process with shadow-cljs server start
, which will then be available at
.
I'm then running a couple of builds on different hosts, using shadow-cljs watch buildA
and shadow-cljs watch buildB
. At the moment these two builds start their own, new shadow-cljs processes instead of using the one already available at
.
What I'd like is for those two build commands to reuse the already started shadow-cljs process
but if you have one shadow-cljs server
process running both watch
should be using it
Ah I see. Would it be a bad idea to share the server process? Or just something that hasn't been implemented?
on another note... I've replicated the code here exactly, but my server isn't starting / stopping on initial shadow-cljs watch script
or after changing anything in the src file
it triggers a re-compile on change, but it doesn't seem to be running the :before-load-async
and :after-load
functions
here's my full code: https://github.com/thisdotrob/shadow-cljs-node-hot-code-reload