This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-19
Channels
- # announcements (19)
- # asami (9)
- # babashka (26)
- # beginners (87)
- # biff (23)
- # calva (6)
- # clerk (7)
- # clj-kondo (3)
- # cljsrn (3)
- # clojure (115)
- # clojure-belgium (1)
- # clojure-berlin (1)
- # clojure-europe (31)
- # clojure-gamedev (5)
- # clojure-nl (2)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (43)
- # clr (23)
- # datalevin (1)
- # datomic (14)
- # dev-tooling (23)
- # fulcro (38)
- # graphql (1)
- # gratitude (1)
- # jobs (1)
- # lsp (30)
- # off-topic (7)
- # pathom (25)
- # portal (21)
- # quil (6)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (34)
- # sql (5)
- # tools-deps (6)
- # xtdb (13)
Managed to make the load namespace error reproducible, could someone else try? 🙂
1. create a new ns called foo
2. create a new function in foo
called profile
3. from ns bar
- require foo
and load/eval current file and all dependencies - works ✅
4. in ns bar
call (foo/profile)
in one of bar’s functions, eval ->> no such var foo/profile
I couldn’t reproduce with the steps you provided. I created the bar
ns then ran jack-in, then started at #1.
@UBN9SNVB4 can you repro that in a minimal deps project (`deps.edn` with {}
+ src/foo.clj
+ src/bar.clj
)? From a fresh REPL.
I added a minimal project like that to the test-data of the Calva repository: https://github.com/BetterThanTomorrow/calva/tree/dev/test-data/projects/load-bar-requiring-foo I can't reproduce it as is.
@U0ETXRFEW I figured out why this happens. It’s when I add new things into files e.g. requires or new namespaces without hitting Save and use load requires/dependencies
(my old editor used to auto save, this can be configured in vs-code)
I checked the calva source code and realised it will read the files on disk when issuing that command which quickly explained my problem 😄