Skip to content

Fix compilation error with module_gdscript_enabled=no by adding explicit EditorSyntaxHighlighter include#117013

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
Mrfanta-stick:fix-missing-syntax-highlighter-include
Mar 4, 2026
Merged

Fix compilation error with module_gdscript_enabled=no by adding explicit EditorSyntaxHighlighter include#117013
Repiteo merged 1 commit into
godotengine:masterfrom
Mrfanta-stick:fix-missing-syntax-highlighter-include

Conversation

@Mrfanta-stick

Copy link
Copy Markdown
Contributor

Fixes a module dependency logic error in editor/doc/editor_help.cpp by explicitly including the header file editor/script/syntax_highlighters.h.

Currently, EditorSyntaxHighlighter is being transitively accessed via GDScript dependencies. When compiling the engine with GDScript disabled (scons module_gdscript_enabled=no), the build fails with an "invalid use of incomplete type" error because the class blueprint is missing.

This PR makes the inclusion explicit, allowing the engine to compile successfully when module_gdscript_enabled=no (such as when building a C#-only engine with module_mono_enabled=yes).

@Mrfanta-stick Mrfanta-stick requested review from a team as code owners March 3, 2026 11:27
Comment thread editor/doc/editor_help.cpp Outdated
@AThousandShips AThousandShips added this to the 4.x milestone Mar 3, 2026
@AThousandShips AThousandShips changed the title Fix compilation error with module_gdscript_enabled=no by adding expli… Mar 3, 2026

@kitbdev kitbdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed, this fixes the issue.

@kitbdev kitbdev modified the milestones: 4.x, 4.7 Mar 4, 2026
@Repiteo

Repiteo commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Could you squash your commits? See our pull request guidelines for more information

@Mrfanta-stick Mrfanta-stick force-pushed the fix-missing-syntax-highlighter-include branch from c5c0cac to 7ae470e Compare March 4, 2026 17:38
@Mrfanta-stick

Copy link
Copy Markdown
Contributor Author

Could you squash your commits? See our pull request guidelines for more information.

Squashed! Thanks for the review!

@Repiteo Repiteo merged commit f67eca1 into godotengine:master Mar 4, 2026
20 checks passed
@Repiteo

Repiteo commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment