This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-13
Channels
- # announcements (10)
- # aws (1)
- # babashka (8)
- # babashka-circleci-builds (1)
- # beginners (67)
- # calva (4)
- # cljs-dev (42)
- # clojars (4)
- # clojure (213)
- # clojure-dev (4)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-uk (8)
- # clojurescript (13)
- # conjure (6)
- # cursive (63)
- # data-science (5)
- # datomic (11)
- # events (1)
- # graalvm (2)
- # graalvm-mobile (1)
- # honeysql (4)
- # kaocha (3)
- # leiningen (19)
- # lsp (32)
- # malli (3)
- # meander (13)
- # news-and-articles (3)
- # off-topic (8)
- # polylith (5)
- # re-frame (47)
- # reitit (2)
- # shadow-cljs (28)
- # sql (3)
- # tools-build (4)
- # tools-deps (51)
- # uix (9)
- # xtdb (3)
i’ve noticed that test files aren’t scanned initially when determining if a given var is unused. Is that intentional?
i used deps.edn
: it’s in :extra-paths
in my :test
alias. should I move it up to :paths
?
No, clojure-lsp should resolve that, can you double check the clojure-lsp server log?
Automatically resolved source-paths from deps.edn: #{"src" "resources"}
oh, my test alias is :test/cognitect
. lemme try if it’s just :test
is :source-aliases
a map or a set?
But I think there is no way we find :test/cognitect
is your test alias automatically
i’m using coc.nvim, so the config is written in json. i’ve written the alias in an array: [":test/cognitect", ":test/kaocha"]
, and I can see that it’s sent in the initialize call from coc.nvim:
"initializationOptions": {
"text-document-sync-kind": ":incremental",
"use-metadata-for-privacy?": true,
"ignore-classpath-directories": true,
"source-aliases": [
":test/cognitect",
":test/kaocha"
]
},
but then it logs: Automatically resolved source-paths from deps.edn: #{"src" "resources"}
do they work different?
Not really, but since it's a json, I don't know it will behave the parsing on vim client
hm okay
maybe i can take a look at how clojure-lsp processes this
thanks, i’ll try that out
which part inside the string? the :
is already inside the alias string
doesn’t work. putting the keywords into .lsp/config.edn
works great tho
Good to know, it's the first time I see initializationOptions not behaving similar to .lsp/config.edn
i’ve updated the docs to make note of this as well