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

GDScript: Add static analysis error reporting in GDScriptCache::get_full_script() #79163

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

anvilfolk
Copy link
Contributor

@anvilfolk anvilfolk commented Jul 7, 2023

Currently, GDScriptCache::get_full_script() emits errors during file opening and parsing, but not during static analysis or compilation. This PR changes it so analysis/compilation errors are emitted.

It is essentially a continuation of what #76954 did for GDScriptCache::get_shallow_script().

⚠️ this will cause scripts to fail earlier, possibly causing more cascading errors, which was also a worry I had with #76954 ⚠️

@anvilfolk anvilfolk requested a review from a team as a code owner July 7, 2023 15:17
@AThousandShips AThousandShips added this to the 4.x milestone Jul 7, 2023
@dalexeev dalexeev added the bug label Jul 7, 2023
@YuriSizov YuriSizov modified the milestones: 4.x, 4.2 Jul 7, 2023
@anvilfolk
Copy link
Contributor Author

Pushed to the wrong branch - the code has not changed from since this was approved :)

@YuriSizov YuriSizov merged commit d5a30f7 into godotengine:master Jul 14, 2023
@anvilfolk anvilfolk deleted the fullscripterror branch July 14, 2023 17:04
@YuriSizov
Copy link
Contributor

Thanks!

@YuriSizov YuriSizov changed the title GDScript: Add static analysis error reporting in GDScriptCache::get_full_script() GDScript: Add static analysis error reporting in GDScriptCache::get_full_script() Jul 19, 2023
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.

5 participants