This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-29
Channels
- # announcements (4)
- # architecture (25)
- # babashka (23)
- # beginners (56)
- # boot (4)
- # calva (1)
- # cider (1)
- # cljs-dev (15)
- # clojure (135)
- # clojure-europe (4)
- # clojure-nl (21)
- # clojure-uk (61)
- # clojurescript (47)
- # community-development (4)
- # cryogen (11)
- # cursive (11)
- # data-science (11)
- # fulcro (25)
- # funcool (5)
- # graalvm (1)
- # graphql (4)
- # kaocha (4)
- # lambdaisland (20)
- # lumo (7)
- # meander (14)
- # off-topic (9)
- # pathom (2)
- # portkey (1)
- # re-frame (5)
- # reagent (53)
- # reitit (2)
- # ring (3)
- # shadow-cljs (32)
- # spacemacs (4)
- # sql (34)
- # testing (1)
- # tools-deps (3)
Hello, is it normal to manually trigger load-file (cmd+shift+L) before sending forms to repl? Is there a way to watch file changes and automatically load-file?
I always find myself in situation where I'm trying out something and my changes are not in sync with the repl.
The first thing I would suggest is trying to re-arrange your code so that you can easily load a single form without having to reload the world.
If that’s too difficult, I would suggest a third party tool: https://github.com/clojure/tools.namespace
Cursive does have an option to auto reload dependencies, but I’ve found it to cause problems when working on a prod REPL, so I keep it off.
IME - Auto-loading a file is kind of fraught with problems (e.g. it reloads halfway through a change or it reloads in a bad state)
I see. I'll stick with manually loading the files for now. Thanks for the reference, I found https://github.com/stuartsierra/component which seems like a dependency injection
How can you configure cursive to resolve symbols from core.logic run/fresh macros?
Ofcourse, I can resolve it as clojure.core/fn
. But that doesn’t work for (run 5 [q] ...)