Hi Rob,

I'll follow up with you about this to your message on the Cursive list,
since it's getting pretty Cursive specific.

Cheers,
Colin

On 4 August 2017 at 00:25, Rob Nikander <rob.nikan...@gmail.com> wrote:

> I got this working, but I'm seeing very strange behavior that makes it
> unusable. IntelliJ can hang and overuse CPU on certain expressions. It will
> happen, for example, if I type the following in the IntelliJ Cursive REPL
> connected to Figwheel/ClojureScript...
>
> cljs.user=> (deftype Foo [a])
> cljs.user=> (def foo (-> Foo 123))  ; so far everything is normal
> cljs.user=> (.-a foo)   ; oh it does not like this.
>
> It's hard to finish tying that last line. It's as if it's trying to parse
> it before I'm done (maybe for auto completion?) and choking. Once I type
> "(.-a" the CPU starts to go and IntelliJ responds to keypresses only after
> huge delays.
>
> Rob
>
> On Monday, July 31, 2017 at 10:42:11 PM UTC-4, Colin Fleming wrote:
>>
>> Hi Rob,
>>
>> So using Maven, those instructions should work pretty much as-is, since
>> the clojure.main style REPL it uses just uses the classpath from IntelliJ,
>> it doesn't use lein for anything fancy. The only part which I don't know
>> about is compiling ClojureScript from Maven - I actually didn't even know
>> that was possible. But the rest of it should work as described in that doc,
>> you'll just have to translate things like :source-paths to the Maven
>> equivalent which should be straightforward.
>>
>> Cheers,
>> Colin
>>
>> On 1 August 2017 at 11:23, Rob Nikander <rob.ni...@gmail.com> wrote:
>>
>>> Okay, thanks, I will try figwheel. I'm using Maven not Leiningen so I'll
>>> need to find time later to translate those instructions. On my test project
>>> here I could use Leiningen, but on another, Maven is entrenched.
>>>
>>> On Monday, July 31, 2017 at 6:16:30 PM UTC-4, Colin Fleming wrote:
>>>>
>>>> In fact, Figwheel has a page dedicated to Cursive:
>>>> https://github.com/bhauman/lein-figwheel/wiki/Runni
>>>> ng-figwheel-in-a-Cursive-Clojure-REPL. I agree that if you're doing
>>>> browser development, you almost certainly want to be using figwheel.
>>>>
>>>> On 1 August 2017 at 02:58, Ikuru Kanuma <kanu...@gmail.com> wrote:
>>>>
>>>>> Hi Rob,
>>>>>
>>>>> Perhaps following this README will help?
>>>>> It should work as long as you have a working repl + can add this as a
>>>>> dependency.
>>>>> Figwheel will give you hot code reloading + a cljs repl + lot of other
>>>>> goodies and is really popular.
>>>>>
>>>>> https://github.com/bhauman/lein-figwheel/tree/master/sidecar
>>>>>
>>>>> Ikuru
>>>>>
>>>>> --
>>>>> Note that posts from new members are moderated - please be patient
>>>>> with your first post.
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ClojureScript" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to clojurescrip...@googlegroups.com.
>>>>> To post to this group, send email to clojur...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/clojurescript.
>>>>>
>>>>
>>>> --
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ClojureScript" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojurescrip...@googlegroups.com.
>>> To post to this group, send email to clojur...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/clojurescript.
>>>
>>
>> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to