Skip to content

Fix ESP-IDF Manager empty list when opened before IDF installation#1430

Open
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-esp-idf-manager-issue
Open

Fix ESP-IDF Manager empty list when opened before IDF installation#1430
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-esp-idf-manager-issue

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 9, 2026

  • Acknowledge questioner's valid point: calling refreshEditorUI() when eimJson is null is pointless — if eimJson is null the eim_idf.json file does not exist, so the refresh will find nothing
  • Revert createPage() to restore the original if (eimJson != null) guard
  • Keep the valid race-condition fix in refreshAfterEimClose() (thenRun() chain)

The issue was that refreshEditorUI() was not called when eimJson was null,
which happens when the ESP-IDF Manager is opened before any IDF is installed.

Changes:
- Always call refreshEditorUI() in createPage() to ensure the table is
  populated from the eim_idf.json file regardless of initial eimJson state
- Change refreshEditorUI() to return CompletableFuture<Void> to enable
  proper sequencing of async operations
- Fix race condition in refreshAfterEimClose() where setupInitialEspIdf()
  was called before refreshEditorUI() completed, causing it to see an
  empty table

Agent-Logs-Url: https://github.com/espressif/idf-eclipse-plugin/sessions/ca8282ac-e486-4a42-80b0-921e40dfd062

Co-authored-by: kolipakakondal <8463287+kolipakakondal@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix ESP IDF manager not displaying installed SDKs Fix ESP-IDF Manager empty list when opened before IDF installation Apr 9, 2026
Copilot AI requested a review from kolipakakondal April 9, 2026 15:21
The questioner correctly identified that calling refreshEditorUI() when
eimJson is null is pointless: if eimJson is null it means eim_idf.json
could not be loaded, so refreshEditorUI() would also find nothing and
just show an empty table.

The original null guard (if eimJson != null) is correct and is restored.
The only meaningful fix from the previous session is the race-condition
fix in refreshAfterEimClose(), where setupInitialEspIdf() is now chained
via thenRun() so it runs after the async refresh has populated the table.

Agent-Logs-Url: https://github.com/espressif/idf-eclipse-plugin/sessions/9d212ef8-49c5-46be-b9aa-b3d696c5136a

Co-authored-by: kolipakakondal <8463287+kolipakakondal@users.noreply.github.com>
@kolipakakondal kolipakakondal marked this pull request as ready for review April 10, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESP IDF manager from eclipse ide plugin 4.x.0 is not working

2 participants