This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-12
Channels
- # babashka (22)
- # beginners (112)
- # calva (7)
- # cider (2)
- # clj-kondo (43)
- # cljdoc (25)
- # cljsrn (30)
- # clojars (16)
- # clojure (73)
- # clojure-australia (2)
- # clojure-bay-area (8)
- # clojure-europe (16)
- # clojure-finland (1)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-uk (9)
- # clojurescript (28)
- # clojureverse-ops (2)
- # conjure (2)
- # css (22)
- # cursive (28)
- # datomic (9)
- # depstar (28)
- # emacs (6)
- # fulcro (39)
- # graalvm (61)
- # honeysql (38)
- # instaparse (3)
- # jobs (1)
- # kaocha (3)
- # malli (7)
- # pathom (83)
- # sql (3)
- # tools-deps (18)
- # vim (2)
- # xtdb (15)
It seems I stumbled upon a bug: when using babashka as an nrepl server, printing something will correctly send the output to the nrepl client, however printing something inside something lazy-evaluated will instead send the result to babashka process itself:
I’m running into a strange issue where a var can’t be found in a required namespace but when running that namespace directly, things are fine:
bb -cp bb-src -m mkl.atom
clojure.lang.ExceptionInfo: Could not resolve symbol: posts/sort-posts [at /Users/martinklepsch/code/03-personal/martinklepsch.org/bb-src/mkl/view.clj, line 197, column 16]
bb -cp bb-src -m mkl.view
; => works fine
note how the error occurs in view.clj
but then running mkl.view
is doing just fine
yes, I can push it
hmm, if I add a (prn (resolve 'mkl.posts/sort-posts))
in the mkl.view namespace then I get nil when invoking that through -m mkl.atom :/
and when I put a side effect in the mkl.posts
ns I don't see it, so it seems it's not getting loaded somehow
yeah that matches what I’ve seen. I’ve observed something similar when loading these namespaces through the REPL as well but initially discarded it as flakyness in one of the intermediate layers
cool, no rush. Interestingly when deleting the :require mkl.view
from the mkl.atom
namespace it still fails with the same error
@U050TNB9F I think I found it. I think you have a circular reference