This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (4)
- # asami (5)
- # babashka (20)
- # beginners (94)
- # bristol-clojurians (1)
- # calva (23)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (43)
- # cljfx (2)
- # cljs-dev (13)
- # clojure (112)
- # clojure-dev (44)
- # clojure-europe (17)
- # clojure-nl (5)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurebridge (1)
- # clojurescript (92)
- # cursive (17)
- # data-science (8)
- # datahike (1)
- # datalevin (1)
- # datomic (3)
- # deps-new (7)
- # events (2)
- # fulcro (40)
- # graalvm (110)
- # holy-lambda (16)
- # introduce-yourself (1)
- # lsp (13)
- # malli (8)
- # missionary (12)
- # off-topic (10)
- # pathom (13)
- # polylith (10)
- # portal (28)
- # re-frame (37)
- # reitit (1)
- # releases (1)
- # shadow-cljs (30)
- # spacemacs (1)
- # tools-deps (9)
- # xtdb (10)
Just got around to adding deep diff to my project and trying it out in Portal... OMG! That is so awesome!
The version I showed in the DEMO today is bundled in the Portal UI and runs in cljs, so you shouldn't need to include the dep.
I'm really glad you like it though! It's definitely more useful now with multi-select.
Oh, good to know... haha... I'll remove that then... I just hadn't noticed the diff as an option before...
Part of it's predicate is to wait for two values to be selected, might be why it didn't show up before
@UJCC6CE9E For shadow, I usually have something in a dev folder, like https://github.com/djblue/portal/blob/master/examples/web/dev/user.cljs and add it as a https://shadow-cljs.github.io/docs/UsersGuide.html#_preloads.
Alternatively, you can have a client/server implementation with the
portal.client API. This was one of the reason why I needed this feature 🙂
@UFSMGQ690 I’m working on getting console/log to run in cljs, should be similar to what’s happening in https://github.com/Cyrik/omni-trace, although i’m not sure its gonna be as easy to get the file/line data from inside the function
@UFSMGQ690 ah i lied, the console log stuff is working from cljs, i must have destroyed my local install… whats not working is the “goto source” and the console macros don’t caputre the source file. i’ll try fixing the second part today
@djblue I'll try it today. I usually start shadow in a terminal with
shadow-cljs watch something and then connect cider to the nREPL server.
@U02EMBDU2JU awesome work! I made a https://github.com/djblue/portal/commit/a19f5b5818c8a57236f34c9adcc27c5ef54fe21c so that it works with goto-definition. I saw the same
repl-input.cljs issue in emacs, so it's probably a repl issue.
@djblue interesting, your tweak doesn’t actually change anything on my setup. cljs compilation is crazy
Good morning all. I was wondering what is the correct way of setting up the log behaviour that Chris was demoing yesterday. I checked the project code he was using yesterday and can see a log macro defined here: https://github.com/djblue/portal-talk/blob/main/src/url_shortener/console.cljc Am I meant to copy that code over to my projects, or is there some other way to do this that I'm overlooking?
you can just require the namespace (require ’[portal.console :as console]) and call the console/log directly. not sure why he copied the namespace into the shortener project, since the exact code is already in portal.
I have code in my dev setup that hooks into tools.logging and sends all logging to Portal (as well as logging it the normal way). See my dot-clojure repo's dev.clj file.
The difference is that in the url-shortener.console version, I can enable and disable it. I will probably upstream this feature.
@djblue I'm noticing some issues when using Portal in multiple projects in IntelliJ (via plugin), I notice if I have a project using, and then start portal in another project window, in some cases I see the data just moving to the wrong project, and when it happens this also crashes portal in other window it was open (and also notice the layout shifting back to the wrong blue theme)
I feel like this goes back to another issue you brought up with the intellij extension handling multiple projects incorrectly. Might need to read up more on how to handle that. :thumbsup:
I just watched the talk you did for London Clojurians. I may have missed this but the log command is that a portal command or from somewhere else?
log was a macro that
tap>s maps with log like data. I would suggest looking at https://github.com/djblue/portal/blob/master/src/portal/console.cljc if you are curious.