This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-17
Channels
- # announcements (2)
- # babashka (1)
- # beginners (54)
- # calva (19)
- # clj-kondo (7)
- # cljs-dev (6)
- # cljsrn (18)
- # clojure (11)
- # clojure-europe (19)
- # clojurescript (7)
- # conjure (3)
- # cursive (7)
- # datomic (4)
- # figwheel-main (2)
- # fulcro (4)
- # helix (5)
- # honeysql (24)
- # instaparse (2)
- # lsp (20)
- # malli (17)
- # off-topic (6)
- # pathom (2)
- # practicalli (2)
- # shadow-cljs (2)
- # tools-deps (34)
- # vim (7)
I finally setup NeoVIM LSP/nvim-compe/clojure_lsp and it is amazing but I am getting lots of warnings. The Home
definition is a Fulcro macro. Is there a way to acknowledge these errors? I know in C++ you can simply (void)unused_variable
. Is there anything like that in Clojure? Any recommendations on how to handle it?
You can rename the var to _props
to acknowledge that it isn't used. That should satisfy clojure-lsp.
@U0AHJUHJN, how do you do that?
In the Clojure source code, put a _ in front of the var it is complaining about. The warning should go away.
@U0AHJUHJN, sorry for the late response but it works.
Setting up some settings in a .clj-kondo
config file. I think that is what you are asking about. https://github.com/clj-kondo/config/pull/12