Fork me on GitHub
#cursive
<
2019-06-05
>
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 https://cursive-ide.com/userguide/testing.html but don't see it.

shaun-mahood14:06:46

@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?

cfleming21:06:15

@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
cfleming21:06:38

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

👍 4
cfleming21:06:13

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

cfleming21:06:41

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

cfleming21:06:02

Are you using CLion or AppCode for the C project?

cfleming21:06:52

@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.