Skip to content
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

Fix LSP completion crashing on scene-less scripts #51332

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

Razoric480
Copy link
Contributor

@Razoric480 Razoric480 commented Aug 6, 2021

Fixes #51331 . While the issue points to Godot 3.x, it's also there in 4.0, so I'm issuing this for 4.0 and we can cherrypick it back into 3.x. #51333 added for 3.x

Also adds checks to prevent crashes when the script cannot be loaded or is not part of the project.

@akien-mga akien-mga merged commit 4cb406e into godotengine:master Aug 6, 2021
@akien-mga
Copy link
Member

Thanks!

@Razoric480 Razoric480 deleted the fix-completion-sceneless branch September 25, 2021 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.x] LSP Server crashes Editor on autocompletion of Scene-less scripts
3 participants