This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-10
Channels
- # babashka (8)
- # beginners (38)
- # calva (28)
- # cider (7)
- # clj-kondo (6)
- # clojure (113)
- # clojure-austin (2)
- # clojure-berlin (11)
- # clojure-europe (12)
- # clojure-losangeles (5)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-spec (5)
- # clojure-uk (4)
- # clojurescript (23)
- # events (2)
- # fulcro (6)
- # hyperfiddle (2)
- # missionary (5)
- # music (1)
- # off-topic (20)
- # portal (5)
- # reitit (4)
- # releases (1)
- # scittle (3)
- # sql (10)
- # squint (2)
Hey folks, I'm not too familiar with the whole Clojure ecosystem yet, but I have an alias that should in theory add both CIDER and Portal middleware to my nrepl, except Portal still doesn't pick up on my evaluations without an explicit tap> - could someone point me in the right direction please? I'll send a couple of screenshots in thread.
:repl/inspect
{:extra-deps
{nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.37.0"}
djblue/portal {:mvn/version "0.46.0"}}
:main-opts ["--main" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware,portal.nrepl/wrap-portal]"
"--interactive"]}
In the screenshot below, only the tap>ed statement is submitted to Portal:
(just noticed that this is an old version, but 0.54.2 doesn't work either)Update: it works when I eval stuff with Calva after I connect to the already-running REPL, it just doesn't submit them through the terminal for some reason
Sorry for the confusion, this is intentional behavior in Portal https://github.com/djblue/portal/blob/master/src/portal/nrepl.clj#L63. Since it is difficult to know if an evaluation came from the user or tooling, Portal uses :file
as a heuristic for user provided vs tooling provided. I think when evaluating code at the REPL, there is no file :thinking_face: