This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-20
Channels
- # aleph (12)
- # announcements (7)
- # aws (6)
- # babashka (36)
- # beginners (161)
- # boot (1)
- # calva (6)
- # cider (21)
- # clj-kondo (13)
- # cljs-dev (28)
- # cljsrn (1)
- # clojars (3)
- # clojure (13)
- # clojure-colombia (1)
- # clojure-europe (10)
- # clojure-spec (12)
- # clojure-uk (47)
- # clojuredesign-podcast (2)
- # clojurescript (67)
- # datascript (8)
- # datomic (21)
- # duct (3)
- # emacs (6)
- # events (1)
- # fulcro (6)
- # graalvm (98)
- # jobs (1)
- # kaocha (18)
- # luminus (1)
- # malli (7)
- # off-topic (56)
- # pathom (5)
- # re-frame (18)
- # reagent (3)
- # reitit (9)
- # remote-jobs (3)
- # rewrite-clj (10)
- # ring (1)
- # shadow-cljs (155)
- # spacemacs (2)
- # sql (5)
- # tools-deps (27)
- # vim (86)
- # xtdb (2)
Anyone able to help me figure this out? https://gist.github.com/Sose/233cc8df521d96acf753cd351d9b1652
I tried different Java versions.. also, I can run it fine, just can't build the jar. it works if I remove either +re-frame or +shadow-cljs, but with both I can't build the jar
Seems like an issue with dependencies, similar to this one: https://github.com/thheller/shadow-cljs/issues/488#issuecomment-486732296 It probably makes sense to ask at #shadow-cljs You can also create an issue it the Luminus template bugtracker.
indeed this is caused by outdated dependencies. should be
[com.google.javascript/closure-compiler-unshaded "v20191027"]
[org.clojure/google-closure-library "0.0-20191016-6ae1f72f"]
[org.clojure/google-closure-library-third-party "0.0-20191016-6ae1f72f"]
one of the reasons why I recommend running shadow-cljs standalone so you don't have to deal with this. 😛
@U05224H0W Is there a way to get the list of correct dependencies automatically?
otherwise just look at the shadow-cljs project.clj https://github.com/thheller/shadow-cljs/blob/master/project.clj#L20
Ah, I see. Piping it into less
hides the "override" messages.
Also, is :deps true
susceptible to this issue?
But if shadow-cljs requires it, why would anyone want to require a specific version explicitly?
and some libraries that shouldn't have a clojurescript dependency have one, thus bringing with it the closure compiler
in shadow-cljs.edn it automatically enforces that nothing else can depend on clojurescript by adding automatic exclusions
Although the dependencies in deps.edn
are listed in a map, so it's a bit strange to talk about order here at all. But maybe it's an array-map
...
well I guess in lein depth matters so the more direct the higher change of getting in
Thank you both so much
Threading like a needle, not OS threads
oh yeah I just read about it. it's super cleaver. I mean, why don't every language has this?
some of them have it, in a form of |>
What are people using to interop with js promises? A library or just plain cljs?
@grounded_sage I've used promesa which is pretty nice
hi all!
anyone else has the problem with figwheel.main, if when launching the build&repl the first build fails cause of some error in my code the reset
action won't do anything. I always in this scenario have to fix the causing error and restart the build&repl which is slow..
Any advice?
@grounded_sage plain cljs works fine - there's a patch for interop with core.async in the works
Hi, is there a standard way to include assets (CSS, Images) to a CLJS dependency? Basically I want to write re-frame components in separate library from my main project. But the component library also has CSS (SCSS) that needs to be included.
Something like garden? https://github.com/noprompt/garden
I would have to write garden instead of SCSS. Sadly that isn’t really a solution for my problem (business related). But thank you for the suggestion
you can include the files in the jar of the dependency, then have a process to copy them from the class path into your app's static resources
Does clojure/script have an answer for local-first software? https://news.ycombinator.com/item?id=21581444
I'd say this is not a Clojure specific concern, but rather a question of how something is built e.g. does it rely on storing data locally or in a remote service.
That's true. I was just thinking of if there was something like PouchDB/CouchDB but for clojure/script / datomic / datalog
It depends 😉 If you're building a collaborative editor or something in that vein - edit script or more powerful CRDT-based solutions might be the way to go. If it's only keeping single user's local state persisted, then even something like browser's local storage might be enough. I'm not aware of solutions similar to CouchDB except for... Just using Couch/Pouch from Clojure 🙂
a newly created app via lein new luminus myapp +mongodb +re-frame +swagger +auth
in which I've activated figwheel via the emacs repl does not consistently show changes or additions to routes on the swagger-ui webpage made in services.clj... thoughts?
side note: I am unclear on the slackiquette in posting such a question here as opposed to #luminus where there is likely many less eyeballs (albeit more topically skilled ones) but I'm open to education on that.
also, cross-posting is a temptation when I'm eager to resolve an issue, but I'll bet that's not considered a good thing to do.
regarding the issue, I noticed that a new endpoint followed by a save will appear on manual page reload and then additional endpoints and changes inconsistently; evaluating the whole buffer in emacs doesn't seem to make a difference; either way figwheel doesn't reload the page (I don't really expect it to but am not sure why I don't; seeing changes after a manual refresh is good enough for me... but of course a figwheel hot reload would be, well, hot); once a new route or changes no longer appear on the swagger-ui webpage changes/additions do not appear until repl restart.
it's crossed my mind that route changes don't get evaluated until a repl restart for whatever reason, but I don't know.
there’s a number of people doing things that seem related to building local-first software in the clojure + datalog area