This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-01
Channels
- # announcements (14)
- # architecture (30)
- # aws (34)
- # babashka (18)
- # beginners (114)
- # biff (5)
- # calva (128)
- # clerk (155)
- # clj-kondo (60)
- # clojure (82)
- # clojure-dev (25)
- # clojure-europe (20)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-spec (13)
- # clojure-uk (3)
- # community-development (4)
- # core-logic (4)
- # cursive (5)
- # datomic (21)
- # deps-new (13)
- # emacs (5)
- # funcool (5)
- # graphql (3)
- # hyperfiddle (1)
- # introduce-yourself (1)
- # jobs (2)
- # kaocha (1)
- # london-clojurians (1)
- # lsp (13)
- # malli (16)
- # off-topic (6)
- # other-languages (1)
- # pathom (18)
- # re-frame (23)
- # releases (1)
- # remote-jobs (2)
- # tools-build (1)
- # tools-deps (12)
- # vscode (1)
- # xtdb (27)
> lsp--check-document-changes-version: Document changes cannot be applied due to different document version Why would I be getting this when trying to do a rename refactor? I revisited all my buffers in Emacs, and tried again and it worked. A bit annoying though, since I didn't do anything to the buffers, did not save them, or touch anything in them, just had to revisit 7 of them, since I had many open in the project.
This means that the server tried to apply changes in a document that is not in the same version, every time a buffer is changed the version is incremented and sent to server, this probably means some missed sync, I never saw that, so if you manage to repro LMK
so my change from https://github.com/clojure-lsp/clojure-lsp/pull/1471 doesn't seem to be picking up :style/indent
settings from dependencies, only my own codebase. if memory serves, though, deps showed up in the kondo :analysis
. is it possible that different kondo options were used, or some other difference in how deps are analyzed vs. one's own code?
yes, possible, there are different args that clojure-lsp passes for kondo when analyzing external deps and internal project code, let me get the link
we need to change https://github.com/clojure-lsp/clojure-lsp/blob/de3c28b8ab0f38941179695f4466ad5720bd0953/lib/src/clojure_lsp/kondo.clj#L233to include the metadata
https://github.com/clojure-lsp/clojure-lsp/blob/de3c28b8ab0f38941179695f4466ad5720bd0953/lib/src/clojure_lsp/kondo.clj#L266-L274 are the different functions
ah, I follow. that should be straightforward to change; I'll make it so and send a PR. it's not clear at a glance whether :shallow true
is compatible with checking metadata, but I'll check it out.
https://github.com/clojure-lsp/clojure-lsp/pull/1482 I'm not really sure how to write a test for this... but it's a pretty transparent change.
It seemed like that didn't work, but I think I might have been fighting with the .lsp/.cache when I tried that. Let me try it.
ah yeah, it works, pushed.