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?nowhere, it’s assumed to have :extra-deps {vlaaad/reveal {:mvn/version "1.0.130"}}
I probably should state it in the readme 😄
it’s also a good idea to add :ns-default vlaaad.reveal
, and maybe even :exec-fn repl
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
I forgot to include
vlaaad/reveal {:mvn/version "1.0.130"}
😞
I tried to do something crazy, Chlorine connecting to reveal 🙂
You might be interested in this discussion: https://github.com/vlaaad/reveal/issues/2
thank you !!!
np 🙂
Otherwise, if you start any REPL with Reveal on the classpath, you can do (add-tap (vlaaad.reveal/ui))
Hello Sean, I´ll take a look
(I see I've posted a load of info into issue #2 above about that)
I'm using Reveal full-time these days (instead of REBL).
(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!)
I didn´t like REBL, and I was thinking call you and ask how do you use it
That's right, reveal repls add tap watchers
it seens that you use all thoses in your config? REBL, Reveal and Portal
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 🙂
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>
Both Reveal and Portal support tap>
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>
.
I´m building may own atom-chlorine-setup
like you, and I´ll take a look that part about using reveal
how do you use chlorine-config.cljs
? Do you compile it ?
No. Chlorine just evaluates it as-is.
😱 I didn´t know that
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).
@fabrao Feel free to bombard me with Chlorine questions in the #chlorine channel, if you get stuck 🙂
sure 🙂
@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
no history to edit/re-evaluate though...
Nice!
Made it an example: https://github.com/vlaaad/reveal/blob/master/examples/e06_submit_with_form.clj
I´m trying view:table
and see some columns with ...
, is it expandable too or just with navigate into it?
you can see the whole value in a cell with view:value
action
same popup, same shortcut there