Fork me on GitHub
#cursive
<
2018-09-24
>
hcarvalhoaves17:09:50

Hi! I'm using schema.core/defmethod, how can I customise Cursive to make it aware of the arguments scope like a regular defmethod? (I see the Edit intention settings but I'm not sure how to use it, and docs on the website don't mention it).

rarous17:09:13

Exactly the same as the thread above…

hcarvalhoaves17:09:28

Actually, it isn't, since none of the built-in options is correct for this form.

hcarvalhoaves17:09:26

But cursive somehow understands the schema.core/defn macro out of the box... so somehow, somewhere, it should be possible to customise.

cfleming10:09:37

@U1LCB75M2 That’s a tricky one, since the built in defmethod won’t work for that. I’ll add support for that, I missed it when adding schema support.

👏 4
hcarvalhoaves14:09:18

@cfleming by the way, do you plan on exposing a way to customise those macros? I would be fine adding it myself if the plugin exposed some hook to do that.

cfleming14:09:43

@U1LCB75M2 Yes I do, but it’s a long term project due to some bad architectural choices made early on which are proving difficult to fix.

hcarvalhoaves14:09:17

ok, hope you can find the time to do it!

bmcferren20:09:09

Hi @cfleming By chance did you have any fortune recreating that evaluate issue with the versions I listed? The feature is a big time saver. I would be so grateful for help you could share.

cfleming10:09:16

@UCEKLQ24T I didn’t sorry but I’ll look at it before the next EAP. I’ve filed this so I don’t forget: https://github.com/cursive-ide/cursive/issues/2054

cfleming10:09:56

One thing to check - the symbol you’re trying to evaluate is actually instantiation-hash, right? i.e. with a - rather than a _

bmcferren13:09:54

it is an underscore _ I use underscore in order to quickly discern variables from functions and I use underscores instead of hyphens out of scorn from bugs Id experienced earlier in the angular side of my career. I just checked another variable that doesn't involve an underscore and the same issue arises

bmcferren13:09:59

I did notice that (+ 1 1) does evaluate

bmcferren13:09:14

so it seems related to variables and scope

asilverman23:09:47

Hi everyone, In my work environment, we use IntelliJ with Cursive to develop clojure microservices. Are you familiar with any good tutorials that exercise this IDE?

bill00:09:31

Pedestal has some decent getting started guides http://pedestal.io/guides/index#_getting_started