This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-05
Channels
- # adventofcode (138)
- # announcements (1)
- # babashka (4)
- # beginners (71)
- # biff (2)
- # calva (7)
- # cider (20)
- # clj-kondo (4)
- # cljsrn (4)
- # clojure (36)
- # clojure-europe (37)
- # clojure-nl (2)
- # clojure-norway (27)
- # clojure-portugal (1)
- # clojure-uk (4)
- # clojurescript (8)
- # emacs (3)
- # graphql (1)
- # hugsql (4)
- # humbleui (6)
- # hyperfiddle (1)
- # jobs-discuss (18)
- # joyride (2)
- # malli (17)
- # meander (7)
- # membrane (8)
- # off-topic (16)
- # pathom (14)
- # portal (4)
- # rdf (36)
- # reitit (4)
- # releases (2)
- # remote-jobs (1)
- # scittle (15)
- # shadow-cljs (13)
- # tools-deps (40)
Case
• File foo.cljc
creates a Record.
(ns foo)
(defrecord Foo ...)
• File bar.cljc
refers the the generated constructor function ->Foo
.
(ns bar
(:require [foo :refer [->Foo]]))
• Clean fresh jacked in repl, with all files saved.
If I evaluate the ns declaration of bar
, I get an IllegalAccessError that ->Foo
does not exist. Problem goes away if I load the foo
namespace manually.I don't have this. Can you reproduce it with something as simple as this:
├── deps.edn
└── src
├── bar.cljc
└── foo.cljc
deps.edn
{}
foo.cljc
(ns foo)
(defrecord Foo [field])
bar.cljc
(ns bar
(:require [foo :refer [->Foo]]))
(comment
(->Foo "hello")
:rcf)
?
If I:
1. jack-in
2. evaluate the bar
ns form
3. evaluate the expression in the RCF
I get: #foo.Foo{:field "hello"}
.I think this would be very good to pin down. There are things about the loading/evaluating of files that I think could benefit the Calva Ux if we figured out.
Dear Calva friends, new version out: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.321
• Fix: https://github.com/BetterThanTomorrow/calva/issues/1979
• Fix: https://github.com/BetterThanTomorrow/calva/issues/1985
• Fix: https://github.com/BetterThanTomorrow/calva/issues/1981
• https://github.com/BetterThanTomorrow/calva/issues/1988
Special thanks to @douglaj for fixing the regression with running a single test! ❤️