This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-01
Channels
- # adventofcode (93)
- # announcements (44)
- # asami (23)
- # aws (1)
- # babashka (48)
- # beginners (112)
- # calva (26)
- # cider (57)
- # clj-kondo (17)
- # cljfx (5)
- # cljs-dev (21)
- # clojure (124)
- # clojure-europe (19)
- # clojure-hungary (40)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (3)
- # clojurescript (3)
- # cursive (81)
- # datalog (11)
- # events (21)
- # exercism (1)
- # fulcro (37)
- # graalvm (1)
- # introduce-yourself (8)
- # jobs (1)
- # lsp (1)
- # malli (5)
- # membrane-term (17)
- # minecraft (3)
- # nextjournal (5)
- # off-topic (14)
- # other-lisps (14)
- # polylith (58)
- # reagent (16)
- # reclojure (3)
- # reitit (6)
- # remote-jobs (1)
- # shadow-cljs (55)
- # spacemacs (15)
- # testing (2)
- # tools-build (7)
- # tools-deps (191)
Released clojure-lsp https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.12.01-12.28.16 with a bunch of new features!
• General
◦ Add support for LSP method `textDocument/prepareRename` which it's the proper way to check if the rename will work correctly. https://github.com/clojure-lsp/clojure-lsp/issues/642
◦ Expose new custom method `clojure/cursorInfo/raw` for custom hack on current cursor information code. https://github.com/clojure-lsp/clojure-lsp/pull/645
◦ Support stub generation using `clj-easy/stub`, adding analysis and linting support for closed sources codes like Datomic. Check `:stubs` settings for more details. https://github.com/clojure-lsp/clojure-lsp/issues/637
◦ Handle config deep merge differently for collections, concating instead of overwriting.
◦ Fix unnecessary exception thrown on graal images during startup.
◦ Support `deps.edn` `:local/root` source-paths discovery, improving support for monorepo projects like `polylith`. https://github.com/clojure-lsp/clojure-lsp/issues/652
◦ New setting value for `:clean :sort :require`: `:lexicographic`. https://github.com/clojure-lsp/clojure-lsp/pull/654
◦ Bump clj-kondo to `2021.10.20-20211126.151305-16`.
• Editor
◦ Support completion on aliased keywords. https://github.com/clojure-lsp/clojure-lsp/issues/649
◦ Add new `Sort map keys` refactoring code action. https://github.com/clojure-lsp/clojure-lsp/issues/651
◦ Add new `Create function` code action, allowing to create a function on a existing namespace or creating a new namespace + the function. https://github.com/clojure-lsp/clojure-lsp/issues/646
◦ Improve `Extract function` refactoring to consider comments above current function.
◦ Experimental: new `:linters :clj-kondo :async-custom-lint?` setting, when true, scan unused-public-vars async improving lint/analysis UI feedback for huge buffers (> ~1000 lines). Default `false`.
This release was supported by https://www.clojuriststogether.org/ 💜
The main highlight is: Support for stubs! using the new https://github.com/clj-easy/stub library, with that clojure-lsp can understand closed source libraries like datomic.api
🚀 Check https://clojure-lsp.io/settings/#stub-generation for more details. Thank you @borkdude for the help!
Also, check one of the new code actions: Sort map