Fork me on GitHub
Jakub Holý (HolyJak)08:06:50

What do I need to do so that Cursive understands (with-test (defn myfn [] ...))? Resolve as ... - as what? Thank you! I looked at but don't see it.


@cfleming The clojuredocs integration (and learning about the quick documentation button) is so nice. Been doing some C programming lately on a side project and it's amazing how much I miss Cursive when working on it.

Jakub Holý (HolyJak)05:06:09

What is the quick documentation button, please?


@holyjak Check the View | Quick Documentation menu, that will have the keybinding next to it. Although in my case it says F1 but the one I mostly actually use is Ctrl-J. If you search for “Quick documentation” in Preferences | Keymap that will show all the bindings in your current keymap.

👍 4

@holyjak You can resolve with-test as clojure.core/do, which will index myfn properly.

👍 4

That’s just for the indexing inside with-test though, does that also do some testing function?

Jakub Holý (HolyJak)05:06:03

Not sure I understand? Yes, with-test contains the defn and tests for it, ie it does implicitly creates a deftest


@shaun-mahood Thanks! Yeah, I find it really useful as well.


Are you using CLion or AppCode for the C project?


@holyjak Oh, I see how with-test works (I think, the doc is pretty terse). I’m not sure whether that would require further support from Cursive, please let me know if it works.