Fork me on GitHub
#cursive
<
2017-11-28
>
cfleming01:11:15

Cursive 1.6.2 is out! No change for those of you on the EAP program, it’s just a stable release of 1.6.2-eap3.

sahilm07:11:24

How do I see javadocs for Java constructs? I can easily see Clojure docs using ctrl+j but doing the same for Java constructs does nothing.

cfleming08:11:06

@sahilm It should work just like that for Java too. Can you send a screenshot of how you’re trying to use it?

curlyfry10:11:47

@cfleming The new update looks very nice! Is it possible to give your own definitions of functions that "define" keywords? I'm using a custom reg-event function that wraps the re-frame ones.

cfleming22:11:12

Customise the resolution as described here: https://cursive-ide.com/userguide/macros.html - there’s a new option “Specify…” (not in the doc yet) which will allow you to choose any macro/keyword form to resolve as.

curlyfry08:11:56

That's great! Unfortunately I can't seem to get it to list that option. I put my cursor on the function name and press alt+enter, but all I get is "Configure indentation for..."

curlyfry09:11:05

Does it have to be a macro in order to be added? I would prefer not to alter my code to get the 'Specify' functionality to work.

cfleming21:11:18

Yes, you’re correct - I need to fix this, and will do so for the next build (should be out soon, I want to get some fixes and improvements to this functionality out ASAP). The issue is that resolution was previously only able to be customised by macros, but things that register via keywords don’t have to be, they can just be functions. But I’d rather not offer this option for all functions - I’ll investigate this and fix it soon.

curlyfry22:11:22

Cool, thanks!

zylox22:11:15

that will save me and my team a lot of time. +1

zylox22:11:34

no more digging for that xml file hopefully

cfleming23:11:49

@zylox Yes! I’m working right now on https://github.com/cursive-ide/cursive/issues/1885, which will make sharing those settings with your project easier.

cfleming23:11:16

I really wanted that in 1.6.2 too, but I had to get it out before IDEA 2017.3 went GA

cfleming23:11:31

1.6.3 should be out soon with that change, assuming it works ok.

zylox23:11:36

should be interesting. we have well over 100 clojure projects though so i dont know how much it will fit our needs if im reading this right

zylox23:11:17

seems the linked issue deals primarily with storing those settings in a project.

cfleming23:11:14

Yes, that’s right. It may not work so well in your case, then. I’ll try to get import/export in there too, so at least you can create a scheme once, export it and then teammates and new hires can just grab that and import it.

cfleming23:11:59

With that many projects, I assume you’d probably keep the custom resolution in your IDE scheme so it works over all projects.

zylox23:11:36

both are certainly useful. our use case is definitely not the standard one. right now i have a gist sitting out there on our internal github with the xml file. so anything is an upgrade