This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-11
Channels
- # announcements (16)
- # aws (4)
- # babashka (30)
- # beginners (58)
- # bristol-clojurians (4)
- # cider (9)
- # clj-kondo (2)
- # clojure (229)
- # clojure-europe (25)
- # clojure-gamedev (1)
- # clojure-italy (4)
- # clojure-nl (13)
- # clojure-sanfrancisco (1)
- # clojure-uk (97)
- # clojured (7)
- # clojurescript (27)
- # code-reviews (2)
- # cursive (30)
- # data-science (39)
- # datomic (14)
- # emacs (12)
- # events (2)
- # fulcro (6)
- # graalvm (8)
- # graphql (14)
- # jackdaw (10)
- # jobs (2)
- # lambdaisland (5)
- # malli (4)
- # off-topic (28)
- # protorepl (13)
- # quil (7)
- # re-frame (2)
- # reagent (1)
- # reitit (3)
- # remote-jobs (5)
- # ring-swagger (1)
- # shadow-cljs (72)
- # sql (4)
- # tools-deps (182)
- # uncomplicate (4)
- # vim (9)
- # xtdb (19)
hey y’all, i’m building a clojurescript library and want to run its tests using CIDER. what’s the best way to go about this?
@nonrecursive I'm assuming you want to do something REPL driven - I think probably just some keybinding to send the appropriate expressions would probably suffice - (test-ns ...)
etc.
@dnolen thanks 🙂 I think my problem is that I’m not sure how to start a browserless CLJS REPL with um a server I can connect to- like, I can start a REPL in a terminal but am not sure how to get cider to connect to it 😕
@nonrecursive cider-jack-in-cljs?
@nonrecursive I would be very surprised if this isn't solved Figwheel probably works quite well here, and I'm assuming Shadow too
inf-clojure/cljs also worked quite well last time I checked which is what I preferred when I was still using Emacs heavily for dev
Shadow has a bit of info about how to get various REPLs, including nREPL https://shadow-cljs.github.io/docs/UsersGuide.html#_server_options
Hello, for the second time I’ve been bitten by this line:
https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/core.cljc#L2043
Could we replace it with (core/seq? head)
?
This way, when emiting a defrecord form from a macro, sigs could be of type Cons which seems to make sense.
if you wanted to ask this at https://ask.clojure.org we can get it logged as a jira
@U064X3EF3 done ! thank you. https://ask.clojure.org/index.php/9092/does-cljs-core-defprotocol-sigs-arguments-could-also-be-cons
sounds right to me
I’m currently porting some clj code to cljc, and my clojurescript is a bit rusty… Can someone remind me how to essentially port this (simplified example) to clojurescript?
(defmulti my-multi (fn [a b] [(type a) (type b)])
(defmethod my-multi [java.lang.String java.lang.String] [a b]
:do-stuff)
I’m struggling trying to find the literal value for the class String in cljs
(type "foo")
prints as #object[String]
so I’m guessing there isn’t a class literal for them
thanks… I also need (guessing) js/Object
and the rest of the types are in cljc records. Can I just reference those directly? e.g. some-random.namespace.Foo
?
ahh yes I remember because you require not import.
Thanks :thumbsup:
@andrzej.fricze @dnolen I was hoping to do it without shadow - looks like cider-jack-in-cljs does it 😄 thank you both very much!
hi, I’m using Highcharts-react-official https://github.com/highcharts/highcharts-react in a re-frame app, someone knows how can I get the chart instance in order to call the showloading() method? thanks
hi @U2FRKM4TW, cross-posting is post on different channels? (if it is, sorry, I didn’t know it was something ‘rude’)