This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-27
Channels
- # announcements (13)
- # asami (12)
- # babashka (65)
- # beginners (62)
- # calva (14)
- # cider (8)
- # clara (11)
- # clj-kondo (16)
- # clojure (86)
- # clojure-europe (12)
- # clojure-gamedev (4)
- # clojure-nl (2)
- # clojure-sg (4)
- # clojure-uk (5)
- # clojurescript (206)
- # clojureverse-ops (11)
- # community-development (7)
- # conjure (12)
- # core-async (2)
- # core-logic (13)
- # cursive (49)
- # datalevin (1)
- # datomic (29)
- # deps-new (3)
- # duct (8)
- # events (5)
- # fulcro (10)
- # helix (5)
- # jobs (1)
- # klipse (5)
- # lsp (178)
- # luminus (1)
- # malli (8)
- # meander (3)
- # membrane (13)
- # missionary (1)
- # nrepl (5)
- # other-languages (4)
- # pedestal (4)
- # reitit (3)
- # releases (1)
- # reveal (27)
- # shadow-cljs (89)
- # tools-build (6)
- # tools-deps (11)
- # vim (2)
- # xtdb (64)
The cider-ns-refresh
function in cider is causing java.sql.SQLException: HikariDataSource HikariDataSource (HikariPool-1) has been closed.
in luminus.. this used to not be the case.
A simple way to repro it:
1. lein new luminus datasource-closed-bug +sqlite
2. cd datasource-closed-bug
3. In routes/home.clj add a simple call to (db/get-user {:id 1})
no need to do anything with the return value
4. Boot the repl in cider, (start)
the app, (migrate)
5. load http://localhost:3000 -> it works
6. execute cider-ns-refresh
7. refresh http://localhost:3000 -> HikariDataSource HikariDataSource (HikariPool-1) has been closed