This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-06
Channels
- # admin-announcements (2)
- # beginners (7)
- # boot (99)
- # cider (2)
- # cljs-dev (50)
- # clojure (58)
- # clojure-austin (3)
- # clojure-australia (9)
- # clojure-berlin (8)
- # clojure-china (1)
- # clojure-dev (15)
- # clojurescript (183)
- # clojutre (2)
- # clr (1)
- # cursive (106)
- # datomic (25)
- # editors (5)
- # incanter (21)
- # ldnclj (47)
- # off-topic (11)
- # om (8)
- # overtone (5)
- # re-frame (28)
- # reagent (12)
- # testing (7)
You can do it using the Refresh action in the leiningen toolwindow. But there’s a bug in the current version which doesn’t save the files to disk first.
You can either File->Save All, or switch to another app and back (IntelliJ saves on lost focus)
But yeah, you can do that. See https://cursiveclojure.com/userguide/leiningen.html for some info
actually, the doc you probably want there is missing from that page, see https://github.com/cursiveclojure/cursive/issues/989
love your work with cursive btw - do you have some kind of timeline you're working toward, re: making it a commercial product?
Thanks! Yeah, I’ll be charging for it soon. I’m at the stage of waiting on banks for payment systems, and waiting on lawyers for licence agreements.
It's a mammoth thing you've pulled off, I can't imagine it's sustainable unless you start getting paid for it proper soon
Yeah, it’s been a ton of work. But money isn’t the main limiting factor at the moment, except in that if I had tons of it I could hire more people
The main limitation is just time to work on it, and that’s mostly limited by my daughter 😉
Exactly. If I were young and single Cursive would be at version 7 by now, rather than still in beta
haha - or maybe it would have failed, because you wouldn't have been as deliberate about the bits you added
Mostly on getting things ready for selling Cursive, so payments etc and brushing up the website etc.
I’m also planning to add a test runner soon and expand the test support (Midje, cljs.test etc)
And right now I’m investigating re-vamping the lein support, which is pretty painful for all concerned.
It’s definitely a goal but a tricky one. I’m actually interested in using boot to build Cursive itself.
Unfortunately boot requires Java 7 but I have to support Java 6. So I need to run it out of process which is tricky to make fast.
Mostly, yeah - there’s a bunch that has to be written in Java for startup time issues, but all the interesting bits are Clojure
I’m planning to migrate the bits that are required to be Java to Kotlin to make that a bit more palatable
would love to poke around with intellij plugins, but I'm not particularly interested in mucking around in more java, if I can help it
Yeah, I have that planned - in fact, there already is one which I use, but it’s not much use without the Cursive APIs which are not public yet.
There’s already an IntelliJ plugin to allow the IDE to be tweaked using Groovy. I’m planning to use the ideas and perhaps some of the code but using Clojure.
The extension API will mostly at first be about allowing resolution support for libs to be added.
I just joined the channel, so this convo may have already happened. Is anyone else having a problem resolving symbols inside of an extend-type
form?
i.e.
(extend-type A
IDoThings
(-do-things [{:keys [a b c] :as this}]
;; cannot resolve a, b, c, or this here
))
@potetm: I think that should work, although it’s possible that Cursive isn’t checking for destructuring there.
@cfleming: That appears to be the case. If there is no destructuring, it appears to work.
I have two protocols I’m implementing in the same extend-type
. I’m in the second when it doesn’t work.
There’s something about that form it doesn’t like - I can reproduce it with just that one.
So this works for me:
(extend-type String
Runnable
(run [{:keys [a b c] :as this}]
;; cannot resolve a, b, c, or this here
a b c
))
I think the problem is perhaps that the method is incorrect for the protocol? Is that possible?
Lemmie triple check that real quick. I usually rely on cursive to tell me if I got it right 😉
Haha, I wouldn’t rely on that in this case, there’s no validation for that at the moment 😉
Right. That must be what I noticed. I thought I noticed something that would tip me off.
@potetm: What doesn’t work for me is the completion, but the resolution once I type the symbol in does work.
Yeah, there are times when it appears to work for me. But I’ve not figured out the rhyme or reason.