protorepl

richiardiandrea 2017-03-31T18:49:46.535416Z

is there an auto-indent package for proto-repl?

seancorfield 2017-03-31T18:54:50.635356Z

@richiardiandrea For Clojure, or for editing in general?

richiardiandrea 2017-03-31T18:55:10.641657Z

sorry, for Clojure, when I paste I then have to TAB TAB TAB at the moment

seancorfield 2017-03-31T18:55:41.652200Z

Did you follow the opinionated setup guide? i.e., do you have parinfer, paredit, etc?

seancorfield 2017-03-31T18:56:25.666636Z

If so you should be able to select a whole block of code (ctl-=) and then smart indent (ctl-i).

seancorfield 2017-03-31T18:56:52.675401Z

(key bindings may vary between win/mac/linux)

richiardiandrea 2017-03-31T18:56:56.676915Z

I am a paredit user, and on emacs I use aggressive-indent-mode, this is the first time I am trying to use proto-repl for real 😄

seancorfield 2017-03-31T18:57:27.686872Z

I switched from Emacs to ProtoREPL after Conj. Took about a week to get used to it but I love it now.

richiardiandrea 2017-03-31T18:57:53.695273Z

oh, I found auto-indent, I am going to try it right now

seancorfield 2017-03-31T18:57:58.697093Z

Def. recommend following Jason's "opinionated setup" -- but then turning OFF the auto-refresh of namespaces options.

richiardiandrea 2017-03-31T18:58:35.709140Z

will do Sean, thank you!

seancorfield 2017-03-31T18:59:16.722151Z

You won't need auto-indent installed.

richiardiandrea 2017-03-31T20:55:52.766418Z

it is very weird my repl does not seem to evaluate anything...

seancorfield 2017-03-31T20:57:31.793449Z

How did you start it?

richiardiandrea 2017-03-31T20:58:28.809015Z

from the ui, and i am using boot , is it working with boot?

seancorfield 2017-03-31T20:59:11.820549Z

Yes, I use it with Boot all the time. Did you get anything showing in the REPL panel?

richiardiandrea 2017-03-31T20:59:51.832018Z

also another thing I wanted to ask, is there a way to configure things per project? for instance if the command that calls the repl is different from project to project, can I change the value of the proto-repl command?

seancorfield 2017-03-31T21:00:52.850742Z

The way we do it is to configure ProtoREPL to invoke boot dev repl and have a different dev task in each project as needed.

richiardiandrea 2017-03-31T21:01:23.859342Z

so I guess the answer is no 😄 ok fair enough

richiardiandrea 2017-03-31T21:01:53.867873Z

ok, my dev task is actually using lumo instead of nRepl

richiardiandrea 2017-03-31T21:02:05.871150Z

that is the problem

seancorfield 2017-03-31T21:02:59.885869Z

Our dev task adds the proto-repl dependency which enables a bunch of stuff.

👍 1
richiardiandrea 2017-03-31T21:04:54.916896Z

I'll call mine proto 😉

seancorfield 2017-03-31T21:10:47.005571Z

We have a default version of the task in ~/.boot/profile.boot and override it in projects' build.boot as needed.

seancorfield 2017-03-31T21:18:48.120531Z

I'll be interested to hear how get on with ProtoREPL once you've got it running smoothly and you're doing day-to-day work in it.

seancorfield 2017-03-31T21:20:07.138962Z

I forced myself to use it -- and not open Emacs at all -- for a full week before making a decision.

richiardiandrea 2017-03-31T21:22:11.167500Z

ok I will be doing some graphs mainly but I am not planning to switch permanently, emacs has a lot of additional features I am using (like .dir-locals.el, custom functions for navigating sexps, ...)

richiardiandrea 2017-03-31T21:27:34.242028Z

there is no key binding for starting a repl right?

richiardiandrea 2017-03-31T21:34:09.332916Z

ups random crash

seancorfield 2017-03-31T21:54:04.581725Z

Yeah, there's a key binding for starting a REPL: c-m-, l

richiardiandrea 2017-03-31T22:06:58.732486Z

sorry for bombarding, but I have an error with proto-repl-chart and know nothing about how to debug it 😄

richiardiandrea 2017-03-31T22:07:24.737192Z

also, the loader keeps spinning over and over for some reason

seancorfield 2017-03-31T22:07:24.737295Z

I haven't played with the chart stuff, sorry.

richiardiandrea 2017-03-31T22:07:29.738244Z

np

jasongilman 2017-03-31T22:17:54.849578Z

@richiardiandrea What did you do to get the error? If you open the console you should be able to see the full stacktrace too.

richiardiandrea 2017-03-31T22:18:41.857316Z

ah!

nrepl-connection.coffee [sm]:178 TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.(…)(anonymous function) @ nrepl-connection.coffee [sm]:178

richiardiandrea 2017-03-31T22:59:19.236021Z

is there a way to jump back and forth to a REPL?