This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-08
Channels
- # announcements (5)
- # babashka (46)
- # beginners (206)
- # boot (1)
- # bristol-clojurians (1)
- # calva (9)
- # chlorine-clover (27)
- # cider (1)
- # clara (10)
- # clj-kondo (105)
- # cljsrn (2)
- # clojars (1)
- # clojure (104)
- # clojure-europe (6)
- # clojure-nl (2)
- # clojure-uk (18)
- # clojurescript (44)
- # conjure (10)
- # core-async (34)
- # cursive (28)
- # data-science (6)
- # datomic (14)
- # emacs (44)
- # events (1)
- # figwheel-main (1)
- # fulcro (13)
- # graphql (9)
- # helix (12)
- # kaocha (2)
- # meander (4)
- # off-topic (2)
- # pathom (1)
- # quil (1)
- # re-frame (21)
- # shadow-cljs (49)
- # spacemacs (6)
- # xtdb (8)
Hello all, I don´t know if is it a bug but ...
(ns app.core
(:require [mount.core :as mount]
[app.config :refer [config]])) -> [{:config {:bancos ...}}]
(comment
config -> nil
)
I just remembered that it's hard to eval just a single var inside an expression like that because "current form" expands to the parens around it, so you get (comment config)
which is nil
.
Maybe you can double-click config
and evaluate selection @fabrao?
(I use my inspect-var
in cases like this, so it sends (var config)
to REBL which displays the value and any metadata etc)
Yes, as does Chlorine's built-in evaluate-block
-- which is what I said above.
inspect-var
is different.
Of course, because "current form" expands to the parentheses (again, as I said above).
Are you using Cognitect's REBL?
Ah, REBL brings so much useful stuff...
I hope to find time tomorrow to put up a new video on YouTube showing how I use it (to go with the three that I put up months ago)
I saw your video about REBL, but I switch from Emacs and I didn´t have time to use it yet
and I had to use this
(defn- encode-string [valor encode]
(String. (.getBytes valor encode)))
(defn- string->utf8 [valor]
(encode-string valor "UTF-8"))
(defn- convert-strings [linha campos]
(reduce #(assoc %1 %2 (string->utf8 (%2 linha))) linha campos))
for converting "strange" chars from SQLSERVER databaseIf only REBL would work with ClojureScript... :thinking_face:
no fancy datafy/nav stuff because of the process boundary, but it can show deserialized evaluation results
For the curious:
1. start a cljs prepl (like that: clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' -J-Dclojure.server.cljs-prepl='{:port 50505 :accept cljs.server.browser/prepl}'
)
2. in a repl with rebl on the classpath, evaluate this:
(cognitect.rebl/ui :proc
#(clojure.core.server/remote-prepl
"localhost" 50505
%1 %2
:valf (partial clojure.edn/read-string {:default tagged-literal})))
I saw that there were some problems with PREPL over Shadow-CLJS or Figwheel, do you know if they still happen?