Skip to content

Changing board does not update partition scheme selection #1751

Not planned
@illigtr

Description

@illigtr

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

Activity

per1234

per1234 commented on Dec 10, 2022

@per1234
Contributor

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.

self-assigned this
on Dec 10, 2022
changed the title [-]Changing board does not update partition scheme selection - IDE 2.0.4[/-] [+]Changing board does not update partition scheme selection[/+] on Dec 10, 2022
illigtr

illigtr commented on Dec 10, 2022

@illigtr
Author
Adrianotiger

Adrianotiger commented on Dec 15, 2022

@Adrianotiger

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

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Adrianotiger@per1234@illigtr

      Issue actions

        Changing board does not update partition scheme selection · Issue #1751 · arduino/arduino-ide