Fork me on GitHub
#cursive
<
2016-08-27
>
juhoteperi11:08:33

Should breakpoints in java libs (closure-compiler) work? I tried adding breakpoints both to the decompiled class file and the source

juhoteperi11:08:37

Oh, maybe I just had the breakpoints set up in places before the error

timothypratley23:08:01

Is there a way to type hint CLJS browser events such as:

(defn navigation [event]
  (model/set-route! (.-token event)))
such that Cursive knows that .-token is the right thing?

cfleming23:08:12

@spieden: 1.4.0 is only in EAP at the moment, but 1.3.1 should be available.

cfleming23:08:55

After unchecking the box, go to Settings-&gt;Plugins-&gt;Browse Repositories and hit refresh - does that help?

cfleming23:08:28

@juhoteperi: Yes, that should definitely work. Breakpoints can be occasionally flakey in Clojure but they’re very reliable in Java.

cfleming23:08:39

@timothypratley: No, unfortunately. However it looks like this might help in the near future (I’ll have to add Cursive support for it): http://clojurescript.org/reference/compile-time-type-checking

cfleming23:08:58

I can actually add that support independently of CLJS - it will just only help Cursive, not the compiler, until it works there.

cfleming23:08:07

That was not the easiest sentence to parse - what I mean is that Cursive can have that support for completion, symbol resolution etc even if the compiler doesn’t support it.

cfleming23:08:33

Would be nice to have quickfixes to add the annotations etc.

cfleming23:08:41

A compile-to-typescript CLJS would be really nice.

timothypratley23:08:23

Ah I see that makes sense yup. Yeah it seems that there is growing support for Typescript from libraries out there. 🙂 Glad to hear there are some good options available. I'm actually really confused how Cursive manages to resolve so many JavaScript symbols, it sure makes it easier to know when all the externs etc are correct.

cfleming23:08:54

Yeah, I’m actually planning to go over all the CLJS resolution soon, since it’s very confusing and I can’t keep up with all the different things required to resolve symbols correctly. Once that’s more accurate hopefully the warnings will be more useful.

cfleming23:08:45

I’m actually going to have to bump https://github.com/cursive-ide/cursive/issues/1481 to the next beta build because of the subtleties involved.

cfleming23:08:03

CLJS is hard to keep up with.

timothypratley23:08:40

Hahahaha totally. Yeah I can imagine that would be a doozy to handle 🙂