Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.5rc1 Clear Recent Files returns out of bounds error #61179

Closed
ghost opened this issue May 19, 2022 · 5 comments
Closed

3.5rc1 Clear Recent Files returns out of bounds error #61179

ghost opened this issue May 19, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented May 19, 2022

Godot version

3.5rc1

System information

Windows 11

Issue description

If you try to Clear Recent Files in the script editor you get an out of bonds error and the list isn't cleared.

grafik

editor/plugins/script_editor_plugin.cpp:486 - Index p_idx = 1 is out of bounds (rc.size() = 1)

It doesn't matter how many files are listed. In 3.4.4, 3.5b5 and 4.0a8 it's working as intendet.

Steps to reproduce

Open any script and click "Clear Recent Files"

Minimal reproduction project

No response

@timothyqiu
Copy link
Member

#61102 backported #57330. It contains a breaking change that makes PopupMenu's default ID 0-based instead of 1-based.

@akien-mga
Copy link
Member

akien-mga commented May 19, 2022

Indeed. It was discussed on Rocket.Chat that this wouldn't break compat but obviously this does, it's probably best to revert for 3.5 as it will break all user code.

Or maybe only the PopupMenu change should be reverted? The OptionButton change seem relatively safe to me.

@akien-mga
Copy link
Member

Or maybe only the PopupMenu change should be reverted? The OptionButton change seem relatively safe to me.

Yeah I think this change is not meant to be there, it was done in #57330 to fix a regression from #54647, which is not being backported.

akien-mga added a commit to akien-mga/godot that referenced this issue May 19, 2022
@akien-mga akien-mga changed the title 3.5rc1 Clear Recent Files returns out of bonds error 3.5rc1 Clear Recent Files returns out of bounds error May 19, 2022
@okla
Copy link

okla commented May 19, 2022

Sorry for that. Wasn’t sure if I should backport PopupMenu changes too or only OptionButton ones. Should have discussed this better. Also, that’s why a commit should never contain two (or more) distinct changes.

@akien-mga
Copy link
Member

Fixed by #61181.

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

No branches or pull requests

3 participants