This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-01
Channels
- # babashka (30)
- # beginners (80)
- # calva (21)
- # chlorine-clover (2)
- # cider (22)
- # clj-kondo (65)
- # cljfx (2)
- # cljs-dev (3)
- # cljsrn (3)
- # clojure (37)
- # clojure-europe (27)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-taiwan (1)
- # clojure-uk (21)
- # clojurescript (13)
- # conjure (23)
- # core-typed (1)
- # cursive (16)
- # datahike (1)
- # datomic (6)
- # docs (2)
- # emacs (5)
- # figwheel-main (1)
- # fulcro (12)
- # helix (11)
- # jobs (2)
- # jobs-discuss (2)
- # leiningen (1)
- # lsp (34)
- # luminus (1)
- # malli (19)
- # microservices (1)
- # nrepl (1)
- # off-topic (25)
- # pathom (6)
- # polylith (47)
- # practicalli (5)
- # re-frame (8)
- # reagent (1)
- # reitit (1)
- # releases (2)
- # remote-jobs (2)
- # reveal (1)
- # sci (1)
- # shadow-cljs (11)
- # sql (8)
- # tools-deps (9)
- # xtdb (16)
lately i started to get
LSP :: `workspace/executeCommand' with `cursor-info' failed.
(error "The connected server(s) does not support method workspace/executeCommand.
To find out what capabilities support your server use 'M-x lsp-describe-session'
--
lsp--send-request-async: The connected server(s) does not support method textDocument/codeAction.
randomly in emacs.what seems to work sometimes is to remove ~/.lsp but it’s starting to get really painful. is there somethign else i could check?
Does it work on the version prior to the latest?
This is the reason, i had logging disable. https://gist.github.com/jmayaalv/3dcec6871ae9acfb36e56cc6b478a53b
Is there any way to configure LSP to differentiate references in test files? For example, I'd like to toggle lens mode to show 0 references if they only exist in test namespaces.
I think clojure-lsp is already supposed to do this for the lens. I'm not sure what the requirements are though.
https://github.com/clojure-lsp/clojure-lsp/commit/cb48904062e146d28ae6308038c67b4d366c194b
@pithyless it should work if notice the reference is in a test file
@pithyless you could probably get this custom analysis using clj-kondo as a library as well.
yeah, this sounds like a use-case for carve (which I have not tried yet); it just came up b/c the lens is already there in front of me... and I was surprised by the behavior (until I realized that all the references are in a test namespace) :)
the use case makes sense though. perhaps you can also make an .lsp
dir inside your test folder and ignore the test folder in the parent dir (not include it in the classpath of lsp)
This is the reason, i had logging disable. https://gist.github.com/jmayaalv/3dcec6871ae9acfb36e56cc6b478a53b
yep, it works fine with the jar. so definitely something weird going on with the native image. we are still on java 1.8. could it be related? 🤕
neh, it's a reflection config issue probably. @ericdallo
ok, @ericdallo let me know if you want me to raise an issue.
@jmayaalv it is related with graalvm reflection config and it started to happen with latest support of completion item Insert text feature on lsp-mode, I'll fix it
Patch 2021.06.01-16.19.44 release:
• Fix graalvm issue on completionItem InsertTextMode c/c @jmayaalv
• Bump clj-kondo and rewrite-clj to latest releases.
hey y'all, apologies is this is a poorly worded question but is there a way to have every def'd symbol appear in imenu with clojure-lsp?
for example I want all tests defined with deftest
to appear
I think imenu
just works for me at the moment, but don't know if lsp is giving the results or cider is, hmmm...
@nonrecursive lsp-mode has a command I think to show symbols on imenu, did you try that?
i see lsp-ui-imenu
and the list displayed there is the same as the one displayed by counsel-imenu
well this is strange, in one test namespace test symbols appear, but in another they don't
There is so much crazy stuff going on in this project it could take some time to tease that out 🙂 if i come up with some minimal repro i’ll give an update