Fork me on GitHub
#protorepl
<
2017-03-17
>
amoe12:03:05

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

amoe12:03:47

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

amoe12:03:19

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

amoe12:03:43

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

amoe12:03:12

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

amoe12:03:17

It seems that I always remain in the user namespace.

amoe12:03:37

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

jasongilman13:03:57

@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.

amoe13:03:56

so it switches namespace "just in time"

amoe15:03:51

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

amoe15:03:15

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.

phreed20:03:15

@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.