This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-20
Channels
- # announcements (10)
- # aws (4)
- # babashka (71)
- # beginners (30)
- # calva (61)
- # cherry (1)
- # cider (16)
- # clj-kondo (3)
- # clj-on-windows (4)
- # cljsrn (1)
- # clojure (28)
- # clojure-austin (2)
- # clojure-bay-area (1)
- # clojure-europe (45)
- # clojure-hungary (1)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (14)
- # clojure-uk (11)
- # clojurescript (39)
- # core-async (3)
- # core-typed (11)
- # datomic (68)
- # fulcro (7)
- # keechma (1)
- # lsp (29)
- # malli (5)
- # off-topic (57)
- # other-languages (13)
- # pathom (4)
- # rdf (7)
- # reagent (7)
- # reitit (6)
- # releases (1)
- # schema (8)
- # shadow-cljs (86)
- # sql (22)
- # squint (1)
- # vim (8)
- # xtdb (12)
I’ve noticed if I download clojure-lsp from https://github.com/clojure-lsp/clojure-lsp/releases/download/2022.10.05-16.39.51/clojure-lsp-native-macos-aarch64.zip and get the version using that executable (`--version`), I get:
clojure-lsp 2022.10.05-16.48.26-nightly
clj-kondo 2022.10.05
This isn’t a nightly build though. Is the version that it’s reporting incorrect?just wondering: was it considered to put lsp-rename as an action? I use that all the time, I bet I am not alone
We would need to create a command to rename while the rename is a LSP feature, it'd need some double check if would be possible
I'm not sure rename is a good candidate for the action menu. That command needs to know the new name, which the user has to enter. But unfortunately, I don't think it's possible to ask a user for information like that in the middle of executing an action. You can ask ask a user to make a selection from a menu of choices in the middle of an action, but not to enter arbitrary data. I see this as a deficiency in the LSP spec. If it were possible, we could make use of it in to name new things in Create Function, Extract Function, Promote function, Extract def, etc., instead of falling back to a default new-function
or element
. It would be useful in other scenarios besides assigning a name too.
The reason that lsp-rename
exists as a separate function is so that the editor has a chance to ask the user for a new name before calling the server
Exactly, well remembered @U07M2C8TT, I'd be so nice to have a LSP way to ask user for something presenting a custom field for response
Hi guys! Any specific config to run clojure-lsp
on a polylith
repo with emacs
? I see that clojure-lsp
support polylith
since 2021 but I didn’t know why lsp don’t work properly
no config, it should work OOTB unless there is anything new since that time I'm not aware
clojure-lsp by default will run clj -A:dev:test -Spath
by default, are these the aliases that contain your submodules?
feature request idea "map <-> vars"
{:a 1} => (def a 1)
If it seems cool, im happy to add a feature request, then make it myself as soon as there is time. Posting here for quick feedback.i guess this could easily be a macro?
well in like 3 hours i'm going to try and write some clojure code to do this. you can join me in #C04547H53TK for a huddle if anyone is interested in joining me.
Hasn't been for me, but i need it, so i was going to try and build it.
Are you gonna try on clojure-mode or clojure-lsp? because I'm not sure if we should support and maintain it on clojure-lsp if it's not that common to do that
I don't expect you to build or support it, how would i go about extending things to do it myself? I'll check the docs first and get back to you with specific questions if i have any.
I don't think we have a way to have custom code actions, it's not that easy, the protocol doesn't support that flexibility, but it'd be nice though
It would probably be nice, Alternatively, is it possible make to get the list of lsp actions, cider refactor actions, and other (my stuff), and display them all together?