This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-04
Channels
- # announcements (1)
- # babashka (1)
- # beginners (84)
- # biff (22)
- # calva (9)
- # cider (8)
- # clerk (5)
- # clj-kondo (10)
- # clojure (105)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (44)
- # clojure-spec (4)
- # clojure-uk (6)
- # clojuredesign-podcast (36)
- # cursive (13)
- # datomic (24)
- # dev-tooling (8)
- # emacs (8)
- # hyperfiddle (4)
- # jobs (1)
- # leiningen (2)
- # london-clojurians (1)
- # lsp (5)
- # malli (6)
- # membrane (11)
- # nyc (1)
- # off-topic (14)
- # other-languages (8)
- # pathom (25)
- # pedestal (2)
- # re-frame (4)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (98)
- # sql (5)
- # squint (1)
- # tools-deps (38)
- # vim (8)
- # xtdb (11)
Hello! @cfleming I saw somewhere in repros of yours a really cool macro called defclass. Is it available somewhere publicly?
Hi Karol, this is actually in a fork of Clojure that I run. The design doc for the change is here: https://docs.google.com/document/d/1OcewjSpxmeFRQ3TizcaRRwlV34T8wl4wVED138FHFFE/edit?usp=sharing, and the code is here: https://github.com/cursive-ide/clojure/tree/defclass
Thank you so much. This looks very promising. Happy new year 🎊
Does cursive or intellij alter how the runtime interacts with classloaders? I have two deps.edn projects: parent and child. The parent deps.edn declares the child as a dependency using git url & sha. For development purposes, the parent defines an alias which declares the child as a :local/root
for the child using :override-deps
. For development, the project project uses a cursive run config nREPL and the IntelliJ project classpath. Here’s the problem: When I run the project using the alias declaring child as :local/root
and the runner, I get an error class datascript.db.DB cannot be cast to class datascript.db.DB (datascript.db.DB is in unnamed module of loader clojure.lang.DynamicClassLoader @163e13ef; datascript.db.DB is in unnamed module of loader 'app')
. More info in thread
When I run the project using a remote runner connecting to nREPL, there is no problem.
When I change the run config to use Run with Deps, there is no problem.
Is this project publicly available so I could look at it? Cursive uses deps.clj under the hood these days, but that shouldn’t affect how the app itself is run (it can affect reading the project config).
I’m running 1.13.1-2023.3 on IJ 2023.3.2
The project is not public but I can try to create a repro repo (that’s a fun alliteration!) this weekend
Certainly. I’ll try to get to it this wekeend