Fork me on GitHub
#lsp
<
2021-09-03
>
ericdallo01:09:21

clojure-lsp Released https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.09.03-00.42.46 with mostly fixes and doc/logs improvements, also preparation for some big changes on next releases clojurists-together 👀 As you may know, Clojurists Together https://www.clojuriststogether.org/news/ for Q3 2021 🚀, I'm really looking forward to see the results of this funding on this project! Also, I'm really grateful for everyone that supported and helped clojure-lsp somehow to become what it is today, without your support that would not be possible, thank you! As a first step from the funding, clojure-lsp has a new (easier to read) domain/webpage https://clojure-lsp.io clojure-lsp 😃 Changelog: • General ◦ Improve logging during startup for better troubleshooting. ◦ Refactor allowing calls to `clojure-lsp.main/run!` for manually passing args, useful for `lein-clojure-lsp` for example. ◦ Internal: Move graalvm configuration to sqlite-jdbc. ◦ Recognize `deftest` as function definition form for refactoring features like `extract-function`. ◦ Bump Graalvm from 21.1.0 to 21.2.0 • API/CLI ◦ Use clj-kondo custom lint for API as well, required for correct diagnostics API feature. • Editor ◦ Fix regression, custom `source-paths` from initializationOptions were not being parsed correctly. https://github.com/clojure-lsp/clojure-lsp/issues/537 • Documentation ◦ New domain for documentation and webpage https://clojure-lsp.io 

aw_yeah 8
vemv17:09:07

happy for you @UKFSJSM38! well deserved

ericdallo17:09:44

Thank you very much @U45T93RA6 😄

anonimitoraf01:09:39

> also preparation for some big changes on next releases Ooh, any docs on this?

ericdallo02:09:19

I'll try to post the ideas soon!

anonimitoraf02:09:33

Looking forward to it! 😄

Oliver George01:09:49

Can clojure-lsp statically analyze a re-frame codebase looking for registrations and dispatches, and finding mismatches?

ericdallo02:09:58

Yes! It should work OOTB if your project was analyzed correctly

Oliver George02:09:33

That's exciting. I'll try it out.

Oliver George02:09:35

Quick sanity check before I go further. This thows no errors (assuming I've got my setup right). I was hoping for errors like the comments below.

(ns example.b-reframe
  (:require [re-frame.core :as rf]))

(rf/reg-event-db ::an-event (fn [_ [_ v]] {:val v}))

(rf/dispatch [::an-event 1])
(rf/dispatch [::an-event])                                  ; Incorrect arity
(rf/dispatch [:an-event])                                   ; No handler registered with :an-event

ericdallo12:09:30

Yeah, clj-kondo doesn't have those lint's for re-frame, but it would be possible via custom-lints on the reframe lib, or even a built-in support WDYT @U04V15CAJ ?