This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-08
Channels
- # beginners (36)
- # calva (13)
- # cider (3)
- # clerk (7)
- # clj-http (2)
- # clj-kondo (10)
- # clojure (20)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (5)
- # clojurescript (143)
- # dev-tooling (7)
- # events (1)
- # exercism (1)
- # honeysql (8)
- # hyperfiddle (4)
- # jobs-discuss (15)
- # leiningen (3)
- # lsp (31)
- # off-topic (17)
- # overtone (3)
- # pathom (11)
- # pedestal (11)
- # re-frame (15)
- # reitit (17)
- # releases (1)
- # scittle (2)
- # shadow-cljs (29)
- # squint (1)
- # yamlscript (3)
is it possible to run tests from other test frameworks in calva? i am working on a clojure.test alternative for fun, and would like to be able to run test functions (named, not anonymous like midje) the same way as "Run Current Test" etc
I use custom REPL snippets for this (I run clojure.test
directly, rather than via Calva/CIDER testing infrastructure).
oh clever, that makes sense
Dear Calva-friends, a new release of Calva https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.406 • Calva development: Fix: https://github.com/BetterThanTomorrow/calva/issues/2378 • Calva development: Fix: https://github.com/BetterThanTomorrow/calva/issues/2376 There are no changes to how Calva behaves in this version. It’s @dzedasp who has improved the Calva extension development workflow for windows users. Thanks Dzedas! 🙏 ❤️
Not sure if it's the cause, but I just updated to this and clojure-lsp doesn't start any more - even when manually clicking "Start" via the menu.
Hm, I just needed to be patient; it kicked in after a minute or so, not sure why so slow.
I had a situation yesterday where I think Calva had borked the clojure-lsp download and I had to manually find Calva’s extension folder and remove it. Not the same as you had there, @U7PBP4UVA, but similar symptoms (just that it never stopped spinning). I’m figuring what to do about it, because I don’t know how to reproduce…
It might be a case of slow internet - my experience was that the icon never started spinning when I clicked "Start". I moved my attention elsewhere and when I came back to VSCode, everything was back to normal.
hey - curious if there’s a way with Joyride/Calva to show the expected arguments for the currently highlighted function in the status bar. right now I turn off hovers and use command-K command-I to show it, but would be nice to always get the args there.
That’s a really good question! I think it should work with using the Calva REPL API from #Joyride and call the doc
macro. It produces a pretty predictable output that you can parse and display the signature in a statusbar item.
(with-out-str (clojure.repl/doc +)) => "-------------------------\nclojure.core/+\n([] [x] [x y] [x y & more])\n Returns the sum of nums. (+) returns 0. Does not auto-promote\n longs, will throw on overflow. See also: +'\n"
There’s also the command Trigger Parameter hints that shows the signature as a tiny hover and highlights the current parameter. Default binding is shift+cmd+space
on mac. Could be shift+ctrl+space
on windows/linux.
We could add Calva API for extracting the signature info for a symbol too, without too much effort. Let me know if you want to do it. 😃
Thanks for the Trigger Parameter hint! I never found that because 1Password had overwritten that keyboard shortcut but getting rid of that for this!