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
)
evaluating config
in different ways, diff results
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)
your inspect selection works
but sean:inspect-block
I think this go to comment block
Yes, as does Chlorine's built-in evaluate-block
-- which is what I said above.
inspect-var
is different.
(comment [config])
-> work !?!?
Of course, because "current form" expands to the parentheses (again, as I said above).
well, I can use it with []
thanks
Are you using Cognitect's REBL?
regular Chlorine REPL
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
I´m working hard with Lacinia GraphQL now and it´s fulling my time :-)
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:
REBL can work with cljs
via prepls
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?
No I don't know