Fork me on GitHub
#cursive
<
2019-11-22
>
sooheon04:11:16

Can anyone confirm that Navigate > Test used work immediately without needing confirmation if a match existed? For the most recent few versions, Cmd-Shift-T always gives me a context menu, where the first choice has no effect. So if hit it in a impl file, I see a menu with two choices, where the first choice leaves me in the impl file, and the second option is what used to be default (Create new test…, etc)

cfleming05:11:36

I’ll try to reproduce that.

slipset09:11:15

Ho! I've been doing some refactoring work in cursive lately, mainly because Ciders find-usages is b0rken for our project.

slipset09:11:09

But while find-usages is great, call-hierarchy (https://github.com/cursive-ide/cursive/issues/475) is really what I'm after.

slipset09:11:58

From a outsiders view, this should be somewhat trivial, as it's basically a recursive call to find-usages and displaying the tree?

cfleming07:11:50

I suspect it might be a bit more than that, but I’m not sure how much more - I’ll take a look.

slipset09:11:24

And it would add much value for me 🙂

Jakub Holý (HolyJak)19:11:30

Can I do something to stop Cursive complain about "cannot be resolved" on java-time's potemkin-imported vars from other jt namespaces? (i.e. there is java-time.seqs/iterate that is imported to be accessible via java-time/iteratebut Cursive doesn't get it, b/c it uses static analysis. See https://github.com/dm3/clojure.java-time/blob/master/src/java_time.clj#L8

borkdude20:11:28

I meant to say with that link: it is possible with static analysis, it just takes work.

cfleming05:11:13

Cursive does support this - the problem is that java-time vendors potemkin as java-time.potemkin.namespaces . I didn’t add support for the vendored version, and instead added stub support for the java-time namespace.

cfleming05:11:04

@U0522TWDA Do you get a notification asking you to create stubs for that namespace? See: https://cursive-ide.com/userguide/macros.html#stub-generation

cfleming05:11:16

In fact, the example in the doc screenshots is java-time.

borkdude07:11:48

Ah that makes sense.

Jakub Holý (HolyJak)12:11:48

I do not as far I as remember, will look into it. Thanks a lot!

Jakub Holý (HolyJak)17:11:59

@U0567Q30W How do I get Cursive to ask me to generate stubs for java-time? (II 2013.3.EAP of Oct 9th, Cursive 1.9.0-eap8-2019.3)

cfleming20:11:32

@U0522TWDA It will prompt you in a notification. If you missed it you can open the Event Log, or if you refresh your Deps/Lein project it should prompt you again.

👍 4
Jakub Holý (HolyJak)10:11:33

@U0567Q30W That is perhaps the problem, I use Gradle (via https://github.com/clojurephant/clojurephant) because Clojure is only a small subproject of a bigger existing Gradle project. I have tried to re-import the Gradle project but it did nothing.

cfleming20:11:21

@U0522TWDA It should still prompt you. When you look in the Event Log, do you see a notification there about it?

Jakub Holý (HolyJak)20:11:43

No. I just did "Reimport Gradle project" from the Gradle view and there is nothing new in the event log.

Jakub Holý (HolyJak)20:11:47

I have updated to the latest eap of Cursive and now in the events log there is "Stub generation required" so I initiated this. But if it wasn't for the update I would have to live without it...

cfleming20:11:23

Hmm, that’s strange. I’ll set up a Gradle project to test this and see if I can figure it out. I probably need an explicit “Re-check stubs” action.