This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-28
Channels
- # announcements (2)
- # babashka (21)
- # beginners (24)
- # calva (9)
- # cider (7)
- # clj-kondo (12)
- # clojure (116)
- # clojure-europe (5)
- # clojure-korea (2)
- # clojure-norway (3)
- # clojure-poland (1)
- # clojure-spec (5)
- # clojurescript (12)
- # cursive (12)
- # datomic (8)
- # google-cloud (4)
- # honeysql (16)
- # java (18)
- # lsp (10)
- # missionary (14)
- # polylith (12)
- # re-frame (13)
- # releases (4)
- # shadow-cljs (10)
- # sql (10)
- # testify (2)
Like to ask, how can I resolve these issues in latest intellij + cursive (if not mistaken, generated by macros for hiccup).
Not to get histrionic or overly-dramatic, but I think this is going to be life-changing for me — I’m already imagining how many functions I can delete or start moving to different namespaces!
It is pretty awesome
Just curious, how accurate is the usage count in all situations? (I know in the past occasionally a symbol with a short common name could be incorrectly color-marked as to whether it’s used or not – I believe it was some sort of an IntelliJ internal indexing limitation @cfleming)
Cool, I saw that too and wondered if it was new or if I hadn't thought about it before ... but then it's new 🍾🍾
The release notes had some details on the accuracy: > Like the Java implementation, this is a best-effort annotation. What that means is that vars with names that are very common appear in lots of places, and that makes the search very expensive for a (semi-)real-time annotation and they won’t be annotated. There was a bug previously which made this extremely conservative for Clojure, so it should work better now, but it’s still noticeable for vars with names which are words which appear frequently (so names like action, project and module in the Cursive source, for example). This means that this is generally useful for finding unused vars, but some will be missed if they have very common names. If an annotation appears, it should be accurate, though.