This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-28
Channels
- # announcements (11)
- # babashka (66)
- # beginners (19)
- # calva (4)
- # clj-kondo (26)
- # cljsrn (33)
- # clojure (38)
- # clojure-australia (10)
- # clojure-dev (3)
- # clojurescript (18)
- # conjure (8)
- # data-science (2)
- # datahike (1)
- # datascript (5)
- # defnpodcast (3)
- # emacs (3)
- # events (2)
- # fulcro (17)
- # funcool (66)
- # girouette (28)
- # jobs-discuss (1)
- # lsp (33)
- # malli (1)
- # membrane (11)
- # off-topic (2)
- # practicalli (1)
- # re-frame (141)
- # rewrite-clj (6)
- # sci (1)
- # shadow-cljs (68)
- # sql (5)
- # startup-in-a-month (7)
- # vim (1)
- # xtdb (21)
The issue on clojure-lsp seems that the new var-usage of the refer does not contain a end-range
I get this new analysis:
{
"filename": "/tmp/sample.clj",
"row": 2,
"col": 35,
"from": "foo",
"to": "clojure.test",
"name": "deftest",
"macro": true,
"varargs-min-arity": 1
}
from:
(ns foo
(:require [clojure.test :refer [deftest]]))
repro:
clj -Sdeps '{:deps {clj-kondo {:mvn/version "2021.02.28"}}}' -m clj-kondo.main --config '{:output {:analysis true :format :json}}' --lint /tmp/sample.clj |jq .
I see. I can have a look tomorrow, but if you will beat me to it with a PR, I'd he happy to accept it
The change was done in clj-kondo.impl.analyzer.namespace.
This was added to support linting unresolved vars in the :refer
part of the libspec