This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-23
Channels
- # announcements (8)
- # babashka (12)
- # babashka-sci-dev (6)
- # beginners (62)
- # biff (5)
- # calva (4)
- # cider (2)
- # clj-commons (8)
- # clj-kondo (17)
- # clj-yaml (40)
- # clojars (3)
- # clojure (117)
- # clojure-europe (122)
- # clojure-nl (5)
- # clojure-norway (20)
- # clojurescript (10)
- # consulting (1)
- # datomic (65)
- # events (15)
- # figwheel (1)
- # fulcro (4)
- # lsp (15)
- # mount (15)
- # music (1)
- # off-topic (53)
- # polylith (12)
- # releases (3)
- # shadow-cljs (13)
- # sql (1)
- # test-check (8)
- # xtdb (31)
Found another one. Should I file a new issue @ericdallo?
clojure-lsp version used: 2022.09.21-15.55.25-nightly
(in Calva)
({:foo}) ;; π£
Cursor anywhere except after the entire form to throw exception.
More details in thread.Same with any unbalanced map,
({:foo :bar :baz}) ;; π£
infinite nesting of any bracket type, provided the outermost pair is parentheses, and at least one pair is curly braces,
({{{{{{{{:foo}}}}}}}}) ;; π£
([(({[[[(:foo)]]]}))]) ;; π£
and any amount of whitespace, except while the cursor has whitespace to both sides,
({:foo| } ) ;; π£
({:foo |} ) ;; π£
({:foo | } ) ;; ππ»
and with other expressions intermingled.
(fn [|] (foo :foo)) ;; ππ»
(fn [{|}] (foo :foo)) ;; ππ»
(fn [{:|}] (foo :foo)) ;; π£
(fn [{:k|}] (foo :foo)) ;; π£
(fn [{:ke|}] (foo :foo)) ;; π£
(fn [{:key|}] (foo :foo)) ;; π£
(fn [{:keys|}] (foo :foo)) ;; π£
(fn [{:keys |}] (foo :foo)) ;; π£
(fn [{:keys [|]}] (foo :foo)) ;; ππ» balanced now
Contents need not be resolvable, and in some cases might not even need to be valid.
({missing-ns/foo}) ;; π£
({/}) ;; π£
Please post in the same, I think we should fix it in a generic way to avoid this in the future c/c @U07M2C8TT
Updated with new case and request-response traces for both. https://github.com/clojure-lsp/clojure-lsp/issues/1268
Are these issues related to this? https://github.com/clj-commons/rewrite-clj/issues/87
a little bit, we added custom code to clojure-lsp to handle some invalid codes like kondo does
I was chatting with @UE21H2HHD a few days ago, that pointed to that issue. https://clojurians.slack.com/archives/CBE668G4R/p1663863858149529 Ended with request that I move discussion to #rewrite-clj (which I do intend to do). The problems in this thread are much more pervasive and tricky, and would significantly raise the importance of trying to find a meaningful fix.
we've been hacking that on kondo and rewrite-clj, we should probably have that on rewrite behind some setting or flag
Generally: I've tried to populate the clojure-lsp statusbar item with the commands for showing the logs and control clojure-lsp.