Fork me on GitHub
#cursive
<
2021-09-28
>
emccue13:09:12

I know its old news, but is there any progress on letting us teach cursive about new macros? We have a particular thing we do in our code base that is a lot of boilerplate, but we haven't been able to make a macro because we can't find a way to fit it into any of the built in forms. (and losing symbol resolution/click to definition would negate a lot of the benefit of what we do)

4
emccue14:09:12

As far as I can see the solutions that would work would be • A way to do this and say "this macro will give these symbols with docstrings based on this logic" similar to how clj-kondo handles it with hooks (if cursive can just take info from clj-kondo that would do just dandy) • Stub generation for all the places we use the macro. This is only done for a whitelist of public libraries, not a knob that has been offered to users. • Running repl supplements static analysis. Cursive has been pretty clear about not wanting to support this

cfleming09:09:52

There’s still not much to support this, sorry. However fixing it properly has been held up by some daft architectural choices I made a long time ago, but I’ve recently made some steps towards fixing those.

imre19:10:42

@U0567Q30W that's great to hear. Do you see a possibility of any visible improvements in this topic in the next year or so?

emccue01:10:16

I know you have a ton on your plate, but if there is anything that can be done to help with this I would be happy to

Jim Strieter19:09:01

Is there any way to use Intelli-J/Cursive to generate clojure bindings for a local java project?

the-alchemist14:09:41

define "Clojure bindings"?

cfleming09:09:40

Yes, I’d like to know what you’d like to happen here, as well.