Fork me on GitHub
#reveal
<
2020-10-09
>
fabrao12:10:04

hello all, when you say `

clj -A:reveal -J-Dclojure.server.repl='{:port 5555 :accept vlaaad.reveal/repl}'
where -A:reveal reveal alias is configured?

vlaaad12:10:01

nowhere, it’s assumed to have :extra-deps {vlaaad/reveal {:mvn/version "1.0.130"}}

vlaaad12:10:17

I probably should state it in the readme 😄

vlaaad13:10:25

it’s also a good idea to add :ns-default vlaaad.reveal , and maybe even :exec-fn repl

vlaaad13:10:05

I’ll add it to the readme. Here is an example that makes reveal easy with -X as well: https://github.com/practicalli/clojure-deps-edn/blob/2b0562a69b8a2e55fd8736f6ee5482e5090511e8/deps.edn#L258-L262

fabrao13:10:32

I forgot to include

vlaaad/reveal {:mvn/version "1.0.130"}

fabrao13:10:16

I tried to do something crazy, Chlorine connecting to reveal 🙂

vlaaad13:10:05

You might be interested in this discussion: https://github.com/vlaaad/reveal/issues/2

fabrao13:10:52

thank you !!!

seancorfield17:10:30

@fabrao If you use my atom-chlorine-setup config, that will tap> every evaluation, so if you start Reveal's REPL it adds its UI as a tap watcher automatically (right @vlaaad?)

vlaaad17:10:25

That's right, reveal repls add tap watchers

seancorfield17:10:58

Otherwise, if you start any REPL with Reveal on the classpath, you can do (add-tap (vlaaad.reveal/ui))

fabrao17:10:59

Hello Sean, I´ll take a look

seancorfield17:10:15

(I see I've posted a load of info into issue #2 above about that)

seancorfield17:10:35

I'm using Reveal full-time these days (instead of REBL).

seancorfield17:10:14

(now that I have the auto-table-view thing that Vlad provided me with for always showing the most recent tap> result in a table!)

fabrao17:10:18

I didn´t like REBL, and I was thinking call you and ask how do you use it

fabrao17:10:09

it seens that you use all thoses in your config? REBL, Reveal and Portal

seancorfield17:10:41

There are still things that REBL does with datafy/`nav` that I really like (and miss somewhat in Reveal) but Reveal's UI has grown on me 🙂

seancorfield17:10:02

My dot-clojure file you mean @fabrao? It is a "kitchen sink" of everything I might use on any project -- and my atom-chlorine-setup is designed to automatically use REBL if it is running else fall back to just calling tap>

seancorfield17:10:27

Both Reveal and Portal support tap>

seancorfield17:10:48

The only "benefit" of having custom REBL support in there is that REBL's submit accepts both a source form and a value so it can show you what was evaluated, and that is part of the history that you can call into the REPL pane to modify and resubmit inside REBL. Reveal and Portal effectively only support the value part of that since that's what gets sent via tap>.

fabrao17:10:12

I´m building may own atom-chlorine-setup like you, and I´ll take a look that part about using reveal

fabrao17:10:56

how do you use chlorine-config.cljs ? Do you compile it ?

seancorfield17:10:38

No. Chlorine just evaluates it as-is.

fabrao17:10:54

😱 I didn´t know that

seancorfield17:10:20

You can easily edit it inside Atom, once you have Chlorine active (via a REPL), via the "Chlorine: Open Config" command. Changes take effect immediately since it's all interpreted using sci (from borkdude).

seancorfield17:10:31

@fabrao Feel free to bombard me with Chlorine questions in the #chlorine channel, if you get stuck 🙂

vlaaad17:10:37

@seancorfield re submit to REBL including form, this is possible in Reveal:

(require '[vlaaad.reveal :as r]
         '[vlaaad.reveal.ext :as rx])

(def ui (r/ui))

(defn submit-with-form [form value]
  (ui (rx/stream-as-is
        (rx/vertical
          (rx/as form
            (rx/raw-string (pr-str form) {:fill :util}))
          (rx/horizontal
            (rx/raw-string "=>" {:fill :util})
            rx/separator
            (rx/stream value))))))

(submit-with-form '(+ 1 2 3) 6)

;; reveal shows:
;; (+ 1 2 3)
;; => 6

vlaaad17:10:39

no history to edit/re-evaluate though...

fabrao18:10:32

I´m trying view:table and see some columns with ... , is it expandable too or just with navigate into it?

vlaaad19:10:51

you can see the whole value in a cell with view:value action

vlaaad19:10:46

same popup, same shortcut there