Fork me on GitHub
#cursive
<
2018-04-14
>
cfleming05:04:29

@potetm There are separate commands for jumping to the REPL editor or output pane, are those not working for you?

cfleming05:04:45

Tools-&gt;REPL-&gt;Jump to…

emccue08:04:17

@cfleming You said in some earlier conversations that you were working on a fork of clojure where you address some interop concerns related to your work on cursive and abstract classes

emccue08:04:13

do you have a concept for how proper type hinting can be given to java code that consumes clojure AOT compiled sources

emccue08:04:05

like, the best that can be done now to return properly an "iterable of x" is L[x;

emccue08:04:13

(or whatever the syntax is)

emccue08:04:33

which basically means that the clojure side needs to return an array

emccue08:04:30

I ran into this earlier, and it basically means that I cant expose anything that I dont wrap in unchecked RT.invoke calls to java consumers

emccue08:04:41

which for me, making a product is fine

emccue08:04:16

but if I make an internal tool and I want to "write it in clojure", its a big barrier

cfleming11:04:44

You’re right that there’s no good way to type hint a Clojure function with a generic return type, you’re basically stuck with an unchecked cast.

cfleming11:04:55

AFAIK there’s no way around that.

gklijs11:04:59

@emccue I did some interop with Kotlin, where I set the Ifn's needed, and put functions to use them. This way you can make all the calls to clojure type safe.

sparkofreason16:04:53

@cfleming FYI, not sure if this is an actual issue with cursive or some other combination of factors: https://youtrack.jetbrains.com/issue/IDEA-190262

cfleming21:04:09

@dave.dixon Does disabling Cursive fix that issue? I’m not sure why Andrey thinks it’s Cursive, I can’t see anything in the log to suggest that.

sparkofreason21:04:44

I did as he advised, but in the process discovered my cursive license had expired, so am running a down-rev version until the license gets renewed. But the issue has not occurred since then.

sparkofreason23:04:07

@cfleming spoke too soon, happened again. Increasingly dubious that cursive is the problem, this time it went goofy in the git dialog. IntelliJ seems to be rather unstable for me of late.

gklijs23:04:41

@dave.dixon I didn't install the 2018.1 because some people had problems. But now there's an 2018.1.1 available with some fixes.

sparkofreason23:04:01

That's the version I'm running.