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

Preferences: "Apply" after changing the colour of a Code Editor 2 scope changes it to a different colour #9087

Closed
KormexGit opened this issue Jan 19, 2025 — with GM Bug Reporter · 3 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Milestone

Comments

@KormexGit
Copy link

KormexGit commented Jan 19, 2025

Description

If you change a scope color in the theme editor, hitting apply will make it change to some other completely different color.

GameMaker-Beta_xo3IFjX7VQ.mp4

Steps To Reproduce

Change a scope color in the theme editor, then hit apply.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1300.0.720 Runtime v2024.1300.0.733

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

405994a7-e065-4e16-95f3-9df3c5309049

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Jan 19, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Jan 20, 2025
@stuckie stuckie added this to the 2024.13 milestone Jan 20, 2025
@KormexGit
Copy link
Author

KormexGit commented Jan 20, 2025

GameMaker-Beta_6wke336Ohl.mp4

Looks like it's actually the color picker failing to update properly: It's setting the color to whatever your very first click on the color picker gives you. Can see the actual code color changes before hitting apply, but only to the first color clicked.

@zreedy zreedy moved this from Todo to In Progress in Team Workload Jan 20, 2025
@zreedy
Copy link

zreedy commented Jan 20, 2025

Fixed. Theme was being Refreshed upon every dirtying of the model state. Refreshing means serialize to disk the current theme, then deserializing from disk all themes and updating the singleton TmTheme. A stale reference was retained from the old singleton value resulting in its serialization to disk without the most recent changes.

@mgeddesGM
Copy link

verified as of IDE v2024.1300.0.730 Runtime v2024.1300.0.741

@mgeddesGM mgeddesGM moved this from Ready for QA to Verified in Team Workload Jan 28, 2025
@YYDan YYDan changed the title Code Editor 2: Hitting apply after changing the color of a scope will change it to some other unrelated color Preferences: "Apply" after changing the colour of a Code Editor 2 scope changes it to a different colour Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Projects
Status: Verified
Development

No branches or pull requests

4 participants