Skip to content

Commit d471611

Browse files
committed
Fix the portal injected code
1 parent e257251 commit d471611

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Unreleased
22

3-
## Added
4-
53
## Fixed
64

7-
## Changed
5+
- Fix the `--portal`/`:portal` option
86

97
# 0.25.120-alpha (2024-01-22 / cd0da82)
108

@@ -203,4 +201,4 @@ Initial release
203201
- lambdaisland.classpath integration
204202
- Support for cider-nrepl, refactor-nrepl
205203
- Basic support for shadow-cljs cljs nREPL-base REPL
206-
- Auto-connect for Emacs
204+
- Auto-connect for Emacs

src/lambdaisland/launchpad.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@
202202
treated like an atom."})
203203
(fn portal
204204
[]
205-
(let [p ((requiring-resolve 'portal.api/open) @user/portal-instance)]
206-
(reset! user/portal-instance p)
205+
(let [p ((requiring-resolve 'portal.api/open) @@(resolve 'user/portal-instance))]
206+
(reset! @(resolve 'user/portal-instance) p)
207207
(add-tap (requiring-resolve 'portal.api/submit))
208208
p)))))))))
209209

@@ -503,7 +503,7 @@
503503
(.directory working-dir))
504504
_ (.putAll (.environment proc-builder) (or env (:env ctx)))
505505
color (mod (hash (or prefix (first cmd))) 8)
506-
prefix (ansi-fg (+ 30 color) (str "[" (or prefix (first cmd)) "] "))
506+
prefix (str "[" (ansi-fg (+ 30 color) (or prefix (first cmd))) "] ")
507507
process (pipe-process-output (.start proc-builder) prefix)
508508
ctx (update ctx :processes (fnil conj []) process)]
509509
(apply println (str prefix "$") (map shellquote cmd))

0 commit comments

Comments
 (0)