This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-09
Channels
- # announcements (3)
- # asami (1)
- # babashka (19)
- # beginners (84)
- # calva (3)
- # cider (5)
- # clj-commons (22)
- # clj-kondo (31)
- # cljdoc (4)
- # cljs-dev (5)
- # clojure (65)
- # clojure-australia (1)
- # clojure-europe (44)
- # clojure-nl (2)
- # clojure-uk (2)
- # clojurescript (18)
- # code-reviews (12)
- # conjure (2)
- # core-async (12)
- # data-science (1)
- # datomic (47)
- # deps-new (1)
- # emacs (2)
- # events (4)
- # fulcro (35)
- # integrant (1)
- # jobs (5)
- # jobs-discuss (10)
- # london-clojurians (1)
- # lsp (13)
- # music (1)
- # nextjournal (1)
- # off-topic (11)
- # parinfer (3)
- # pathom (6)
- # polylith (11)
- # portal (41)
- # re-frame (4)
- # reagent (13)
- # reitit (8)
- # remote-jobs (3)
- # sci (18)
- # shadow-cljs (34)
- # spacemacs (3)
- # tools-build (12)
- # tools-deps (6)
- # vim (2)
- # xtdb (7)
I use VSCode and SSH to a local vagrant box to do the development.
In my current setup executing (def p (p/open {:launcher :vs-code}))
opens an empty tab as in the screenshot. Any resolution for that?
My best guess is that the vagrant box isn't accessible from localhost. You can try providing :portal.launcher/host with the ip of the vagrant box and see if that works. Another option is providing :portal.launcher/port and adding a port mapping.
Awesome.
(def p (p/open {:launcher :vs-code
:portal.launcher/port 3434}))
with the port mapping it works. Thanks a lot.Feedback on the IntelliJ plugin:
• First, holy moley! Congrats on a tool that greatly improves my REPL experience!
• It seems that Portal captures keystrokes that it shouldn't. For example, if I have focused on the Portal viewer and then I click shift-shift to open the IntelliJ global navigation popup, some keystrokes (I assume keystrokes that the Portal browser captures) are dropped. A couple of keys keystrokes are e
and l
Interesting, I'll have to look into how the shortcut system in portal interacts with the parent intellij window :thinking_face:
@djblue hello, I'm having a lot of fun with portal on intellij! I loved the custom styles that integrate nicely with IntelliJ, but I notice if you have a portal open already, and open it again (in case of a REPL restart for example) the second time it opens without the custom styles (and end up being quite big)
after that I have to close the project window and open again to get the "IntelliJ style" back again
Looks to be a data race between passing options to the chrome window. I think it's a bigger problem for the production bundle since it loads much faster 👌
https://github.com/djblue/portal/commit/427f5a1e957b9be9ead6cd15ec95348f30b028fa should fix it
@djblue Q about portal.console
: If I wanted to tap>
something that Portal would treat as a log expression, what exactly is it that triggers that? I've tried to tap>
a hash map that looks like what portal.console/capture
does but Portal just displays it as a map.
This https://github.com/djblue/portal/blob/master/src/portal/ui/viewer/log.cljs#L21-L27 is the current decision point.
I'm playing with some code to install tap>
into tools.logging
so while I'm developing, all my code will write those log messages into Portal, but since that's all macros you lose some data (line/column, since you can onto wire into the log*
function inside tools.logging
).
I was originally thinking of writing a tap>
Appender
but that's a lot of messing about...
https://github.com/seancorfield/dot-clojure/commit/b4f2639f8a52eec8cf8c6dffa00e5dc6b0cb4b96 🙂
Done: https://github.com/seancorfield/dot-clojure/commit/39609d591c9846d6cf992e381520b032cf2014de
Not sure how to use/test that?
Within portal, it should popup as a command when a log entry is selected or you can try the shortcut g
d
No, presumably because :file
isn't a sensible value?
https://github.com/djblue/portal/blob/master/src/portal/runtime/jvm/editor.cljc#L22-L31 is the existing code if you are interested
I'm trying .getFileName
on the stack frame now...
Hmm, it seems to just return the filename with no full path... I'll play with it some more tomorrow...
Ah, it does for some logging but not all, it seems.
In the latest Portal in VS Code, I don't seem to be tab into the main content section, BTW.
I have to actually click into the view now, whereas I used to just be able to TAB into it.
I had some issues with multi-select and tab, I may have broken something :thinking_face:
I can't press /
and have it focus on filter either.
When I switch to the Portal tab, the first TAB takes me to the Clear button, TAB then goes to the viewer drop-down, TAB then goes to the command palette.
Even selecting focus-filter from the command palette does nothing unless I've clicked into the content section now.
Confirmed it works on 0.16.3 but broken in 0.17.0
Gotta run.
(we're watching TV now but I just wanted to say that working with Portal in VS Code is amazing and makes my life -- both work and OSS -- so much better... I didn't want to leave things with just "grumbles" and bug reports)