Fork me on GitHub
#cursive
<
2017-05-10
>
sandbags08:05:02

Is my memory faulty? I could have sworn cursive allowed me to refactor function call chains into threading and vice verca?

cfleming09:05:40

@sandbags Edit-&gt;Structural Editing-&gt;Thread/Unthread form

sandbags09:05:16

@cfleming oh yes, ... thank you. Did they ever appear in a refactor menu at some point?

cfleming09:05:54

You mean like “Refactor this”? I don’t think so, no.

sandbags09:05:05

hrmm... my memory being faulty i guess, thanks

rauh17:05:40

Oh well... I can select multiple files when doing a namespace search. Who knew... My problem of guessing which is the CLJ and which is the CLJS file are gone. I just open both 🙂

taylor18:05:57

just curious if there’s a changelog for 1.5.1 EAPs

nwjsmith19:05:23

I'm having trouble connecting to a remote REPL and I think it's because of... Java parsing?

nwjsmith19:05:11

lein repl works

nwjsmith19:05:47

and so does lein compile. The com.google.protobufs stuff is in my classpath. I'm not sure why Cursive isn't picking it up.

cfleming21:05:38

@nwjsmith Are you using AOT compilation in your project?

nwjsmith21:05:44

:thinking_face:

cfleming21:05:06

@taylor Unfortunately I’ve been pretty hopeless at getting a proper changelog set up. The closest thing are the announcement emails on the ML: https://groups.google.com/d/topic/cursive/4r7-ZuxWwa8/discussion

nwjsmith21:05:26

@cfleming judging by the project.clj, I'm not AOT-ing

cfleming21:05:28

@nwjsmith In fact, for the REPL I think it’s irrelevant. Go to your run config, and near the bottom under Before Launch tasks remove Build from the list.

cfleming21:05:39

Does that help?

nwjsmith22:05:05

You're a hero Colin

cfleming22:05:21

You’re welcome!

cfleming22:05:49

I really hate those things, it’s amazingly difficult to stop them being added by default since my run configs are based on the Java ones.

nwjsmith22:05:11

I'm a bit in the dark about why the error occurs, but this gets me productive again

cfleming22:05:46

So, the problem is that that item means that IntelliJ will try to build your project before running.

cfleming22:05:31

In theory, the IntelliJ project should be a perfect representation of what’s in your project.clj, but in practice it’s not, and it’s hard to tell why without seeing the project.

cfleming22:05:51

Or at least, it’s not always in practice - usually it is.

cfleming22:05:10

So sometimes compilation can be subtly different.

cfleming22:05:22

But if you’re using lein to run your REPL (which you are if you’re using the lein option in Cursive) then it doesn’t matter anyway because lein will compile everything it needs itself, so the IntelliJ compilation is redundant (quite apart from being incorrect)

nwjsmith22:05:10

ah okay, I understand that. So it makes sense to remove the Build task from any of my Leiningen-based projects, if only to speed up launching the REPL?

nwjsmith22:05:27

Do I lose any IntelliJ-provided functionality here?

cfleming22:05:45

So - I don’t think so 🙂

cfleming22:05:20

It’s hard to be sure - I think the most likely issue is that the compilation process in IntelliJ is also what copies resources around.

nwjsmith22:05:31

Seems like a fairly large black-box

cfleming22:05:33

But again when you’re using lein it should do that automatically anyway.

nwjsmith22:05:53

I'll keep on keeping on with this

cfleming22:05:04

Cool - if you see weirdness, let me know.

nwjsmith22:05:16

If I notice anything missing, I'll stop by this channel and let you know

nwjsmith22:05:36

thanks for the help

cfleming22:05:04

No worries.