X Tutup
Skip to content

Remove circular unneeded debug_adapter_protocol.h include from debug_adapter_parser.h#111470

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Ivorforce:debug-circular-include
Oct 10, 2025
Merged

Remove circular unneeded debug_adapter_protocol.h include from debug_adapter_parser.h#111470
Repiteo merged 1 commit intogodotengine:masterfrom
Ivorforce:debug-circular-include

Conversation

@Ivorforce
Copy link
Member

@Ivorforce Ivorforce commented Oct 10, 2025

Currently, debug_adapter_protocol.h includes debug_adapter_parser.h, and debug_adapter_parser.h includes debug_adapter_protocol.h. This can break builds in case debug_adapter_parser.h is included first, because the following would happen:

  • debug_adapter_parser.h starts to parse
  • include to debug_adapter_protocol.h found
  • debug_adapter_protocol.h starts to parse
  • include to debug_adapter_parser.h found, but ignored
  • RemoteDebugger fails to resolve (usually included through debug_adapter_parser.h)

Turns out neither of these actually needs to include the other, so I simplified the includes.

@Ivorforce Ivorforce added this to the 4.x milestone Oct 10, 2025
@Ivorforce Ivorforce requested a review from a team as a code owner October 10, 2025 08:20
@Ivorforce Ivorforce requested a review from a team October 10, 2025 08:20
@Ivorforce Ivorforce changed the title Remove circular unneeded debug_adapter_protocol.h include from `debug_adapter_parser.h Remove circular unneeded debug_adapter_protocol.h include from debug_adapter_parser.h Oct 10, 2025
@Ivorforce Ivorforce force-pushed the debug-circular-include branch from 8cf5ff3 to 0c85d9b Compare October 10, 2025 08:38
@akien-mga akien-mga modified the milestones: 4.x, 4.6 Oct 10, 2025
@Ivorforce Ivorforce force-pushed the debug-circular-include branch from 0c85d9b to 56abd0e Compare October 10, 2025 08:41
@Repiteo Repiteo merged commit c417769 into godotengine:master Oct 10, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 10, 2025

Thanks!

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 participants

X Tutup