This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-31
Channels
- # aws (1)
- # beginners (70)
- # boot (12)
- # calva (45)
- # cider (45)
- # clara (1)
- # cljdoc (10)
- # cljs-dev (133)
- # clojure (315)
- # clojure-dev (2)
- # clojure-europe (2)
- # clojure-italy (16)
- # clojure-nl (1)
- # clojure-spec (23)
- # clojure-uk (19)
- # clojurescript (48)
- # cursive (11)
- # data-science (5)
- # datomic (18)
- # figwheel-main (3)
- # fulcro (18)
- # graphql (14)
- # jackdaw (1)
- # juxt (1)
- # kaocha (1)
- # off-topic (10)
- # other-languages (3)
- # pathom (2)
- # pedestal (7)
- # re-frame (23)
- # reagent (1)
- # reitit (4)
- # ring-swagger (12)
- # rum (4)
- # shadow-cljs (26)
- # specter (6)
- # speculative (12)
- # tools-deps (44)
- # vim (8)
- # yada (2)
does clojure.test.check.clojure-test/defspec
work with shadow-cljs’s built-in test runner?
its using the wonderful https://github.com/bhauman/cljs-test-display now
Hey!
Are require
s outside of ns
s supported in shadow (or cljs, for that matter)
This (admittedly old) blog indicates that it would be possible https://anmonteiro.com/2016/10/clojurescript-require-outside-ns/.
When trying it on a cljc file, it fails with:
CompilerException: java.lang.RuntimeException: Feature should be a keyword: (require (quote [clojure.spec.alpha])), compiling:(.../spec.cljc:12:35)
regardless of it being wrapped in a #?:clj
, #?:cljs
or nothingno they are not supported since it doesn't provide any feature you wouldn't get by putting in in the ns
in the first place
Ok, thanks! That is precisely what I'm trying to achieve... is it possible with some other technique?
officially no, unofficially https://shadow-cljs.github.io/docs/UsersGuide.html#_conditional_reading
Hi, I am trying to get shadow-cljs setup running. I am using Cursive and would like to connect its REPL to the browser session. After starting shadow-cljs watch app, I get: shadow-cljs - nREPL server started on port 9000 When I connect to it, it is a Clojure REPL instead, not connected to browser. (Things like (js/console.log "Test") fail with RuntimeException.)
@steedman87 no. repl
automatically calls nrepl-select
when in nrepl context
I see, that is little bit confusing.
Any way to automate this, so I don't have to type it on every start?
I'm not sure if Cursive has this built in, but in Emacs/CIDER when I run my ClojureScript jack-in command in a shadow-cljs project, it asks me which build I want to select and runs that command for me
@pavel.klavik you can create a custom REPL command and bind it to a key
ok, that solution is good enough
btw. the tool looks great, it is good that I finally can easily add JS libraries to the project 🙂