-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[lsp] - rename symbol keeping the same name #42573
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
Comments
I get a different response from the server than in the log above (an error instead of null):
However, the server still stopped responding (even in a test). It turned out to be a silly mistake - I had reused an error code, and it happened to the the one raised then the client/server are out-of-sync which results in a server shutdown 😞 I've got a fix here: https://dart-review.googlesource.com/c/sdk/+/153341/ |
I see, thank you for the quick fix @DanTup, I'll keep an eye on that :) |
Bug: #42573 Change-Id: I615563ed636cf48b4fe84e7588f49bb7137a4f53 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153341 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Danny Tuppeny <[email protected]>
This was fixed by 34ad5a5. (@bwilkerson @ericdallo I don't have powers to close this, so someone will have to do it for me. Thanks!) |
Thank you very much @DanTup :) |
It seems that
dart_analysis_server
crashes when receive atextDocument/rename
with the same symbol name on thenewName
field.I could not reproduce it on VSCode because vscode seems to not send the
textDocument/rename
when the symbol name is the name, but on Emacs usinglsp-dart
, we send thetextDocument/rename
and after the server returnsnull
on the response(Which is ok following the LSP spec), the dart_analysis_server process crash.Some log from the
lsp-dart
client:Tested on flutter channel stable, dart 2.8.1 and flutter dev channel,
Dart 2.9.0 (build 2.9.0-19.0.dev 7e72c9ae7e)
The text was updated successfully, but these errors were encountered: