This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-20
Channels
- # announcements (33)
- # aws (1)
- # babashka (8)
- # beginners (100)
- # calva (59)
- # clara (4)
- # clj-kondo (33)
- # cljdoc (9)
- # cljs-dev (30)
- # cljsrn (1)
- # clojure (28)
- # clojure-australia (1)
- # clojure-boston (1)
- # clojure-dev (4)
- # clojure-europe (14)
- # clojure-france (5)
- # clojure-italy (7)
- # clojure-nl (1)
- # clojure-uk (36)
- # clojurescript (13)
- # clojureverse-ops (6)
- # conjure (2)
- # cursive (2)
- # datahike (11)
- # datalevin (1)
- # datomic (106)
- # graphql (3)
- # helix (10)
- # holy-lambda (24)
- # kaocha (2)
- # lambdaisland (3)
- # lsp (199)
- # malli (35)
- # off-topic (16)
- # pathom (7)
- # polylith (38)
- # portal (16)
- # quil (2)
- # re-frame (18)
- # reagent (57)
- # shadow-cljs (11)
- # testing (3)
- # xtdb (9)
@djblue Can you think of a reason by evaluating (portal.api/open {:launcher :vs-code})
into a Socket REPL from VS Code would not open the VS Code webview? But (portal.api/open {})
does open an external browser?
Are there some specific things that the :vs-code
launcher depends on in the environment? Perhaps JVM version? (this is a REPL running on JDK8 for... reasons...)
Hmm, let me go digging...
...yup, that was the issue! This particular REPL was started in a different folder so .portal
wasn't available by walking up the filesystem. I just added a symlink to deal with this situation.
No, this is down to a quirk of our environment at work.
All our Clojure code + build infrastructure + everything "modern" lives in one repo wsmain
and all our CFML legacy code lives in a second repo worldsingles
(what used to be our single repo).
Normally I run VS Code out of wsmain
and that's where .portal
is and everything works great in the Clojure world.
Today, it finally occurred to me that I could use Portal with the Socket REPL that runs inside our CFML apps!
But the REPL that the CFML apps starts is in the application's web root -- in worldsingles/wsadmin/www
-- not in the wsmain
repo at all.
The UI/runtime connection makes perfect sense the way it is. I just have a very weird setup for this embedded REPL 🙂
But the upshot is: I can now develop live into our legacy apps with full debugging and with Portal used in VS Code to visualize data inside the CFML app!
In the future, if repl extensions provide a repl api to other extensions, the ux could be much better 👌
I just moved my "Portal extras" from my dot-clojure repo directly into my VS Code/Clover setup, which will make it easier for others to adopt my VS Code/Portal setup, without needing to look at my dot-clojure setup.