Skip to content

Change MSBuildPanel to EditorDock - #113115

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
KoBeWi:Buildock
Nov 27, 2025
Merged

Change MSBuildPanel to EditorDock#113115
akien-mga merged 1 commit into
godotengine:masterfrom
KoBeWi:Buildock

Conversation

@KoBeWi

@KoBeWi KoBeWi commented Nov 24, 2025

Copy link
Copy Markdown
Member

Part of #113024

@raulsntos raulsntos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Only reviewing the commit that contains the C# changes. The changes look mostly good, except for a few code style nitpicks. But when I tested, I run into an error.

When building a C# project with errors, instead of opening the MSBuild dock it throws an error:

ERROR: Parameter "dock" is null.
   at: make_item_visible (./editor/gui/editor_bottom_panel.cpp:151)
   C# backtrace (most recent call first):
       [0] void Godot.NativeCalls.godot_icall_1_2(nint, nint, nint) (/src/godot/modules/mono/glue/GodotSharp/GodotSharp/Generated/NativeCalls.cs:37)
       [1] void Godot.EditorPlugin.MakeBottomPanelItemVisible(Godot.Control) (/src/godot/modules/mono/glue/GodotSharp/GodotSharpEditor/Generated/GodotObjects/EditorPlugin.cs:729)
       [2] void GodotTools.Build.BuildManager.ShowBuildErrorDialog(string) (/src/godot/modules/mono/editor/GodotTools/GodotTools/Build/BuildManager.cs:55)
       [3] bool GodotTools.Build.BuildManager.BuildProjectBlocking(GodotTools.Build.BuildInfo) (/src/godot/modules/mono/editor/GodotTools/GodotTools/Build/BuildManager.cs:233)
       [4] bool GodotTools.Build.BuildManager.BuildProjectBlocking(string, string, bool) (/src/godot/modules/mono/editor/GodotTools/GodotTools/Build/BuildManager.cs:320)
       [5] void GodotTools.Build.MSBuildPanel.BuildProject() (/src/godot/modules/mono/editor/GodotTools/GodotTools/Build/MSBuildPanel.cs:79)
       [6] void GodotTools.GodotSharpEditor.BuildProjectPressed() (/src/godot/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs:154)
       [7] void Godot.Callable.<From>g__Trampoline|1_0(object, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) (/src/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Callable.generics.cs:39)
       [8] void Godot.DelegateUtils.InvokeWithVariantArgs(nint, System.Void*, Godot.NativeInterop.godot_variant**, int, Godot.NativeInterop.godot_variant*) (/src/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/DelegateUtils.cs:86)

Since the MSBuildPanel instance is no longer added as a bottom panel item, it looks like we may need to change this line:

plugin.MakeBottomPanelItemVisible(plugin.MSBuildPanel);

Comment thread modules/mono/editor/GodotTools/GodotTools/Build/MSBuildPanel.cs Outdated
Comment thread modules/mono/editor/GodotTools/GodotTools/Build/MSBuildPanel.cs Outdated
Comment thread modules/mono/editor/GodotTools/GodotTools/Build/MSBuildPanel.cs Outdated
@KoBeWi
KoBeWi marked this pull request as ready for review November 25, 2025 21:31
@KoBeWi
KoBeWi requested a review from a team as a code owner November 25, 2025 21:31
@KoBeWi
KoBeWi requested a review from a team November 25, 2025 21:31
@KoBeWi
KoBeWi requested a review from a team as a code owner November 25, 2025 21:31

@raulsntos raulsntos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@akien-mga akien-mga modified the milestones: 4.x, 4.6 Nov 26, 2025
<method name="make_visible">
<return type="void" />
<description>
Focuses the dock's tab (or window if it's floating). If the dock was closed, it will be opened. If it's a bottom dock, makes the bottom panel visible.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Believe it or not we rarely use "focus" as an actual verb. Oftentimes it's something like "gain/grab focus", "receive the focus" "has focus", etc.
However, there is one occurrence of "open and focus the dock" in add_control_to_dock in EditorDock, so maybe that's fine...

@akien-mga
akien-mga merged commit e0e1a0c into godotengine:master Nov 27, 2025
20 checks passed
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@KoBeWi
KoBeWi deleted the Buildock branch November 27, 2025 11:06
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
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.

6 participants