Fork me on GitHub
#cursive
<
2017-05-29
>
andershessellund06:05:13

How does Cursive detect when new bindings are introduced? Sometimes it works (e.g. when using let) but sometimes it doesn't (e.g. when using core.match).

pseud09:05:16

Anyone done ClojureScript backend (node) development using cursive ?

stijn09:05:23

@pseud, a little bit for AWS Lambda

pseud09:05:35

@stijn what's your take on the support as compared to using regular Clojure ? (And which lein/boot template did you start out with)

stijn09:05:51

@pseud leiningen, without a template. I setup the clojurescript repl with piggieback

stijn09:05:59

this in dev/user.clj

stijn09:05:01

(ns user
  (:require [cljs.repl :as repl]
            [cemerick.piggieback]
            [cljs.repl.node]))

(defn start-cljs
  []
  (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env)))

stijn09:05:27

after starting a jvm repl enter (start-cljs) to upgrade to a cljs repl

stijn09:05:08

code navigation works, evaluate file in repl too

stijn09:05:46

didn't use much else though, more familiar with the jvm features of cursive

rauh10:05:04

It seems something like this: (#?(:clj b :cljs a) ,, ) completely throws off Cursive to the point where you can barely edit the CLJC file well. Can somebody confirm?

cfleming10:05:48

@rauh It’s possible - I fixed some bugs with that recently but there may be more. If you could file an issue with a simple repro case I’ll look at it.

rauh10:05:06

Ok will do.

erichmond15:05:21

How many lines of output until the REPL would start to slowdown?

wilkerlucio18:05:49

@pseud I have an active project doing that, IMHO works as well as main Clojure, except you can't debug (something I don't do in Clojure either)

danielcompton22:05:14

I'm guessing this would be major, but how hard is it to merge the REPL indexes with the static indexes? I've got functions defined by HugSQL that show up in the REPL, but aren't resolved in the editor

cfleming22:05:50

@rauh Thanks for the issue. I’m curious - when do you want to switch in call position?

cfleming22:05:55

@kidpollo You can do this from within the IDE (if you install a version that’s too recent, Cursive will prompt you to download the right one) but there isn’t a good way to do this from e.g. the website. If you DM me your licence or order ID, I’ll let you know.

cfleming22:05:31

@pelletier Do you have an example of a condition which is not working?

pelletier16:05:41

IntelliJ IDEA 2017.2 EAP Build #IU-172.2465.6, built on May 24, 2017 JRE: 1.8.0_112-b16 x86_64 JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation Mac OS X 10.12.5 Cursive Version: 1.5.1-eap3-2017.2

cfleming21:05:07

@pelletier Thanks, I’ll take a look.

pelletier21:05:20

let me know if there is anything i can do to help 🙂

cfleming21:05:35

Does this happen for all tests for you?

cfleming22:05:35

@andershessellund This is done internally, Cursive parses those forms. I have not added support for core.match yet, but I’ve been planning to look at it. I’m also planning to open up an API so others can do this, but it’s proven much more complicated than I expected.

cfleming22:05:34

@erichmond I’m not sure to be honest, depends how complex they are. You can control how many are kept around.

cfleming22:05:08

@danielcompton So that actually would be easier after the recent changes to REPL completion, although still far from trivial.

erichmond22:05:09

Thats my other question, if I set it to like.. 10,000, does it purge the first once the 10,001 comes in?

cfleming22:05:22

That’s the idea, yes.

cfleming22:05:47

I can’t remember off the top of my head if there’s some buffering which might mean that it’s not exactly line accurate.

erichmond22:05:10

but thats roughly corrwect? thanks!

erichmond22:05:28

man, I hadn't used cursive / intellij in about 6 months or so. amazing how much better it's gotten

cfleming22:05:17

Thanks! I’m glad you’re enjoying it.