-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
[3.x] Several minor LSP issues #53293
Comments
CC @Razoric480 |
I've tested the steps above with VSCode in Linux and it doesn't seem like these minor issues are caused by a buggy LSP client this time. |
I'm investigating these now. Just putting my notes down here as a way to show progress and just to have someplace to put them. Number 1 appears to be caused by the LSP inserting When the statement is after extends ( EDIT: Fixed by adding a check for TK_CURSOR in tokenizer for parsing the extends. |
Godot version
3.x branch at 8d0b2ed
System information
Arch Linux
Issue description
This ticket is following up on #53238 (comment). On that issue, #53238, it was determined that one of the underlying causes that made the engine to crash was a buggy LSP client.
For a while now I've been stumbling upon strange errors
that seem to be caused by a buggy LSP client, in this case Vim-ALE,and I'm bringing this up in case there are relevant changes that should be made to Godot.Most of my tests are on 3.x. I am unsure if the issues below affect the
master
branch.The errors described below are also not shown in the editor, but in an external terminal emulator that is attached to Godot.
Steps to reproduce
All the cases below assume the user has opened the engine using
godot -e
at the path whereproject.godot
is at.Case 1
Hovering over the
extends
in a GDScript file generates the following LSP event:which generates the following Error:
Case 2
Hovering over an empty line generates the following LSP event:
Which generates the following error:
Case 3
Opening a GDScript file outside of the Godot project generates a ton of events, but the following seems to be the important one:
And right after you'll see the following error:
Minimal reproduction project
A GDScript template will do:
The text was updated successfully, but these errors were encountered: