-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
textDocument/linkedEditingRange failed when opening files or moving cursor #1374
Comments
I rolled back down to version It might be related to the issue described in #1373 |
Thanks for reporting this. It does seem to be related to that issue, in particular to the updating of the LSP client library. @ericdallo, any idea what could be going wrong here? |
@bpringe yes, we added on last release the live rename via |
I'd like to understand why vscode calls this method without user interaction, if that makes sense for some reason, we could make clojure-lsp not return error but a null value when not in a symbol |
Are you able to reproduce the error as is? If not I'll try to find a minimal reproduction setup. Until then steps to reproduce should be
|
I can't repro that with a lein project and calva 2.0.222, but I'm using vscode |
Tried to repro with the portable version of VSCode Will have to be an individual issue on my existing setup then. I'll let you know if I find anything out. |
To provide another data point, I tried to reproduce as well with Calva |
I am also getting this with:
Just opening the The extension log reads this for each toast:
As @mfru said, downgrading to |
Also, testing with VSCode Insiders |
thanks for the feedback, this still stands for me: #1374 (comment) |
This search might be a good place to start. This only started happening after I only looked briefly in that One other thing that I suppose could be happening is that something Calva or VS Code are calling causes that request to be made when the 7.0.0+ version of the client is available. I don't know if that makes sense though. |
Accidentally closed 😄 |
I really think this is true, calva started calling after the version was upgraded + clojure-lsp added support to linkedEdittingRange on latest release |
Adding some info from Eric in Slack:
This probably wouldn't take long to fix. I'll prioritize it, but it might be a bit before I get to it. A PR is welcome if anyone feels the desire to do it before me. |
From Rick Jensen on Slack:
I'm not sure why it would stop happening like that, but I wanted to add the additional info here. |
Observed behavior: Calva throwing an error, but still working.
Expected behavior: Calva working without throwing errors or printing a more helpful error message.
When opening my Leiningen project in VS Code I get
every time I open a
.clj
file or move the cursor inside a.clj
file.Otherwise it is working fine.
Stacktrace in VS Code DevTools:
The last time I remember everything being ok (last time I opened the project) was about a week ago, so maybe a VS Code or Calva update introduced the error?
The text was updated successfully, but these errors were encountered: