This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-22
Channels
- # announcements (2)
- # architecture (33)
- # babashka (4)
- # beginners (445)
- # bristol-clojurians (10)
- # calva (23)
- # cider (43)
- # clj-kondo (36)
- # cljs-dev (13)
- # cljsrn (20)
- # clojure (136)
- # clojure-argentina (8)
- # clojure-dev (1)
- # clojure-europe (18)
- # clojure-germany (1)
- # clojure-italy (5)
- # clojure-nl (45)
- # clojure-spec (66)
- # clojure-uk (29)
- # clojurescript (69)
- # conjure (157)
- # cursive (2)
- # datomic (216)
- # emacs (10)
- # exercism (4)
- # figwheel-main (8)
- # fulcro (30)
- # graphql (21)
- # hoplon (5)
- # kaocha (7)
- # leiningen (3)
- # luminus (4)
- # music (1)
- # off-topic (24)
- # pathom (10)
- # re-frame (19)
- # reagent (11)
- # reitit (16)
- # remote-jobs (1)
- # ring-swagger (5)
- # rum (7)
- # shadow-cljs (125)
- # spacemacs (8)
- # sql (9)
- # tools-deps (12)
say I add a new dependency to the project.clj. Should I restart emacs to activate that package ?
emacs is just running clj/lein/shadow/boot underneath. just have to restart that process
It had it, not anymore. Now you’ll just see a warning if you try to use it. We’ll implement hotloading in CIDER one of those days, but it’s not a high priority right now.
I kinda feel things are quite separated. why isn’t such functionalities being incorporated into cider itself?
it seems like the ask is for one jar instead of two jars? not sure what you gain. its nice that its optional i think. i don't actually use it
cider-quit seems not make it. it restarts the repl connection, not the repl server itself.
When I use M-x cider-refresh, it says that no clojure repl found in the current buffer
Yeah, most likely you have hot refresh and you need to run code to do something with that new code. Eg Re-run a function
C-c C-t n doesn't work. I get clojure only operation requested in clojurescript buffer
I haven't take a look yet. But I saved this link to do some keybinding that would run tests in cljs: http://adereth.github.io/blog/2014/05/29/custom-clojure-evaluation-keybindings-in-emacs/
(defun run-cljs-test-in-ns ()
(interactive)
(cider-interactive-eval "(cljs.test/run-tests)"))
(spacemacs/set-leader-keys-for-major-mode 'clojurescript-mode "o t n" 'run-cljs-test-in-ns)
This allow me to run the tests in the buffer using key-bindings, but it does not do any formatting or reporting, you must have the repl open to see the results.
Is there a plugin to do the formatting or reporting? If not, then how can I write one? Surely it can't be that hard, right? Just highlight every thing that's PASS as green and FAIL as RED etc., only I need help on where to start. And then to display everything in a new buffer, like cider test-runner does. Well, to start with, suppose I want the display the results of (cljs.test/run-tests) to output to a new buffer in cider mode, and that I can use "q" to quit that buffer, that would be a good start...
I imagine there are commands for highlighting and formatting the buffer. You will probably have to parse the output of the cljs.tests/run-tests
to do it. But I don't know this commands.
I'm new to hacking Emacs, so I can't help much, sorry.
There’s actually https://cljdoc.org/d/lambdaisland/kaocha/1.0-612/doc/5-running-kaocha-from-the-repl#in-buffer-eval in Kaocha’s docs.
Well, the simplest approach would be to just run the tests via the eval
op and parse the output of the report. It’s not complex, but no one expressed much interest to work on this.
With Clojure the integration was much simpler - as we could simply tweak the test runner directly and run whatever we wanted server-side, but we can’t do the same for ClojureScript.
There’s actually https://cljdoc.org/d/lambdaisland/kaocha/1.0-612/doc/5-running-kaocha-from-the-repl#in-buffer-eval in Kaocha’s docs.