This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-20
Channels
- # announcements (1)
- # babashka (74)
- # beginners (84)
- # bristol-clojurians (3)
- # cider (2)
- # clara (14)
- # cljdoc (18)
- # cljsrn (7)
- # clojure (29)
- # clojure-australia (4)
- # clojure-europe (34)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-seattle (1)
- # clojure-uk (33)
- # clojuredesign-podcast (2)
- # clojurescript (33)
- # code-reviews (17)
- # core-async (10)
- # cursive (8)
- # datomic (21)
- # depstar (45)
- # dirac (4)
- # duct (10)
- # emacs (1)
- # fulcro (8)
- # jackdaw (2)
- # jobs (1)
- # kaocha (11)
- # leiningen (2)
- # off-topic (8)
- # pathom (35)
- # pedestal (3)
- # protorepl (13)
- # rdf (39)
- # re-frame (23)
- # reagent (2)
- # releases (1)
- # remote-jobs (6)
- # reveal (2)
- # rewrite-clj (18)
- # shadow-cljs (51)
- # sim-testing (2)
- # spacemacs (2)
- # tools-deps (37)
hey guys, how do I make figwheel auto-testing work in my lein figwheel project? I am getting this error from project.cli
and was following this guide https://figwheel.org/docs/testing.html
63 :css-dirs ["resources/public/css"] ;; watch and update CSS
64 :auto-testing true
^--- The key :auto-testing is unrecognized
looks like that in lein-figwheel (that I thought was the same as figwheel) they took away the option…. https://github.com/bhauman/lein-figwheel/wiki/Configuration-Options
lein-figwheel is I think properly deprecated? or at least, figwheel-main (which I think http://figwheel.org are docs for) is the latest version
I got this bundling stuff working with figwheel-main, and :target :bundle , so now I’m ready I think to use an npm library, but not sure how to include this
should I also use :exclusions [cljsjs/react cljsjs/react-dom] and use those in my package.json? Do i also have to (:require [react] [react-dom]) then
hello, can someone point me in the direction of how can i better customize a semantic-ui-react Dropdown component (especially the options/children ?! ) ? • i want an right-positioned "delete icon" for each option, so far the icon is by-default in the left-side of the "text" prop; Thanks.
(let [opt [{:value "apples" :text "Apples" :icon "delete"])}
{:value "oranges" :text "Oranges"}
{:value "grapes" :text "Grapes"}]]
[:> ui/Dropdown
{:fluid true
:selection true
:search true
:allow-additions true
:options opt
}])
I would like to have:It's not really a ClojureScript question. But the API docs at https://react.semantic-ui.com/modules/dropdown/ mention renderLabel
.
Thanks. it also mentioned that "Only applies to multiple
Dropdowns."
Well, it's something you'd have to take up with the guys behind semantic-ui-react
, because CLJS cannot do anything about it.
thank you
Hello, I had a probably-terrible idea, but if it works it might make something terrible I have to do every day, less terrible. Summary: mathpunk wants to figure out if it's feasible or desirable to sneak a repl into selenium-webdriver's executeAsyncScript function, to turn errors while running protractor scripts into data and generally power up the end-to-end tests we write. Details: <thread>
If I understand right, code gets into the browser right around here https://github.com/SeleniumHQ/selenium/blob/004be30a0ac7b18e90583145c9b7ee245465554d/javascript/node/selenium-webdriver/lib/webdriver.js#L328
so I'm asking: Is there a way that I could use a repl to like.... I dunno, • pause the script to examine errors • parse error data into something more meaningful, since I know a lot about the application and what could be going wrong as the app code drifts from the test code and I gotta go figure out what happened • recover from common errors
I find that when I have a repl, I learn very quickly about what is truly going on. So my intuition tells me that if it is possible to drop a repl into webdriver, it might empower me to make our testing pipeline a whole lot better
This isn't exactly the answer you were looking for, but if you want to find a way to sneak a REPL into any webpage: https://chrome.google.com/webstore/detail/chrepl/ablpgchfbbfachdiakmieocbdgflgfjj
So... I'm curious about this code from cljs.core
(defn ^number *
"Returns the product of nums. (*) returns 1."
([] 1)
([x] x)
([x y] (cljs.core/* x y))
([x y & more] (reduce * (cljs.core/* x y) more)))
Seems... infinitely recursive.Is it a protocol kinda thing or a dispatch somehow?
confusing but
(core/defmacro ^::ana/numeric *
([] 1)
([x] (core/list 'js* "(~{})" x))
([x y] (core/list 'js* "(~{} * ~{})" x y))
([x y & more] `(* (* ~x ~y) ~@more)))
ohhhhh
cljs.core
is the Clojure namespace
🙏 thank you