This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-16
Channels
- # announcements (7)
- # babashka (1)
- # beginners (25)
- # calva (7)
- # cider (15)
- # clj-kondo (13)
- # cljdoc (14)
- # clojure (151)
- # clojure-europe (4)
- # clojure-hamburg (2)
- # clojure-italy (22)
- # clojure-nl (57)
- # clojure-spec (12)
- # clojure-uk (6)
- # clojuredesign-podcast (5)
- # clojurescript (12)
- # core-async (8)
- # cursive (26)
- # datascript (9)
- # datomic (92)
- # emacs (4)
- # fulcro (7)
- # graalvm (1)
- # graphql (2)
- # instaparse (3)
- # jobs (1)
- # jvm (2)
- # kaocha (6)
- # nrepl (3)
- # off-topic (5)
- # re-frame (45)
- # reagent (5)
- # reitit (18)
- # ring (1)
- # shadow-cljs (89)
- # slack-help (9)
- # spacemacs (2)
- # sql (54)
- # tools-deps (75)
- # vim (28)
- # xtdb (17)
- # yada (31)
Is there a way to suppress the "Unused global declaration" warning in a given namespace?
Settings
-> Editor
-> Inspections
-> Clojure
-> Unused Declaration
? I think you can assign scopes and save the config per project
I had this weird thing happen (on 2019.3 EAP, Cursive 1.9.0-eap5) where a tools.deps local REPL couldn't find classpath resources in my project directory. For example, (
returned nil
even though the resources
dir was in :paths
. Deleting the .idea
dir and *.iml
fixed the issue for me. Just in case it happens to anyone else.
with the most recent update cursive started marking clojure.core functions as unresolved in a deps project
I recall this has happened before, but I forget what the fix was
nobody else had this problem?
I've seen a couple of things cause this problem. One, project.clj or deps.edn is not registered as a project. Two, internal files are broken. You can regenerate them by File / Invalidate Caches ...
Strangely, sometimes commenting out one of my require
s and then removing the comment fixes this issue for me.
Odd. I haven't run into that before
Yes, indexes can get corrupted sometimes, and for some reason upgrades can provoke it.
After upgrading to eap5, I get this printed out when starting a REPL. Everything still works like usual. The message in red is new and looks like something incorrect happened.
Yes, I changed the way I invoke nREPL to more easily support the .nrepl.edn
file, and unfortunately that message now comes out. I filed https://github.com/nrepl/nrepl/issues/167, feel free to vote over there.
There’s also a bug there - the nil
is printed out because the send-ack invocation is indented incorrectly.
@dmarjenburgh I want to suppress it in one file, and check that change in for everyone on my team
@t.denley You should be able to do this by going to Preferences | Editor | Inspections, then selecting Clojure | Unused Declaration, then selecting a scope in the dropdown to the right of Severity. You’ll have to define a custom scope for what you want: https://www.jetbrains.com/help/idea/settings-scopes.html