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?
i am running the latest clojure-lsp version
Does it work on the version prior to the latest?
havenโt really tried, will try ๐
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.
@pithyless you could probably get this custom analysis using clj-kondo as a library as well.
or using carve: in that case, only analyze the src folder and not the test folder
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)
I think clojure-lsp is already supposed to do this for the lens. I'm not sure what the requirements are though.
Nice! But for some reason I'm not seeing that. clojure-lsp 2021.05.27-17.42.34
https://github.com/clojure-lsp/clojure-lsp/commit/cb48904062e146d28ae6308038c67b4d366c194b
Perhaps that's a reflection issue with GraalVM native-image?
looks like. iโll try with the latest jar.
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
@pithyless it should work if notice the reference is in a test file
test file a mean, some file with contains _test.
in their name
Fixed on master, I should release it soon
:clojure-lsp: 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.
Thanks Eric!
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
i can confirm that the problems is gone. thank you eric.