protorepl

2017-03-17T12:47:05.643213Z

Hi there, I am trying to set up protorepl for my co-worker

2017-03-17T12:47:47.652056Z

I haven't used atom very much in the past, and I am having trouble understanding how namespace switching is supposed to work

2017-03-17T12:48:19.658602Z

Is it the case that when I focus a source file in Atom, the repl should automatically switch to that namespace?

2017-03-17T12:48:43.663610Z

That's not happening for me, or it seems to happen only sometimes

2017-03-17T12:49:12.669590Z

Most of the time I get messages Unable to resolve symbol when I try to access symbols in that namespace after focusing the repl.

2017-03-17T12:50:17.683582Z

It seems that I always remain in the user namespace.

2017-03-17T12:50:37.688013Z

I have [proto-repl "0.3.1"] in dependencies for the project.

jasongilman 2017-03-17T13:12:57.006114Z

@amoe It doesn't automatically do that when a file is focused. That's an interesting idea. Typically you will select some code or place your cursor in a block of code and send that to the REPL via a keyboard shortcut. Proto REPL knows what ns it comes from so it executes it in the ns of the file.

2017-03-17T13:13:40.017263Z

@jasongilman ah, I see

2017-03-17T13:13:56.021332Z

so it switches namespace "just in time"

2017-03-17T15:03:51.156099Z

I wondered, is it possible to get any red/green display of tests that were run using clojure.test?

2017-03-17T15:04:15.164499Z

At the moment, my test is generating a lot of logging output, and it seems like the logging output is making the test success / fail status scroll off the screen.

phreed 2017-03-17T20:48:15.836616Z

@jasongilman regarding boot: I have looked at using a boot task based on https://github.com/danielsz/system/tree/master/examples/boot to replace https://github.com/jasongilman/proto-repl-demo/blob/master/build.boot It is pretty nice. There are some issues: * The default Boot Args are more complex than is needed: now just proto-repl * The version of a transitive dependency [proto-repl-charts "0.3.2" :exclusions [org.clojure/tools.namespace]] * The new (require '[system.boot :refer [system]]) (deftask proto-repl [] (comp (watch :verbose true) (system :auto true) (repl :server true))) The main improvement is better updating of the repl state when the files change.