This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-21
Channels
- # announcements (8)
- # beginners (22)
- # calva (42)
- # cider (2)
- # clj-kondo (1)
- # cljdoc (3)
- # clojure (63)
- # clojure-chicago (1)
- # clojure-uk (29)
- # clojurescript (16)
- # clojureverse-ops (2)
- # core-matrix (6)
- # cursive (1)
- # datomic (23)
- # emacs (1)
- # heroku (2)
- # luminus (1)
- # off-topic (47)
- # pathom (1)
- # planck (3)
- # re-frame (4)
- # reitit (1)
- # rewrite-clj (5)
- # shadow-cljs (47)
hi, i think this issue might not have been resolved as expected: https://github.com/thheller/shadow-cljs/issues/483
even after upgrading to version 2.8.32, i still am only able to pull dependencies when i specify proxy configuration via the shadow-cljs.edn file in project root
> shadow-cljs compile app
shadow-cljs - config: /Users/hch429/side-projects/clojurescript/my-web-app/shadow-cljs.edn cli version: 2.8.32 node: v10.12.0
shadow-cljs - updating dependencies
shadow-cljs - dependency update failed - Failed to collect dependencies at quil:quil:jar:3.0.0
just got this warning, but sounds weird:
------ WARNING #1 - :invalid-arithmetic ----------------------------------------
...
--------------------------------------------------------------------------------
32 | (let [formatted-points (misc/cents->display points)]
33 | (if (pos? points)
34 | (str "+ " formatted-points)
35 | (str "- " (- formatted-points)))))
-----------------------^--------------------------------------------------------
cljs.core/-, all arguments must be numbers, got [#{string clj-nil}] instead
--------------------------------------------------------------------------------
Is there a different way to get a negative version of a number other than that?it sounds like the issue is you're passing a string into -
. why are you doing that?
its a formatting thing, its rendering a string with "- 45" for example, its adding the space between the minus and the number (and has to invert the number to avoid the minus duplicated)
seems like that got inference lost
sounds like you'll want to invert the number before converting to string if you want to appease the warning
just realized the warnings is accurate indeed, formatted-points
is a str
out of misc/cents->display
, so calling -
on it is wrong
after running:
npx shadow-cljs watch frontend
I get:
shadow-cljs - starting via "clojure"
Executable 'clojure' not found on system path.
I'm not sure where to start, any thoughts?and, I do!
I wasn't quite sure how to do the second... fumbled through https://raphamorim.io/using-clojure-as-cli
but that isn't probably what is meant by installing clojure on my system.
ah, only that it was part of a project I cloned...
ah ok... way over my head... but learning...
I want a fun way to play with webgl stuff interactively...
and, you know, see pretty things in my browser.
setting :deps to false spewed promising things, then
The required namespace "applied-science.js-interop" is not available, it was required by "gespensterfelder.cljs"
the problem:
shadow-cljs can usually be in charge of downloading, providing and building clojurescript libraries. in that case, you put your dependencies in the shadow-cljs.edn
file.
the author has elected to tell shadow-cljs, “Hey don’t bother managing my dependencies for me. Instead, use my system’s clojure
installation and feed it the deps.edn file in my project to download and provide dependencies for me.”
ah ok... yeah... :deps false for me, then, probably, in general.
I want to make interactive webgl things that update from websocket/SSE events and so on...
and develop interactively.
I actually don't understand why anyone would not want to be doing that today.
OK, so you can either:
1. install clojure
on your system. if you have brew setup, it’s as easy as brew install clojure
2. use this shadow-cljs.edn file instead: https://gist.github.com/Lokeh/e8e1ec026e1021f1b1818efd79d7cbef
I added a :dependencies
key + value in the shadow-cljs.edn file based on the deps.edn in the repo you posted: https://github.com/jackrusher/gespensterfelder/blob/master/deps.edn
oh nice!
compiling... (eyes bulging in anticipation)...
yay!!😀