This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-03
Channels
- # announcements (1)
- # babashka (31)
- # babashka-sci-dev (53)
- # beginners (33)
- # calva (54)
- # cider (15)
- # clj-kondo (9)
- # clojure (115)
- # clojure-dev (19)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (78)
- # clojurescript (10)
- # clr (9)
- # community-development (9)
- # core-async (24)
- # cursive (18)
- # datomic (59)
- # emacs (43)
- # figwheel-main (2)
- # fulcro (4)
- # graphql (4)
- # malli (7)
- # meander (12)
- # nbb (14)
- # off-topic (22)
- # polylith (9)
- # re-frame (5)
- # reitit (3)
- # releases (1)
- # shadow-cljs (36)
- # sql (1)
- # tools-build (23)
- # xtdb (13)
quick q about loading files after a cider-jack-in
- I am trying to C-c C-k
/ "load buffer" in a file with a number of test cases which is require-ing a number of dependencies from elsewhere in my project. Naturally this does not work, as these dependencies have not been loaded into the new REPL session. What's the shortest path to load only required dependencies so I can execute tests in the current test file? Do I need to just run cider-load-all-project-ns
to load all namespaces in the project? Is there a reason or a gotcha for why I shouldn't do that whenever I start a session?
Why doesn’t this work? Every file should be loadable. It will just require it’s own dependencies
The immediate failure I got was an FileNotFoundException for a dependency which ends in an unhandled CompilerException. I think this could be caused by a missing alias (I need to set up dir-locals). I'll report back if I can't resolve the problem. It doesn't appear that it is able to find a dependency on the classpath though which makes me think that not loading my "test" alias which defines the :extra-paths field where my tests live may be causing C-c C-k to fail
for completeness here is the trace https://gist.github.com/matt-y/5d9aa826ecb001b6646723c768fdc616
so nothing cider related really. type in the repl (require 'token)
if that fails nothing CIDER can do
I'll figure out how to get them set up properly. Thanks @U11BV7MTK