Fork me on GitHub
#cider
<
2016-05-15
>
decoursin09:05:59

What does Cider think of new error messages coming to Cursive: https://www.youtube.com/watch?v=kt4haSH2xcs. Does it have any plans to do a similar thing?

j0ni15:05:09

> A few people have asked about this so I put it up here, but it's in an as-is where-is state. Allegedly something like this may be in Clojure 1.9 so I won't update this until there's some indication of what that will look like.

j0ni15:05:41

Sounds promising

decoursin15:05:04

@j0ni: Thank you!

bozhidar17:05:22

@decoursin: a lot of things are possible, but someone has to work on them

bozhidar17:05:43

I’ve got a ton of work on my plate, so I’ll definitely not be working on anything like this in the foreseeable future

fode18:05:13

good morning all. i'm new here.

fode18:05:09

I'm having a hard time getting cider-jack-in to fire up. i've been looking online all day and night with no luck. I'm getting: error in process filter: nREPL: Direct connection faile

arrdem18:05:56

fode: do you have leiningen installed and on your emacs path?

fode18:05:18

@arrdem: yes. lein repl works from the command line. let me double check my emacs path

arrdem18:05:51

what's in *messages*?

fode18:05:11

@arrdem: nREPL server started on port 62140 on host 127.0.0.1 - <nrepl://127.0.0.1:62140>

arrdem18:05:11

do you have a *nrepl-server <something>*?

fode18:05:37

Starting nREPL server via lein repl :headless... nREPL server started on 62140

arrdem18:05:55

Huh. So your server started fine and is still running...

fode18:05:58

@arrdem: is that what you meant? sorry i'm fairly new to emacs

arrdem18:05:03

Yep. You got it.

fode18:05:21

@arrdem: thank you

arrdem18:05:40

Try M-x cider-connect and using those nrepl details above.

fode18:05:20

@arrdem: Ok one sec

fode18:05:53

@arrdem: ok i did cider-connect then pluggen in the host. is the repl supposed to pop up now?

arrdem18:05:19

@fode: you should plug in host, port and get a popup repl yeah

arrdem18:05:36

not host:port, host RET port RET

fode18:05:01

@arrdem: Ah! one moment

arrdem18:05:17

You should have still had a Port: ... prompt in the minbuffer.

fode18:05:10

@arrdem: Yep did just now. Here' what's I'm getting now: nrepl--ssh-tunnel-connect: nREPL: SSH port forwarding failed. Check the 'nrepl-tunnel' buffer.

fode18:05:58

@aardem wait i think it added the port number twice

fode19:05:25

@arrdem: for some reason it's entering the port number twice: nREPL: Establishing direct connection to <nrepl://127.0.0.1:62140:62140> ... nREPL: Direct connection failed

fode19:05:46

even though i do host:ret then port:ret

arrdem19:05:06

<esc> : (cider-connect "localhost" "62140") <RET>

arrdem19:05:30

so <esc>: should open up a lisp prompt in the minibuffer.

arrdem19:05:41

then just paste in the cider-connect form and hit enter.

arrdem19:05:03

Should be the same as M-x cider-connect but I'm curious what'll happen.

fode19:05:29

ok one sec

arrdem19:05:13

Fair warning, if that doesn't work pretty much all I can suggest is blowing away all your .elc files, restarting emacs and trying again 😕

fode19:05:13

@arrdem: ok thank you for all your help. yes it' the same thing. i'm not sure whats going on. i'm goign to try to clean up emacs and try again. thanx again

arrdem19:05:31

Sure, sorry I can't be of more help.

arrdem19:05:44

If this persists, definitely open an issue on github.

fode19:05:38

@arrdem: Ok cool. Thank you for taking the time.

fode19:05:30

@arrdem: It worked! 🙂

arrdem19:05:48

@fode: sweet! happy hacking 😄

fode19:05:52

@arrdem: Yessir! I restarted emacs and it cleared the buffer. So I restarted cider-jack-in, checked the new port number in the buffer, typed in host:ret then port:ret and it worked :0

arrdem19:05:23

Hum... cider-jack-in should have connected magically for you...

arrdem19:05:00

so something's still not quite right.

fode19:05:41

Yea i know. but for some reason it keeps failing. I'll have to look into it deeper. I've only been using emacs the last 72 hours, so quite a long ways to go lol

arrdem19:05:28

Welcome to the last editor you'll ever need then 😛

arrdem19:05:53

Stick around, someone else may have more useful commentary.

arrdem19:05:05

How long does it take to start a REPL on your machine?

arrdem19:05:25

It's possible that CIDER initially times out trying to connect to the nrepl instance...

arrdem19:05:07

Anyway. You've got a REPL and can muck about some so that's headway at least...