Fork me on GitHub
#cursive
<
2018-01-25
>
nblumoe08:01:00

Is there a way to teach cursive about bindings from clojure.core.match? For me, it shows the bound variables from patterns as cannot be resolved

hagmonk08:01:03

@nblumoe often wondered the same thing, using core.match leaves little yellow failed inspection turds all over my buffer :)

danielcompton08:01:21

@nblumoe there is a way to say to cursive that this macro behaves like one it knows about (`let`?)

danielcompton08:01:51

It involves editing an internal config file somewhere, I can’t remember where though

nblumoe08:01:38

Thanks, I just checked the light bulb menu and indeed one can make it “resolve as let“. But that alone doesn’t help apparently. Not sure if any of the options will. But this might be the way to go. Investigating….

nblumoe08:01:07

I am afraid, this won’t cover match and the following applies: "This support will work in a lot of cases, but we’ll be adding more sophisticated support soon to allow users to help Cursive understand more complicated forms."

nblumoe08:01:14

There is the “Specify…” option which I don’t quite understand. Maybe @cfleming could quickly explain it. Seems not to be covered in the docs (yet)

danielcompton08:01:32

@nblumoe is there another form that is closer to the macro? The undocumented part is that you can hack an internal file to make it match any macro, not just the five that are specified

cfleming09:01:28

@danielcompton @nblumoe Yeah, sadly Cursive doesn’t understand anything that looks like core.match.

nblumoe10:01:20

Would be great!

cfleming09:01:09

I’ll see if I can add support soon, it’s a library I’ve been meaning to support for a while now.

cfleming10:01:15

@hiskennyness No, that sounds very strange, and very hard to reproduce.

cfleming10:01:28

I don’t have any good ideas unfortunately.

cfleming10:01:51

@wilkerlucio Try Appearance &amp; Behavior-&gt;System settings-&gt;Synchronise files on frame deactivation

cfleming10:01:06

If you turn that off you may have to manually synchronise a fair bit when files have changed.

wilkerlucio13:01:05

thanks, I think that works 🙂