Fork me on GitHub
#cider
<
2015-12-09
>
mlbatema03:12:38

I found https://skillsmatter.com/skillscasts/7225-cider-the-journey-so-far-and-the-road-ahead but can't see the video after creating an account. Is this video available elsewhere?

naomarik07:12:38

@bozhidar: thanks for the excellent CIDER 😉 I've just went through some pain getting it to work properly connecting to boot. i had to piece together different documentation and lots of fiddling to get going. would you like me to create a gist of the steps i took?

naomarik07:12:28

for reference i literally am a newcomer to this ecosystem, took me all day yesterday to make sense of what was possible and how to get up and going

bozhidar07:12:44

@naomarik: you can file a ticket/PR regarding the documentation update

bozhidar07:12:50

I don’t use boot myself

bozhidar07:12:05

so I can imagine that some of the instructions we have there might be suboptimal

naomarik07:12:16

i tried it after getting fed up with trying to connect to figwheel's browser repl

naomarik07:12:23

and got it going a lot more easily

bozhidar07:12:33

basically minor mode bindings have higher precedence over the global keymap

bozhidar07:12:59

so in cider-repl-mode you’ll have to adjust this further

naomarik07:12:03

i haven't really contributed to OSS yet, not sure what the etiquette/protocol is for PR simple_smile

bozhidar07:12:36

I have to see the diff

naomarik07:12:42

illl make PR then

bozhidar07:12:43

as I’m not sure what’s new now

bozhidar07:12:00

this (start-repl) looks odd to me

bozhidar07:12:12

as it seems like something cljs specific

bozhidar07:12:25

after all you’re already connected to nREPL at this point

naomarik07:12:42

it's from this

naomarik07:12:14

ya you're connected to the clojure repl, but (start-repl) boots the cljs one

bozhidar07:12:07

so this should be somewhere in the cljs setup

bozhidar07:12:19

as the section you edited is for Clojure

naomarik07:12:37

i don't really understand how jack-in works properly to fiddle around with getting it working there. from what i see, it starts a repl session minus the browser and doing cider-jack-in-clojurescript with a customized variable if nil (so i don't get rhino/node etc) gives me a java null error

naomarik07:12:47

ahh you're right boz, but the profile.boot setting works for the clojure part

naomarik07:12:58

i had to get those settings like this to get no warnings

naomarik07:12:55

i tried those instructions yesterday and didn't know how to integrate it with the project properly. i wouldn't be able to update that section due to my very naive understanding of everything at this point

naomarik07:12:11

my main goal yesterday was getting a browser repl with reagent going that could do live updates to js/sass and what i've listed were the main steps needed to get going on that

naomarik07:12:42

pretty awesome editing the browser's app state within emacs 😉

bozhidar08:12:11

you might mention this as a comment to the PR you opened

bozhidar08:12:30

I’m a bit busy right now, but I’ll try to take a look at this later

naomarik08:12:33

cool 😉 if you want me to change anything let me know, can include a new section boot subsection in clojurescript using the instructions, but it wouldn't involve jack-in. i've attempted to get that going but fail and don't know enough of what's going on to troubleshoot effectively

malabarba10:12:42

@ccann Instead of using global-set-key, use (define-key cider-repl-mode-map ...)

ccann16:12:46

@malabarba: thanks! that’s exactly what I ended up doing. @bozhidar: thank you; the company section of the cider readme has a screenshot of the cljs REPL with the result of company complete on (o so I assumed that’s what I’d get with the configuration specified there. Maybe that could be a bit clearer? I can open an issue if that’s more appropriate

bozhidar17:12:32

not sure what’s the difference for you

bozhidar17:12:43

company doesn’t trigger after the first character or what?

ccann17:12:45

before I re-defined TAB in cider-repl-mode-map to company-indent-or-complete-common I would get a new buffer when I pressed TAB in the REPL full of completions, not a popup at point.

bozhidar20:12:37

seems that company-mode wasn’t required or something

bozhidar20:12:58

no manual remapping is needed for sure

ccann20:12:32

that’s odd… it was definitely enabled, because I had the same thought so I checked. Maybe it’s an order-of-operations issue — I’m using use-package so maybe that’s part of it too