This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-22
Channels
- # announcements (8)
- # babashka (4)
- # beginners (164)
- # calva (17)
- # cider (30)
- # cljdoc (4)
- # cljs-dev (6)
- # clojure (103)
- # clojure-europe (63)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojured (10)
- # clojuredesign-podcast (2)
- # clojurescript (16)
- # conjure (2)
- # core-async (9)
- # cursive (26)
- # datalevin (4)
- # datomic (156)
- # gratitude (1)
- # holy-lambda (8)
- # honeysql (9)
- # hoplon (6)
- # off-topic (55)
- # polylith (14)
- # portal (21)
- # reagent (5)
- # reitit (16)
- # releases (3)
- # shadow-cljs (87)
- # spacemacs (3)
- # tools-deps (25)
- # xtdb (9)
https://twitter.com/CursiveIDE/status/1517473008872755200 (hopefully 🎉, but I’ll wait for feedback before officially proclaiming it)
It’s an extremely weird one. I can’t figure out how it ever worked at all. And I’ve trawled through the history of all the related files, and nothing changed in them recently. So I’m still not sure that I’ve fixed it, although the thing I fixed was definitely broken.
I installed this from disk, loaded up a project that showed this problem before and had my symbols resolved properly, so the first try succeeded
It was a confusing combination of the two. When the settings for the resolution customisations are loaded, there’s a map which wasn’t being initialised, which goes from the short name (e.g. defmutation) to a set of vars which have that short name (e.g Pathom’s defmutation, Fulcro’s defmutation, and any others you might have configured). That short name cache was correctly initialised for all the built in extensions, but not for the customisations, which is why they didn’t work. However, that code has been like that forever, so I don’t know how the customisations (at least the ones relating to indexing, e.g. resolve as def/defn) ever worked at all.
Re-customising did set that cache correctly, but that would have been lost on every restart. So this should have lost everyone’s customisations on every restart, which clearly wasn’t happening.
There are definitely some IntelliJ indexing bugs in there too, probably in 2022.1 since I haven’t seen them previously. The IDE would occasionally just stop resolving anything at all, and e.g. not find any namespaces to navigate to. That’s definitely a platform issue, but I’ll just have to hope they can fix that, I don’t have enough for a coherent bug report yet.
@U0567Q30W Can confirm it's no longer throwing errors and all ops (navigate, quick doc, etc.) are looking fine.