protorepl

seancorfield 2017-08-07T00:08:35.126521Z

You should watch Stu Halloway's recent talk (to the Chicago Clojure group) about using the REPL. @ricroberts

seancorfield 2017-08-07T00:10:40.139232Z

In particular he says "don't type stuff into the REPL -- type it into a file and evaluate each form as you go". He keeps a scratch file for "REPL experiments" so he has a record of everything he's ever tried in the REPL.

seancorfield 2017-08-07T00:10:56.140878Z

I thought it was an interesting insight.

rgdelato 2017-08-07T00:28:19.246191Z

it would definitely be nice for the ink console to play well with Parinfer/Paredit, but yeah, I think most people type in either a real file or a temp file and send forms to the REPL via key commands

ricroberts 2017-08-07T08:08:10.949388Z

@rgdelato @seancorfield thanks, I figured that was how i could get it to work for me, after I typed that 🙂

ricroberts 2017-08-07T08:12:06.026524Z

Cheers for the pointer to that talk tho

athomasoriginal 2017-08-07T15:47:18.226823Z

I am trying to use proto-repl with my cljs setup - I am using boot. I followed https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-02.md and this is working correctly. I have the correct proto-repl dependencies specified in my build.boot file. I am stuck at the point where I run boot dev which creates my nrepl instance. I can connect to this nrepl with proto-repl - what would be the next steps?

athomasoriginal 2017-08-07T15:51:26.371897Z

The answer to the next steps is that after you connect to the nrepl started by boot dev . you need to require in the following to proto-repl

(require '[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]])
Then you can run (start-repl) and connect to your app in the browser as you normally would

athomasoriginal 2017-08-07T16:04:27.837102Z

you will also need to disable enable-completions (which requires a restart of Atom) - seems to throw errors otherwise

rgdelato 2017-08-07T16:23:14.452593Z

Proto REPL does have an option to connect to nREPL. If you open the command palette (Cmd + Shift + P) and search for "Proto REPL: Remote nREPL Connection", you should find it. You'll get a prompt to put in a host and port number and it should connect just fine