This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-16
Channels
- # adventofcode (1)
- # announcements (16)
- # babashka (7)
- # beginners (77)
- # calva (31)
- # cider (18)
- # clj-commons (16)
- # cljfx (5)
- # clojars (5)
- # clojure (33)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (1)
- # core-logic (7)
- # cursive (16)
- # data-science (4)
- # datalevin (6)
- # emacs (20)
- # events (5)
- # fulcro (15)
- # holy-lambda (1)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (30)
- # luminus (3)
- # malli (3)
- # membrane-term (19)
- # missionary (62)
- # off-topic (39)
- # pathom (24)
- # polylith (5)
- # portal (9)
- # practicalli (3)
- # re-frame (16)
- # reagent (5)
- # remote-jobs (1)
- # reveal (21)
- # rewrite-clj (8)
- # shadow-cljs (13)
- # spacemacs (23)
- # sql (12)
- # timbre (2)
- # tools-deps (1)
- # xtdb (4)
How would I go about getting a richer more interactive menu for references in LSP? For example, Intellij doesn't just show the files in a temporary (click away and it disappears) list. It opens a permanent hierarchy/tree of files with the reference as the last node in the tree. It also opens an accompanying window pane so i can see some range of code around the reference. The later is really nice to have. Would this be an editor advancement?
this is something to be improved on client side (editor level), for example: https://github.com/emacs-lsp/lsp-mode/issues/316
Correct, the intelliji feature is richer and i would assume universally preferred. I'm guessing the change is a matter of configuration options passed to a emacs window manager (helm?). Brb
I think help/ivy already support a larger preview of code, I already saw that on doom-emacs at least
there is already lsp-treemacs-references
, but for some reason is not working for me
https://github.com/emacs-lsp/lsp-treemacs#lsp-treemacs-referenceslsp-treemacs-implementations
Awesome. lsp treemacs view is what i would want, a list that sticks around.
yeah, lsp-treemacs is cool, I use for one or 2 features, it needs some bugfix though, but overall it works fine
@ericdallo do you have a minute to pair with me to see if we can learn why this re-name doesn't work on my project? Or what diagnostics could i send your way?
Sure, I'm releasing a new clojure-lsp version in a couple of hours that improve rename, I think it should fix a lot of cases where rename doesn't work
ok. i'll wait for that.
Here is what seems to be a bug that caught me the other day. lsp-show references is showing incorrectly showing one less reference then lsp-treemacs view
there are 2 ways that LSP find the references can return, all the references and another with all the references + the definition itself
This was a keyword, fwiw.
hmm. Ok, i see what happened here. This is interesting. It is considering the keyword i said it missed as a definition. That is, it goes to it when i use lsp-find-defination. In this case, we are re-using that keyword for both re-frame/reg-event-fx and re-frame/reg-fx a pattern i'm not sure I think is worth it. As it makes even basic text searches a bit confusing.
That it finds the re-frame event definition via "find definition" is btw, amazing.
This is a fairly rare case, i just was worried it was more common.
Released clojure-lsp https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.11.16-16.52.14, improving mostly code actions and completion! We had a huge improvement on keyword completions and snippets, the rename feature now should work for most projects even for not correctly configured source-paths, we also fixed some code parsing which should reflect on most features. • General ◦ Improve rename feature to not heavily rely on valid source-paths for most cases. ◦ Fix setTrace exception logs for graalvm native images. ◦ Huge improvements on namespaces renames and namespaces references find. https://github.com/clojure-lsp/clojure-lsp/issues/573 ◦ Fix/Remove warnings during datalevin access. ◦ Improve freezing for some MacOS cases. https://github.com/clojure-lsp/clojure-lsp/pull/631 ◦ Bump clj-kondo to `2021.10.20-20211116.110002-7` improving code parsing and other fixes. • Editor ◦ Fix "Add require" code actions adding multiple requires instead of the selected. ◦ Improve "Add require" wording, making it easier to understand what each different action will do. ◦ Smart check all available refers to require, adding refer options to `Add require` code actions. https://github.com/clojure-lsp/clojure-lsp/issues/627 ◦ Big improvements on keyword completions. https://github.com/clojure-lsp/clojure-lsp/issues/630 ◦ Add setting `keep-parens-when-threading?` to keep parens for single arity functions when threading. https://github.com/clojure-lsp/clojure-lsp/issues/636 ◦ Avoid adding duplicate requires when adding a new require via code action. https://github.com/clojure-lsp/clojure-lsp/issues/640 ◦ Improve common known snippets to replace completion items, improving completion UX. https://github.com/clojure-lsp/clojure-lsp/issues/638