Fork me on GitHub
#cursive
<
2016-02-12
>
cfleming00:02:26

@jcromartie: Those bugs will be fixed in the next build, along with some other related problems.

akiel09:02:34

Is there any interaction between the markdown support plugin and cursive? I get “nil language” errors when I have both plugins installed and have clojure marked fenced code blocks in my markdown files.

cfleming09:02:26

@akiel: I’m not sure, I don’t know how the markdown plugin works. I’m not sure if it tries to use the language support from Cursive with blocks marked like that.

imre09:02:37

there are a few different markdown plugins, I use multimarkdown and it works without problems

cfleming09:02:50

That one’s commercial now, right?

akiel09:02:27

@cfleming: should I open an issue? and/or should I submit the error? do you get thoose?

cfleming09:02:55

@akiel: Do you have a stacktrace from that?

cfleming09:02:25

Can you paste one here?

akiel09:02:04

Happens on README from this project: https://github.com/alexanderkiel/ring-hap

cfleming09:02:59

That’s very weird - it doesn’t mention anything about markdown there at all - it looks to me like it’s highlighting a normal Clojure file.

cfleming09:02:18

@akiel: If you could file an issue with some repro steps that would be great, thanks.

bbss10:02:34

How can I connect to a clojure 1.8 socket server repl with cursive?

bbss10:02:25

I have tried the remote repl but that tries to connect but takes forever

cfleming11:02:57

@bbss: Sadly, you can’t right now - I’ll be adding that shortly.

cfleming11:02:15

The current remote REPL only uses nREPL.

bbss11:02:16

okay, good to know

bbss11:02:11

I don't really know how to set nrepl up, I've find there are so many different libraries that all seem to solve some part of the repl experience, especially when combined with cljs

cfleming11:02:51

Yeah, I’m actually writing a design doc as we speak about how to try to simplify everything, especially WRT CLJS

cfleming11:02:11

So that’s going to get worked on very soon.

bbss11:02:07

I see, right now I've opted to run figwheel and serve the index.html and compiled cljs from the server, I was thinking this might cause problems with cors but it doesn't pretty cool.

bbss11:02:24

And running figwheel with cursive that is.

cfleming11:02:13

Hopefully once I’m done with this all that will be properly integrated and will Just Work reliably

cfleming11:02:23

Including Figwheel

bbss11:02:08

But still having issues actually repling to the server. I am using nginx-clojure and run lein with-profile run embed which loads some wrap-reload development ring handler.

bbss11:02:39

I expected that creating a run configuration with nrepl and embed lein profile would connect to the server. I do get a repl and can evaluate code, but I don't think it's actually connected to the server.

bbss11:02:22

do I maybe need to add something to the server to set-up an nrepl?

cfleming11:02:10

I don’t know, sorry, I don’t know anything about nginx-clojure

cfleming11:02:29

If you can configure it to start an nrepl server you can connect to it with the remote option.

cfleming11:02:55

You can do that fairly easily with the bare nrepl library, but I don’t know anything about the nginx-clojure lifecycle

cfleming11:02:12

I have to go, sorry - good luck!

bbss11:02:41

cool, that worked!

doddenino17:02:58

Is there some sort of recommended keybindings for structural editing?

imre17:02:33

check settings->keymap->cursive

imre17:02:33

there are a few presets there

doddenino17:02:00

oh cool thanks! simple_smile

jcromartie18:02:58

I have test results that are too big for tooltips

alexisgallagher18:02:45

I am trying Cursive for the first time and getting a blizzard of "cannot be resolved" errors in the Code Inspections / General.

alexisgallagher18:02:08

Is this b/c it's configured wrong, or are these known issues?

alexisgallagher18:02:32

For instance, I have "String cannot be resolved", where there's a type hint that a record's field is a String.

alexisgallagher18:02:00

Also, fully qualified Java method calls like "java.util.UUID/randomUUID cannot be resolved".

alexisgallagher18:02:18

Am I doing it wrong, or is this all to be filed under the category of "Cursive is still a work in progress" ?

jcromartie18:02:40

I don't think that's normal

alexisgallagher18:02:18

Okay. Seemed like it must not be. Pretty basic stuff.

alexisgallagher19:02:20

Is there any special setup I need to do for a project before importing it besides pointing at the project.clj? Any way to dig into why it's failing to resolve basic things?

alexisgallagher19:02:43

Or do folks just shut off "General" Inspections and only use "Clojure" inspections ?

jcromartie19:02:51

I didn't change those

jcromartie19:02:01

were you using IntelliJ for Java work before installing Cursive?

jcromartie19:02:19

I just installed IntelliJ and Cursive and imported my projects

alexisgallagher19:02:32

That's what I did.

alexisgallagher19:02:32

I'm noticing some of the cannot resolves are coming from functions in amazonica.aws.sqs, which builds those functions by reflection, so that makes sense. that still doesn't explain String, java.lang.String, and java.util.UUID/randomUUID don't resolve.

alexisgallagher19:02:47

Thread/sleep cannot be resolved. Sigh.

alexisgallagher19:02:55

Think I'll save this adventure for another day.

jcromartie19:02:46

that's strange

cfleming20:02:52

alexisgallagher: I have to run sorry, but a couple of things to check - I suspect your project doesn’t have an SDK. Open File->Project Structure and check that there under “Project”. That would explain the unresolved classes.

cfleming20:02:25

@alexisgallagher: Unfortunately you’re right, the functions built via reflection won’t be resolved correctly.

cfleming20:02:45

Take a look at the SDK, I bet that’s the problem with the classes.

cfleming20:02:57

If not, leave a note here and I’ll look later on when I can.

alexisgallagher20:02:16

@cfleming: That fixed it. Thanks!

cfleming23:02:01

@jcromartie: Yeah, I need to add a maximum size of some kind for the tooltips, or IntelliJ freaks out

polymeris23:02:50

Refactor > rename seems not to work for refactoring e.g. ::foo to :foo

polymeris23:02:19

It's a bit confusing, too, because the field does not show the colon, and I don't know if I am supposed to enter it