Skip to content

Godot addon: Fix script editor menu in Godot 4.8 - #376

Open
prakhars144 wants to merge 1 commit into
GDQuest:mainfrom
prakhars144:fix/371-godot-48-script-editor-menu
Open

prakhars144 wants to merge 1 commit into
GDQuest:mainfrom
prakhars144:fix/371-godot-48-script-editor-menu

Conversation

@prakhars144

Copy link
Copy Markdown

Please check if the PR fulfills these requirements:

  • The commit message follows our guidelines.
  • For bug fixes and features:
    • You tested the changes.

Related issue: Fixes #371.

What kind of change does this PR introduce?

Bug fix for the Godot editor add-on and standalone add-on.

Does this PR introduce a breaking change?

No.

New feature or change

What is the current behavior?

In Godot 4.8, the script editor wraps its existing menu layout in a DocumentEditorContainer. Both add-ons fail to locate the menu bar and show a warning instead of adding the Format menu.

What is the new behavior?

Both add-ons recognize the new wrapper while retaining support for the previous editor layout. The Format menu is inserted after the last script editor menu as before.

Other information

Tested with Godot 4.8 beta 4 on Windows using a headless editor integration harness. For both menu implementations, verified menu discovery and placement in the actual 4.8 editor, format action dispatch and cleanup, and a simulated legacy layout including empty-container cases. Also ran git diff --check.

Signed-off-by: Prakhar Shukla <prakharshukla@outlook.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Could not find valid menu button in script editor" when running in 4.8 beta

1 participant