Skip to content

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

Merged
YuriSizov merged 1 commit intogodotengine:masterfrom
anvilfolk:fullscripterror
Jul 14, 2023
Merged

GDScript: Add static analysis error reporting in GDScriptCache::get_full_script()#79163
YuriSizov merged 1 commit intogodotengine:masterfrom
anvilfolk:fullscripterror

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