This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-03
Channels
- # announcements (63)
- # asami (29)
- # beginners (23)
- # calva (23)
- # cider (18)
- # clj-kondo (12)
- # clojure (156)
- # clojure-europe (30)
- # clojure-italy (6)
- # clojure-nl (5)
- # clojure-uk (6)
- # clojurescript (14)
- # conjure (26)
- # cursive (8)
- # datalog (143)
- # datascript (1)
- # datomic (6)
- # duct (2)
- # emacs (50)
- # events (4)
- # figwheel-main (6)
- # fulcro (7)
- # graphql (12)
- # jobs (6)
- # malli (1)
- # mid-cities-meetup (2)
- # off-topic (4)
- # pathom (6)
- # portal (7)
- # re-frame (10)
- # reagent (8)
- # reitit (10)
- # releases (1)
- # reveal (18)
- # shadow-cljs (39)
- # sql (4)
- # tools-deps (36)
- # vim (25)
- # xtdb (6)
Just released 0.2.0 of portal, a data browser similar to REBL https://github.com/djblue/portal/releases/tag/0.2.0. http://djblue.github.io/portal/ for a live demo.
@U1G869VNV I just went to try this and discovered it doesn't work on Windows with Powershell (and then I looked at the source and it was obvious why). Maybe make that clear in the README to save other Windows folks some time?
This was the error, by the way:
Execution error (IllegalArgumentException) at clojure.java.shell/parse-args (shell.clj:47).
No value supplied for key: --app=
user=>
FWIW, I get the exact same error on WSL on Windows. I thought that maybe starting it from Ubuntu would work since it tries to shell out to Chrome...?
(it looks very cool tho' -- so nice to see several open source REBL alternatives appearing -- it validates the approach is worth adopting more widely)
https://github.com/djblue/portal/commit/8e3b17d534eb064386a67d2ba93d6ec779d8dc1a should fix it and can be pulled via git deps
Why try to use Chrome at all? Why not just use (clojure.java.browse/browse-url "
That should open the default browser on every platform.
Could you fall back to browse-url
if it can't find chrome?
https://github.com/djblue/portal/commit/7919617f799a5be8c9ce72741c98b8b6ceaaa74e
Why use Chrome's app mode? What benefits does that have over just opening to the URL in the default browser?
It enables me to eliminates the extra ui provided by chrome which isn't needed. It's mostly an aesthetic thing.
Ah, OK.
So I use Component and I tapped (alter-var-root #'system component/start)
and it seems to have crashed portal.
That would tap>
a record instance
After that, portal no longer responds to tap>
with any values.
Background: I have Atom/Chlorine set up to tap>
every REPL evaluation -- it's how I use Reveal and I figured it would work with Portal as well... which it does for some simple values...
No. Just seems to lock up.
(in that it never displays any more values)
No. I ran (port/clear) (tap> :test)
and :test
did not appear.
It definitely seems to be when I tap>
a Var that contains a Component (a large one but no loops in it).
You should be able to repro it easily in this example app https://github.com/seancorfield/usermanager-example
There's a comment
in the main.clj
that defines the system component and then starts it.
Once you have system
started, try to (tap> system)
and see what happens...
Error: No protocol method IWithMeta.-with-meta defined for type object: [TaggedValue: portal.transit/object, {:id #uuid "fa4bad2c-51fe-445b-97dd-31fce7326317", :type "clojure.core$promise$reify__8501", :string "#object[clojure.core$promise$reify__8501 0x2ce8cf77 {:status :pending, :val nil}]"}]
It's because tagged values, which is what i turn everything that isn't normal clojure data into, doesn't support metadata.
Trying the latest version...
I did git pull
and tried it again, and it still doesn't work -- exactly the same as before.
Ah, 0.2.1 isn't on the windows branch. My bad.
Yup. 0.2.1 works perfectly.
I'm going to delete the windows branch now then. Let me know if run into any other issues. Also, the ux is still WIP and I am very open to ideas.
Are there keyboard shortcuts for navigating back and forth?
I'll update my atom-chlorine-setup
repo tomorrow with details about Portal so folks can choose Portal, or Reveal, or REBL.
This looks really cool, thanks! As an additional data point, I have Chrome installed, but I donโt like to use it unless I absolutely have to. I use https://www.fluidapp.com/ to get rid of unnecessary UI in frequently used webapps.
Very cool! I'm wondering if there are any plans to be able to edit fields and run callbacks on submit? I need something like this, but where I can edit the data as well. If this is to be purely for inspecting then I might fork this for my own usecase
@U06B8J0AJ, I think I'll update open to take some options. Currently I'm planning to add support for selecting a theme, but it could also take a disable chrome app flag or if people prefer to opt in instead, that could also work.
@UG9U7TPDZ editing is something I want as well, not sure how the ux would work. I was thinking of making atoms explicitly editable, I haven't thought too much about extensibility though.
This is awesome! It perfect fits my use case. Thanks for showcasing it! ๐
Ardoq is happy to release verson 0.1.0 of azure-api which allows for simple usage of the Azure REST APIs in Clojure. https://github.com/ardoq/azure-api

CIDER 0.26 (Nesebar) and nREPL 0.8 are out! More details - https://github.com/clojure-emacs/cider/releases/tag/v0.26.0 and https://metaredux.com/posts/2020/06/15/nrepl-0-8-evolving-the-protocol.html Special thanks to Clojurists Together for their support and to all the contributors for their help! Cheers!
