Skip to content

Changing board does not update partition scheme selection #1751

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
illigtr opened this issue Dec 8, 2022 · 3 comments
Closed
3 tasks done

Changing board does not update partition scheme selection #1751

illigtr opened this issue Dec 8, 2022 · 3 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@illigtr
Copy link

illigtr commented Dec 8, 2022

Describe the problem

Changing board does not update partition scheme selection in the GUI - IDE 2.0.4

To reproduce

Example using ESP32 board manager installed.

Using Menu/Tools/Board/esp32/ select any board
Then view the partition schemes available for that board under Menu/Tools/Partition Scheme.
Note the list.

Now select a different board
The partition schemes do not update correctly from the boards.txt file.

Used process monitor to ensure the correct boards.txt is being read when the IDE first starts.

Expected behavior

The GUI should update and present the specific list of partition schemes for the selected board. It does not.

One can also test this by editting the boards.txt and adding some custom schemes. They will not appear in the GUI. However, these feature works perfectly in IDE 1.8.19

Arduino IDE version

2.0.4-nightly-20221208

Operating system

Windows

Operating system version

11

Additional context

No response

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
@illigtr illigtr added the type: imperfection Perceived defect in any part of project label Dec 8, 2022
@per1234
Copy link
Contributor

per1234 commented Dec 10, 2022

Hi . Thanks for taking the time to submit an issue.

Even though your report implies that the Tools > Partition Scheme menu never reflects differences in the menu options from one board to another, my experiment showed this is not so:

  1. Select Tools > Board > esp32 > ESP32 Dev Module from the Arduino IDE menus.
  2. Open the Tools > Partition Scheme menu. Note there is a "RainMaker" menu item, as expected.
  3. Select Tools > Board > esp32 > ESP32 Wrover Module from the Arduino IDE menus.
  4. Open the Tools > Partition Scheme menu. Note there is no "RainMaker" menu item, as expected.

So in fact the menu does reflect the correct options from the unmodified board definition.

The problem becomes more clear from your statement here:

One can also test this by editting the boards.txt and adding some custom schemes. They will not appear in the GUI.

I see we have another report about this at #1030.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2022
@per1234 per1234 self-assigned this Dec 10, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Dec 10, 2022
@per1234 per1234 changed the title Changing board does not update partition scheme selection - IDE 2.0.4 Changing board does not update partition scheme selection Dec 10, 2022
@illigtr
Copy link
Author

illigtr commented Dec 10, 2022 via email

@Adrianotiger
Copy link

Boards info are cached in:
%APPDATA%\arduino-ide\Local Storage\leveldb

If you delete the *.ldb files inside this folder it works (at least for the partition schemes). But you need to set again all settings for your board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants