This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-23
Channels
- # announcements (1)
- # architecture (20)
- # babashka (30)
- # beginners (79)
- # calva (27)
- # cider (8)
- # clj-kondo (1)
- # clojure (125)
- # clojure-australia (1)
- # clojure-berlin (4)
- # clojure-europe (62)
- # clojure-france (1)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (12)
- # clojuredesign-podcast (5)
- # clojurescript (28)
- # core-async (31)
- # cursive (14)
- # datomic (47)
- # defnpodcast (1)
- # emacs (7)
- # figwheel-main (2)
- # fulcro (10)
- # graalvm (1)
- # graphql (11)
- # jobs-discuss (8)
- # leiningen (2)
- # off-topic (23)
- # rdf (9)
- # re-frame (3)
- # reagent (1)
- # reitit (5)
- # reveal (12)
- # shadow-cljs (12)
- # spacemacs (1)
- # tools-deps (87)
- # vim (22)
- # xtdb (21)
Is there any way in cursive/idea to find all the unused function definitions in the project?
Would Analyze > Inspect code help you?
It only seems to find unused local symbols, which don't seem to contain unused functions.
In the most recent version of Cursive, cmd-clicking a re-frame namespaced keyword does not show usages anymore. A user needs to right-click and Find Usages
in order to show where that keyword is used. :sad-panda:
This is happening here: 1.9.4-2020.2 @U0567Q30W
Thanks for checking it out @U0567Q30W. I think there might be a similar problem with finding CLJC usages that are in CLJS namespaces but I haven't nailed the scenario down yet. I'll let you know when I figure it out in more detail
That’s possible, yeah - unfortunately the CLJC support needs a total re-vamp, the current impl is not very robust and violates some IntelliJ invariants.
Why does IDEA tell me it cannot resolve clojure.data.csv when the code works?
(ns com.repsrv.lib.csv
(:require
#?(:clj
[ :as io])
[clojure.data.csv :as csv]))
#?(:clj
(defn take-csv
"input path to file, output csv as coll of coll"
[filename]
(with-open [file (io/reader filename)]
(-> (slurp file)
(csv/read-csv)))))
IDEA says csv/read-csv can't be resolved. Am I missing something?