Fork me on GitHub
#cursive
<
2016-05-31
>
grumplet10:05:07

@cfleming: The main issue seems to be that cursive doesn't recognise rum.core require aliases. So (rum.core/defc ...) is resolved, but (rum/defc ...) isn't - given (ns ... (:require [rum.core :as rum]) in header. It's been worth my while converting to rum.core throughout just so I can find the real non-rum warning messages.

solicode12:05:09

I haven't done much ClojureScript in Cursive, but to what level should I expect Cursive to know about JavaScript libraries? For example, I'm using three.js, and I see it picking up some constructors if I prefix them with js, like (js/THREE.Scene.) and so on. But it doesn't seem to be picking up much beyond that, like functions.

solicode12:05:16

Things like requestAnimationFrame, js/Float32Array, etc aren't resolving either.

solicode12:05:40

This might be normal, but I just wanted to be sure I'm not missing out on some autocomplete that I should be seeing.

serce12:05:49

Hi! Are there any plans for cursive to support clojure.spec as a kind of type system? Like maybe error highlighting and early error catching?

grumplet14:05:54

@cfleming: So, in summary, (rum.core/defc ...) is always resolved correctly, whereas (rum/defc ...) is resolved only sometimes depending on some confounding factor that is more likely to show up in the larger files.

grumplet14:05:15

@cfleming: prais2.components.analytics is a short file that fails whereas p.c.body is a short file that works fine.

moizsj16:05:49

@cfleming: is there a way I can get hold of the repl history without actually launching the repl?

vinnyataide21:05:30

Hello. How are you guys, I'm using cursive as my new ide from cider because of the deeps code understanding, but I am facing some issues here and there, hope you guys can help. It's mostly about import namespace problems, some goog libs doesnt get resolved when I import them, like Jsonp so I can't see how the api works, does anyone have a solution? thanks

danielcompton21:05:01

@vinnyataide: I don’t think some of the Google Closure import stuff works unfortunately

vinnyataide21:05:07

@danielcompton Is it because the js parts?

danielcompton21:05:18

It’s not just JS, because requires work

vinnyataide21:05:48

I see, thanks

cfleming22:05:34

@grumplet: Thanks, I haven’t had a chance to look at that problem yet, I’ll try to get to it today.

cfleming22:05:43

@solicode: @vinnyataide: @danielcompton: Sadly JS resolution is a bit hit and miss, I’m hoping to improve that soon.

cfleming22:05:50

@solicode: WRT things like Float32Array, I’m using the initial imports from Tern to create the initial “browser” environment. They’re a bit lacking unfortunately, and I’m considering moving to the Typescript ones.

cfleming22:05:55

@serce: See https://cursive-ide.com/archive/2023.html. Spec isn’t capable of providing all the tool support that a type system would, but there’s probably a lot that can be done there. I’m not sure exactly how much yet, though.

cfleming22:05:42

@moizsj: No, because Cursive holds different REPL histories for different REPL types.