Skip to content

"Optimize for Debugging" state indicator doesn't change from disabled #1212

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

Closed
3 tasks done
per1234 opened this issue Jul 19, 2022 · 1 comment · Fixed by #1213
Closed
3 tasks done

"Optimize for Debugging" state indicator doesn't change from disabled #1212

per1234 opened this issue Jul 19, 2022 · 1 comment · Fixed by #1213
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Jul 19, 2022

Describe the problem

The "Optimize for Debugging" item in the Arduino IDE's "Sketch" menu toggles the state of the arduino.compile.optimizeForDebug setting. The current state of the setting is indicated by the presence or absence of a at the left side of the menu item:

image

🐛 If the setting was disabled (the default state) when the Arduino IDE window was opened, the indicator will not appear when the setting is enabled.

To reproduce

Set up

  1. Open the Arduino IDE's "Sketch" menu.
  2. If there is a at the left side of the "Optimize for Debugging" menu item, select the menu item to disable it and open a new window.

Steps

  1. Select Sketch > Optimize for Debugging from the Arduino IDE menus.
  2. Open the Arduino IDE's "Sketch" menu.

🐛 There is no indicator next to the "Optimize for Debugging" menu item, even though the setting is enabled:

image

Expected behavior

State of the arduino.compile.optimizeForDebug setting is always indicated in the "Sketch" menu.

Arduino IDE version

2.0.0-rc8-snapshot-5ff9ce0

Operating system

Windows

Operating system version

10

Additional context

I bisected the introduction of the issue to 8ad10b5 (it does not occur when using the build for fe31d15)


I verified that the Sketch > Optimize for Debugging menu item is changing the arduino.compile.optimizeForDebug setting even when the indicator is not working.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jul 19, 2022
@kittaakos
Copy link
Contributor

Possible this one: eclipse-theia/theia#11221

kittaakos pushed a commit that referenced this issue Jul 19, 2022
Closes #1212.

Restored the `Optimize for Debugging` before:
abca14a02be77160a86d9f4fb6eca8c18d47312d2d4be37c50de50430bbbcd07

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Jul 19, 2022
Closes #1212.

Restored the `Optimize for Debugging` before:
abca14a02be77160a86d9f4fb6eca8c18d47312d2d4be37c50de50430bbbcd07

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@per1234 per1234 added the conclusion: resolved Issue was resolved label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants