This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # 100-days-of-code (3)
- # announcements (14)
- # beginners (100)
- # calva (20)
- # cider (50)
- # cljdoc (29)
- # cljs-dev (6)
- # clojure (78)
- # clojure-europe (1)
- # clojure-italy (8)
- # clojure-losangeles (1)
- # clojure-nl (11)
- # clojure-uk (108)
- # clojurescript (23)
- # code-reviews (5)
- # cursive (7)
- # datomic (11)
- # devops (1)
- # editors (1)
- # figwheel-main (65)
- # fulcro (114)
- # hoplon (31)
- # hyperfiddle (1)
- # juxt (4)
- # lein-figwheel (2)
- # nrepl (13)
- # off-topic (72)
- # re-frame (35)
- # reagent (9)
- # shadow-cljs (42)
- # spacemacs (2)
- # specter (5)
- # tools-deps (60)
- # yada (2)
okay, now I started a shadow repl from the terminal on the demo project (minimal-shadow-cljs-browser) and it seems to be working. Now I want to switch over to cider, but when I :cljs/quit out of it and go to cider-jack-in it says the server's already running and doesn't give me a repl buffer in emacs. I even tried reloading the page and restarting the shadow server. How am I supposed to quit out so I can come in from cider without having to reboot my whole machine?
error in process sentinel: Could not start nREPL server: shadow-cljs - config: /home/kevin/tmp/minimal-shadow-cljs-browser/shadow-cljs.edn cli version: 2.6.6 node: v8.11.1 shadow-cljs - connected to server server already running
also, section 4.3.1 of the user guide says:
but the cider's man page says:
If the popular cider-nrepl is found on the classpath it will be added automatically. No additional configuration required.
so, should I remove the cider-nrepl from my system to have it work with shadow or is that the nrepl shadow is looking for?
Much of CIDER's functionality depends on the presence of CIDER's own nREPL middleware. Starting with version 0.11, When cider-jack-in (C-c C-x (C-)j (C-)j) is used, CIDER takes care of injecting it and its other dependencies.
shadow-cljs tests with
karma (3.0.0), how do I run only a single
deftest (and rerun when files change)?
Workaround - replace all
#_(deftest and comment in the tests you want to focus on.
Please let me know if there’s a better way.
There is no better way at the moment, I think. Other tools analyze the meta on the
deftest (for instance
^:focus) but it is not a clojure.test feature
If you are at the REPL you can use
clojure.test/test-var and friends though
this is not possible with
karma currently no. but you can always just fire up a REPL and run a singular test.
given how karma works it probably won't be a very efficient way to test a single var as all the code still has to be loaded regardless
@thheller all good. Are the plugin docs in the guide? With respect to the Gatsby stuff. I agree it has to be a full framework. I’m investing in Rum due to SSR and open state management. Was more interested in the common implementation details that could be shared if any.
@vigilancetech if cider starts the shadow-cljs server it will add the middleware. it you start it separately you have to add it. I recommend adding it yourself since you then don't hve to worry about if cider adds it or not. adding it twice is not a problem.
I don't understand what you mean by quitting the REPL and cider-jack-in. those are two completely different things
there can also be many connections to a shadow-cljs REPL so you don't have to quit one for the other to take over
and then using
cider-connect as describe here https://shadow-cljs.github.io/docs/UsersGuide.html#cider
Hello, how do i use npm packaged css in clojurescript app? I have installed
bulma and 'bulma-react-components` npm packages and am using bulma components in my app by requiring it as
["react-bulma-components" :as bulma], an i can see the component part working. Now, how do i import the css in my app?
Do i have to include a
<link rel="stylesheet" href="..." /> or is there a better way to load npm-packaged css module in clojurescript through shadow-cljs ?
@neupsh shadow-cljs does not process any CSS yet so you have to get it into your page by other means. I typically use the
node-sass cli or just copy the css manually into my
the server part I would recommend something more tailored for CLJ development, ie.
I use lein works fine with http-kit and compojure (shadow-cljs). I just want to use ws to transfer data between parts. Thanks! I check it.
I am using Highcharts with shadow-cljs and am trying to get the no-data-to-display plugin to work. The docs say to add
modules/no-data-to-display.js to your imports. I did this by adding
["highcharts/modules/no-data-to-display"] to my
:require but that doesn't appear to work. I'm curious if there is any sort of initialization that I need to do to get the plugin to work. Any thoughts?
If I change the require to
["highcharts/modules/no-data-to-display" :as foo] and run
(js/console.log foo) it logs a function, not a map like most npm modules do.
I tried with no args and I got an error. Took a guess and called it like this
(foo highcharts) where
["highcharts/js/highcharts" :as highcharts] and it worked. Very weird. In their examples all they do is add
<script src=" to their
@wilkerlucio just published
2.6.11 which should now properly use the REPL ns even for CLJS
I did npm -g up shadow-cljs from root but it still says: server version 2.6.6. Any idea what I did wrong?
@vigilancetech are you using the lein integration? if you are check the version on the project.clj