This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-21
Channels
- # announcements (1)
- # aws (18)
- # babashka (5)
- # beginners (72)
- # biff (2)
- # calva (38)
- # cider (2)
- # clj-commons (6)
- # clj-yaml (2)
- # clojars (7)
- # clojure (41)
- # clojure-austin (5)
- # clojure-europe (78)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-uk (3)
- # clojurescript (13)
- # component (9)
- # cursive (37)
- # datahike (3)
- # datomic (7)
- # fulcro (7)
- # graphql (3)
- # holy-lambda (2)
- # honeysql (8)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (1)
- # leiningen (19)
- # lsp (104)
- # malli (5)
- # nbb (8)
- # off-topic (60)
- # polylith (22)
- # portal (2)
- # reagent (24)
- # reveal (1)
- # shadow-cljs (126)
- # test-check (11)
- # tools-build (39)
- # vim (23)
- # xtdb (10)
I ended up setting it up as follows:
• If I use Portal but without the middleware (`clojure -M:portal:nrepl` or clojure -M:portal:rebel
for me), then (after starting Portal), it just behaves like a regular tap>
listener, only displaying what is explicitly tap>
'd.
• If I use Portal with the middleware (`clojure -M:portal:nrepl:dev/repl` or clojure -M:portal:rebel:dev/repl
for me), then it displays all evaluated results via the middleware...
• ...unless the evaluation involved a call to tap>
in which case it displays any stdio data, followed by any test reports, followed by any exceptions, followed by actual tap>
'd value (so it is always at the top of the Portal window and can be manipulated by my hotkeys/snippets without leaving my editor).
And that's controlled by my calva/config.edn
which has my customREPLCommandSnippets
from my vscode-calva-setup repo -- with :dev/repl
coming from my dot-clojure repo so they're nicely decoupled.
![awesome](https://emoji.slack-edge.com/T03RZGPFR/awesome/dd7ac693c334a2b4.png)
VS Code/Calva config to start Portal: https://github.com/seancorfield/vscode-calva-setup/blob/develop/calva/config.edn#L65-L126 Aliases: https://github.com/seancorfield/dot-clojure/blob/develop/deps.edn#L47-L71 Starting a REPL with optional middleware based on the classpath: https://github.com/seancorfield/dot-clojure/blob/develop/dev.clj#L125-L151 ☝️:skin-tone-2: For reference, for anyone interested... Feel free to DM me with Qs or follow-up in a thread!