cursive

Issues at: https://git.io/cursive-issues
Joni 2020-10-23T09:18:46.151400Z

Is there any way in cursive/idea to find all the unused function definitions in the project?

2020-10-23T09:30:03.151500Z

Would Analyze > Inspect code help you?

Joni 2020-10-23T09:31:47.151700Z

It only seems to find unused local symbols, which don't seem to contain unused functions.

AJ Jaro 2020-10-23T12:06:55.153200Z

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:

➕ 1
AJ Jaro 2020-10-29T01:14:03.166Z

This is happening here: 1.9.4-2020.2 @cfleming

cfleming 2020-10-29T01:14:53.166200Z

Thanks, I’ll take a look.

AJ Jaro 2020-10-29T01:15:22.166400Z

Let me know if there’s anything I can do to help with this

cfleming 2020-10-29T03:44:34.166600Z

It looks like this has been broken again in 2020.2 due to platform changes.

cfleming 2020-10-29T08:26:38.166800Z

https://github.com/cursive-ide/cursive/issues/2457

AJ Jaro 2020-10-29T10:19:29.167100Z

Thanks for checking it out @cfleming. 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

cfleming 2020-10-29T22:30:02.167300Z

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.

Michael W 2020-10-23T19:26:36.155900Z

Why does IDEA tell me it cannot resolve clojure.data.csv when the code works?

(ns com.repsrv.lib.csv
  (:require
    #?(:clj
       [<http://clojure.java.io|clojure.java.io> :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)]
       (-&gt; (slurp file)
           (csv/read-csv)))))
IDEA says csv/read-csv can't be resolved. Am I missing something?

✅ 1
Michael W 2020-10-24T19:26:43.156200Z

This was a problem with clojure deps, I had to update src paths and refresh on clojure deps tab for it to resolve correctly again.

cfleming 2020-10-23T21:18:14.156Z

Do you mean the most recent EAP? Is this problem new in that version?