Fork me on GitHub
#cursive
<
2017-09-25
>
timgilbert19:09:27

Say, with IntelliJ 2017.2.4 and Cursive 1.6.1-2017.2 I noticed I'm not seeing unused function arguments or namespaces highlighted in gray any more. Is there a preferences I need to set to get them back or something?

timgilbert19:09:53

Functions that are never called still show up as grayed out though.

cfleming19:09:14

Unused Local Symbol in your case.

timgilbert19:09:25

Ah, yes, looks like they are set to "no highlight, only fix" although I didn't go in and change their values myself

cfleming19:09:14

So I think that should be the right setting, but quite a few people recently have had this problem, and setting it to warning seems to work.

cfleming19:09:32

I’ll try to investigate this to see if I can figure it out.

cfleming19:09:45

But in the meantime setting it to warning should work.

timgilbert19:09:55

Resetting the values to "weak warning" gives me the behavior I was expecting. Thanks!

kenny23:09:34

Is there a solution to a situation like this?

(ns my.foo
  (:require
    [clojure.spec.alpha :as spec]))

(s/def )
When you start typing the s/def Cursive will have the autocomplete dropdown appear. But if you hit enter on any of the options, it will add a new line to the :require that looks like [clojure.spec.alpha :as s] when it should just change the s/def to spec/def given the namespace is already aliased.