This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-01
Channels
- # announcements (26)
- # babashka (58)
- # bangalore-clj (1)
- # beginners (48)
- # bitcoin (1)
- # chlorine-clover (9)
- # clara (7)
- # clj-kondo (11)
- # cljs-dev (10)
- # cljsrn (36)
- # clojars (11)
- # clojure (161)
- # clojure-europe (39)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (14)
- # clojured (1)
- # clojurescript (38)
- # conjure (25)
- # core-async (18)
- # cursive (19)
- # datascript (9)
- # datomic (11)
- # emacs (10)
- # events (2)
- # figwheel-main (2)
- # fulcro (44)
- # funcool (5)
- # girouette (1)
- # graalvm (6)
- # jobs (1)
- # lsp (93)
- # malli (3)
- # membrane (3)
- # off-topic (17)
- # pedestal (2)
- # polylith (12)
- # re-frame (2)
- # remote-jobs (1)
- # shadow-cljs (47)
- # specter (2)
- # startup-in-a-month (1)
- # tools-deps (4)
@ericdallo Does LSP emacs support something like an interactive finding of a var? I just want to enter (part of the) name
e.g. right now I am trying to find the var syntax-label
but I forgot in which namespace this var was defined, but lsp knows all of this
can we maybe have lsp-clojure-find-var-interactively
and then type some string which filters over the vars using some fuzzyness?
that command should do that, we just need to fix that search, not sure it's a lsp-mode bug or related how the server is returning the data
I tested with Dart lang and it worked perfectly, so I need to investigate why clojure-lsp is returning the symbol filtered only when it has 2 params
@ericdallo Confirming that works with lsp-ivy-workspace-symbol
. I tried lsp-ivy-global-workspace-symbol
which didn't work
the global one get symbols from all active projects, not so useful and may have performance issue I suppose
ok. so it only finds symbols from the source paths right? if I type concat
it doesn't return clojure.core/concat
for example
Hey guys
I’m considering using lsp and kondo for a very specific feature, but it seems like a lot of setup for something so little. I haven’t delved into lsp before. Cursive users, do you think that LSP gives you some very valuable feature that you don’t get from Cursive out of the box?
I was a Cursive user before Emacs, most features LSP features are available on Cursive, there is a specific one that I think only LSP has like get all references of a a keyword
Oh Cursive has too 😅 https://clojurians.slack.com/archives/CPABC1H61/p1614606002322100
Hm, I got curious and tried the workspace-symbol from NeoVim and it doesn't seem to take the query into account -> I get all the symbols of my workspace back instead.
Sell it to me 🙂
If you can be bothered!
@reefersleep There are already people using the clj-kondo LSP plugin with Cursive, so at least diagnostics work for sure
My favorite clojure-lsp feature is probably finding keywords, although TIL that Cursive also has this
And what you don't get with Cursive (I think) is being able to define custom (clj-kondo) hooks for your macros so the IDE "gets" them
That’s the interesting part for me. But I wonder if there are other killer features 🙂
Maybe not all, but it seems to me like there’s a big overlap. That’s why it’d be cool if Cursive users could highlight the golden differences 🙂
@borkdude @orestis latest release should fix the workspaceSymbols querying issue and the rename on a refer (bumping clj-kondo)
BTW the auto update brew action didn't work, but we have an idea to auto sed and commit to the repo
You can also do a script like this: https://github.com/clj-kondo/clj-kondo/blob/master/script/install-clj-kondo
https://github.com/clojure-lsp/clojure-lsp/blob/master/install-latest-clojure-lsp.sh
Yes, I didn't change that, it s a lsp-mode issue since lsp-mode need to open the buffer for each symbol I think
And then Emacs prompt with a lot of questions if you want to import the root of that jar
Then why did you poke me with > latest release should fix the workspaceSymbols querying issue ? :)
When I don't give a leading dot, the search results don't seem to be related at all.
I mean, there are dozens of symbols which literally have the word concat
in them, which do show with . concat
;)
I’m running into an issue where I get different diagnostics between latest version of clj-kondo and clojure-lsp with regard to clojure-lsp not finding some macro used in cljs code. kondo seems to find the definitions and doesn’t emit warnings. how to best debug what is going on?
if you can use clj-kondo on command line and it works and on clojure-lsp doesn't, please open a issue with a minimal repro, then I can test it and check why is not working if it's really a issue on clojure-lsp
@U45J3R52L If you happen to have a minute, https://github.com/clojure-lsp/clojure-lsp/issues/352 — can you reproduce by follow the repro steps in this issue?
@U45J3R52L please check the issue above ☝️ it could be related with your issue indeed
@ericdallo thank you, confirmed this is the same issue I was seeing and adding a lint-as makes it all good. Thank you!