This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-01
Channels
- # beginners (134)
- # boot (4)
- # cider (11)
- # cljs-dev (3)
- # cljsrn (10)
- # clojure (85)
- # clojure-dev (10)
- # clojure-spec (17)
- # clojure-uk (14)
- # clojurescript (19)
- # copenhagen-clojurians (1)
- # data-science (15)
- # datascript (3)
- # datomic (3)
- # fulcro (1)
- # graphql (3)
- # heroku (1)
- # hoplon (1)
- # leiningen (2)
- # nrepl (11)
- # om-next (1)
- # onyx (35)
- # reitit (3)
- # shadow-cljs (43)
- # spacemacs (2)
- # specter (1)
- # test-check (10)
- # tools-deps (1)
- # vim (1)
I have some code where a depnedency is triggering a warning
and that's preventing shadow to reload the code, the HUD stays on, nothing is notified, at console it says it compiled and show warnings on dep libraries
@dpsutton never seen that error before. shadow-cljs doesn't use anything from javafx so its weird to get an error like that. IIRC only the nashorn CLJS REPL uses the javafx stuff. it looks like you are using the JRE thought and not the JDK?
@wilkerlucio thats a pretty vague description. typically warnings from libraries should only be shown once and not interfere with the live reload IF they come from the jar?
@thheller yeah, I found it strange, in this case Im back using deps.edn, and the package causing the issue is the core.matchers, I’ll try to make an example and send as an issue, I was wondering if just that description would make something click for you
WOW, I just tried fspec
and seems the related issue has been fixed, thanks thheller!
@urbanslug I'm using node-sass
in my work project directly from the CLI, didnt' try any of the JVM related sass tools.
@wilkerlucio ah are you using git deps? The logic for warnings currently assumes that all "library" code lives in jars but in case of git deps they are actual files so they are treated like project code with "sticky" warnings
@urbanslug i just fire off of a node-sass watcher using npm, which also fires up my api server and the shadow watch. i also have the npm-run-all package installed so i an run things in parallel in one terminal using run-p
. pretty handy for simple build script stuff
@thheller Ah I see > shadow-cljs currently provides no support for directly compiling CSS but the usual tools will work and should be run separately. Just make sure the output is generated into the correct places.
@lee.justin.m thanks a ton!
@thheller yes I'm using a git dep, but the code triggering the warning is not a git dep
------ WARNING #1 --------------------------------------------------------------
File: clojure/math/combinatorics.cljc:278:26
--------------------------------------------------------------------------------
275 | indices (apply concat
276 | (for [i (range (count v))]
277 | (repeat (f (v i)) i)))]
278 | (map (partial map v) (lex-permutations indices))))
--------------------------------^-----------------------------------------------
clojure.math.combinatorics/lex-permutations is deprecated
--------------------------------------------------------------------------------
279 |
280 | (defn permutations
281 | "All the distinct permutations of items, lexicographic by index
282 | (special handling for duplicate items)."
--------------------------------------------------------------------------------
------ WARNING #2 --------------------------------------------------------------
File: clojure/math/combinatorics.cljc:285:29
--------------------------------------------------------------------------------
282 | (special handling for duplicate items)."
283 | [items]
284 | (cond
285 | (sorted-numbers? items) (lex-permutations items),
-----------------------------------^--------------------------------------------
clojure.math.combinatorics/lex-permutations is deprecated
--------------------------------------------------------------------------------
286 |
287 | (all-different? items)
288 | (let [v (vec items)]
289 | (map #(map v %) (lex-permutations (range (count v)))))
--------------------------------------------------------------------------------
------ WARNING #3 --------------------------------------------------------------
File: clojure/math/combinatorics.cljc:289:23
--------------------------------------------------------------------------------
286 |
287 | (all-different? items)
288 | (let [v (vec items)]
289 | (map #(map v %) (lex-permutations (range (count v)))))
-----------------------------^--------------------------------------------------
clojure.math.combinatorics/lex-permutations is deprecated
--------------------------------------------------------------------------------
290 |
291 | :else
292 | (multi-perm items)))
293 |
--------------------------------------------------------------------------------
yes, org.clojure/math.combinatorics
Exception in thread "async-dispatch-8" java.lang.OutOfMemoryError
at java.base/java.lang.AbstractStringBuilder.hugeCapacity(AbstractStringBuilder.java:188)
at java.base/java.lang.AbstractStringBuilder.newCapacity(AbstractStringBuilder.java:180)
at java.base/java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:147)
at java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:512)
at java.base/java.lang.StringBuffer.append(StringBuffer.java:275)
at java.base/java.io.StringWriter.write(StringWriter.java:106)
amazing 🙂
Hi, I’m running into a weird issue. I’m using shadow-cljs with lein. and getting this error, despite the fact that querystring
is very much installed my node_modules
shadow-cljs - config: /Users/ericholiphant/projects/fm-ui/shadow-cljs.edn cli version: 2.4.13 node: v10.5.0
shadow-cljs - running: lein run -m shadow.cljs.devtools.cli --npm watch app
Jul 01, 2018 5:00:34 PM org.xnio.Xnio clinit
INFO: XNIO version 3.3.8.Final
Jul 01, 2018 5:00:34 PM org.xnio.nio.NioXnio clinit
INFO: XNIO NIO Implementation Version 3.3.8.Final
shadow-cljs - HTTP server for :app available at
shadow-cljs - server version: 2.4.12
shadow-cljs - server running at
shadow-cljs - socket REPL running on port 56649
shadow-cljs - nREPL server started on port 9000
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[:app] Build failure:
The required JS dependency "querystring" is not available, it was required by "node_modules/url/url.js".
Searched in:/Users/ericholiphant/projects/fm-ui/node_modules
You probably need to run:
npm install querystring
@eoliphant can you please check if you have shadow-cljs
as a dep in your project?
hmm yeah but thats totally not intentional, just remembered that https://github.com/webpack/node-libs-browser has a "polyfill" for "querystring"