Fork me on GitHub
#cider
<
2015-11-20
>
bozhidar05:11:13

now start opening PRs on third-party projects to add the relevant metadata there simple_smile

eraserhd06:11:52

Is there an nrepl entry point for plain old indentation level? I saw the format-clj message.

bozhidar06:11:05

not sure what you mean by this

bozhidar10:11:56

11 people attended my CIDER presentation at http://buildstuff.lt simple_smile

rui.yang10:11:00

is there some video recording? would love to see

bozhidar10:11:29

probably there will be at some point

bozhidar10:11:49

here’s the slide deck

bozhidar11:11:02

most of talk was a live demo

bozhidar11:11:25

and I think they didn’t record it, but I might be mistaken

bozhidar11:11:39

definitely it wasn’t my finest moment

bozhidar11:11:00

the empty room killed any enthusiasm I had for the talk right away

bozhidar11:11:53

no more CIDER presentations at generic dev conferences I guess

rui.yang11:11:25

understand that. keep the excellent work going, your target audience wasn't there.:+1:

malabarba12:11:08

I suppose one thing you can do in that situation is just sit down and have a chat with the audience. But that's pretty hard when you're frustrated and disappointed... :-/

keeds12:11:46

@bozhidar: shame, looks like a great presentation

roberto14:11:19

@bozhidar looks awesome. I’d watch the recording if there was one. If I lived nearby I would have attended.

nonrecursive14:11:12

hey dudes, this is kind of cider related- I’m trying to get cider-jack-in running on a boot project but I’m getting the famous instaparse Wrong number of args (4) passed to: StringReader, compiling:(abnf.clj:186:28) error when I add clj-refactor to my profile.boot

nonrecursive14:11:27

has anyone else run into the same thing, and is there a fix?

nonrecursive14:11:38

Here’s my profile.boot:

(require 'boot.repl)

(swap! boot.repl/*default-dependencies* conj
       '[cider/cider-nrepl "0.9.1"]
       '[refactor-nrepl "1.1.0"])

(swap! boot.repl/*default-middleware* conj
       'cider.nrepl/cider-middleware
       'refactor-nrepl.middleware/wrap-refactor)

nonrecursive14:11:49

and my build.boot:

(set-env!
 :source-paths   #{"src"}
 :resource-paths #{"resources"}
 :dependencies '[[org.clojure/clojure   "1.7.0"]])

malabarba16:11:38

@benedek might know

jcsims16:11:00

@nonrecursive: looks like this was an issue in boot? https://github.com/boot-clj/boot/issues/210

nonrecursive16:11:34

thanks @jcsims! I think it’s complicated a little because refactor-nrepl uses mranderson

jcsims16:11:25

cider uses it as well, if I remember correctly

nonrecursive16:11:42

hmm maybe refactor-nrepl is requiring a different dep or a different version of one

nonrecursive16:11:59

it’s weird because if I use boot repl and then cider-connect then it works fine

jcsims16:11:16

oh that’s definitely strange

nonrecursive16:11:19

one of those mr. anderson’d deps must be requiring instaparse 1.3.6, and I think it’s impossible to exclude it

nonrecursive16:11:58

i can just keep starting boot repl seperately, was just hoping that someone had run into the same issue and knew of a workaround

jcsims16:11:00

but you should see the same issue with boot repl, no?

nonrecursive16:11:13

yeah that’s what I would expect simple_smile

jcsims16:11:31

cider version in emacs is the same as in your profile.boot?

jcsims16:11:37

yeah that is strange - sorry, I’m not a boot user, so that’s about the extent of my help =/

nonrecursive16:11:40

thanks anyhow simple_smile

bozhidar17:11:15

I think it’d be best to open a ticket about this

bozhidar17:11:29

so we can follow up more closely

bozhidar17:11:56

sooner or later we’ll figure out what’s wrong

benedek17:11:01

yeah open a ticket pls

eraserhd17:11:32

@bozhider: By entry point, I mean, when you press enter on a line, emacs will indent you to the correct position. Does it ask nrepl-middleware anything here? If so, what is the nrepl message? I suspect though that it works differently than I think because people keep not knowing what I’m talking about 😄 (I’m not an emacs user… so I might have an interesting misconception.)

bozhidar18:11:28

@eraserhd: nREPL is not involved in the indentation itself

bozhidar18:11:56

that’s handled completely on the Emacs side

bozhidar18:11:47

the track-state middleware pushes some data to Emacs about namespace state (which includes indentation metadata if available)

eraserhd18:11:00

Aha! Interesting

bhauman20:11:53

is there a default Clojure emacs setup guide out there?? I'm writing a figwheel nREPL tutorial (just in time for Socket REPL, better late than never)

roberto20:11:03

Clojure for True And Brave has a good one

mrg20:11:05

Pretty sure there's no default one. I started with the recommendations on http://braveclojure.com

bhauman20:11:35

thanks @roberto and @mrg

bhauman20:11:56

Let's say I have a run cider-jack-in and then in the REPL did

user> (use 'figwheel-sidecar.repl-api)
user> (start-figwheel!)
user> (cljs-repl)

bhauman20:11:01

and everything is working

bhauman20:11:30

how do I tell cider that the REPL buffer is a CLJS repl buffer?

mrg20:11:13

Why would you need to tell it that?

roberto20:11:49

@bhauman: does figwheel also start an nrepl?

bhauman20:11:58

I'm asuming here. But some Cider commands are going to be clojure specific

bhauman20:11:16

I'm just guessing that some commands have been altered for cljs

mrg20:11:46

@bhauman: Since you're writing a book and you mentioned doing that in the repl, I found this somewhere the other day and it's been great! https://github.com/px0/dotfiles/blob/master/emacs.d/user.el#L454

bhauman20:11:47

@roberto: only if you want it too, I've got figwheel running in lein repl now no problem

mrg20:11:05

I think I got it from the figwheel wiki somewhere?

roberto20:11:39

cool, then you can connect cider to it

roberto20:11:43

cider-connect

roberto20:11:52

and if you select localhost

roberto20:11:00

it should show you the port figwheel is running on

roberto20:11:10

I prefer that instead of starting cider-jack-in

roberto20:11:27

I like having a long running repl on the terminal

bhauman20:11:34

@roberto: cider-jack-in actually works now

bhauman20:11:43

and has many many advantages

bhauman20:11:14

Chekc out the link I just posted

bhauman20:11:46

the commands I posted above pretty much sum it up.

mrg20:11:12

oh that link actually has the snippet i just post it at the bottom. Nevermind simple_smile

mrg20:11:28

Probably got it from you in the first place 😉

mrg20:11:36

I see you are the figwheel guy! Thanks you for your great project!

bhauman20:11:59

I'd love to hear if you guys have success using cider-jack-in

bhauman21:11:45

and figwheel

bhauman21:11:04

@mrg you're welcome

roberto21:11:53

will give it a try this weekend and give you some feedback

roberto21:11:18

I’m used to just using figwheel on the terminal, will put some time aside for testing it on cider this weekend

malabarba23:11:16

@bhauman yes,some cider commands will fail on clojurescript, but none of them involve different implementation

malabarba23:11:43

So you can just go on with your session, and most things should work

malabarba23:11:06

There's no need to tell cider that connection is cljs

malabarba23:11:31

On 0.10.0 it's even possible to have two simultaneous connections, one for clj and one for cljs, and cider will automatically use the right one depending on which file you're in