Skip to content

IEP-1789: Add support for eim_idf.json 3.0#1485

Open
sigmaaa wants to merge 10 commits into
masterfrom
support_eim_json_v3
Open

IEP-1789: Add support for eim_idf.json 3.0#1485
sigmaaa wants to merge 10 commits into
masterfrom
support_eim_json_v3

Conversation

@sigmaaa

@sigmaaa sigmaaa commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Support EIM eim_idf.json schema 3.0 by reading the new per-installation status field (in_progress, failed, finished, being_repaired, broken) and showing it in the ESP-IDF Manager table with color-coded labels. Activation is allowed only for healthy finished installs with valid Python and activation metadata. Older schemas (2.0 and 1.0) remain supported via tolerant parsing — missing status defaults to finished, so users can update the IDE without upgrading EIM.

Fixes # (IEP-1789)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How has this been tested?

Manual — schema and ESP-IDF Manager

Tested with both 2.0 and 3.0 eim_idf.json files (~/.espressif/tools/eim_idf.json on macOS/Linux, C:\Espressif\tools\eim_idf.json on Windows).

  • A1 — Schema 2.0: Open ESP-IDF Manager with v2.0 file (no status). Installs load; status shows Active/inactive; Activate works for valid installs
  • A2 — Schema 3.0 statuses: Verify in_progress, failed, being_repaired, broken, finished — correct label, color, and Activate enabled only for finished
  • A3 — Unknown status: Unrecognized status value treated as broken; Activate disabled
  • A4 — Activation: Activate a finished install → env vars/toolchains update; sample project builds
  • A5 — Unsupported version: "version": "4.0" → version mismatch error

Manual — offline changes (IDE was closed)

Uses EimJsonStateChecker on startup.

  • B1 — Edit while IDE closed: Open IDE → quit → change eim_idf.json → restart → offline-change prompt appears
  • B2 — Accept prompt: Yes → ESP-IDF Manager opens; table shows updated installs/status
  • B3 — Decline prompt: No → dialog closes; no forced activation
  • B4 — 2.0 → 3.0 offline: Replace v2.0 file with v3.0 while IDE closed → restart → prompt + status column after refresh

Manual — online changes (IDE running)

Uses EimJsonWatchService while IDE is open.

  • C1 — Edit while IDE open: Change eim_idf.json → change prompt; version cache invalidated
  • C2 — Manager open: Manager already open → accept prompt → table refreshes in place
  • C3 — Manager closed: Manager closed → accept prompt → manager opens with updated data
  • C4 — EIM lifecycle: EIM install/repair (in_progressfinished) while IDE open → status updates; Activate enabled only when finished

Manual — fresh install and upgrade paths

  • D1 — Fresh IDE, no registry: Clean env, IDE only → no crash; user guided to set up EIM
  • D2 — Fresh IDE, v2.0 registry: First launch with existing 2.0 file → no false offline-change prompt; manager loads normally
  • D3 — Fresh IDE, v3.0 registry: First launch with 3.0 file → status column works; activation gating correct
  • E1 — IDE update only (EIM 2.0): Upgrade IDE, keep EIM/registry at 2.0 → backward compatible
  • E2 — IDE update only (EIM 3.0 file): Upgrade IDE only; registry already 3.0 → status support works without EIM upgrade
  • E3 — IDE + EIM update: Both upgraded → registry migrates to 3.0; offline/online prompt + new statuses
  • E4 — Active install preserved: IDE upgrade with unchanged active selection → workspace env remains valid

Regression (refactor touchpoints)

  • IDE starts cleanly with v2.0 and v3.0 registry present
  • Open EIM from IDE — no duplicate change prompts (watcher paused during EIM UI)
  • SetupToolsInIde completes; IDF_PATH, toolchains, and LSP paths update
  • Install without valid python path is not activatable even when status: finished
  • Initial tool setup runs after manager table refresh on first open

Test Configuration:

  • ESP-IDF Version:
  • OS (Windows,Linux and macOS):

Dependent components impacted by this PR:

  • EIM manager

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

Summary by CodeRabbit

  • New Features
    • The IDE now supports a richer installation lifecycle in the manager UI (setup, in progress, failed, being repaired, broken) and updates activation/reinstall enablement based on the selected installation’s state.
    • The ESP-IDF Manager editor can open and refresh without preloading configuration details.
  • Bug Fixes
    • Improved eim_idf.json handling with schema/version compatibility parsing and more robust model loading.
    • UI refresh now properly clears “installing” indicators and invalidates cached version data when the JSON changes; version-mismatch popups were removed in favor of logging.
  • Tests
    • Added unit tests covering schema-version parsing and status-to-UI rendering.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR replaces EimJson/IdfInstalled with EimConfigModel/EimInstallationModel, adds schema-version and installation-status handling, and updates loader, setup, startup, and table UI flows to use the new model.

Changes

EIM JSON model abstraction and UI migration

Layer / File(s) Summary
Schema, status, and DTO models
bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimJsonVersion.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/InstallationStatus.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimConfigModel.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimInstallationModel.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentation.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentationRenderer.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/Messages.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/messages.properties, bundles/com.espressif.idf.core/META-INF/MANIFEST.MF, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimConstants.java
Adds the schema-version enum, installation-status enum, config and installation DTOs, presentation model and renderer, new status message keys, updated exports, and removes the old valid-version constant.
JSON loader and parser refactor
bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimIdfJsonLoader.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimIdfConfiguratinParser.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java, tests/com.espressif.idf.core.test/src/com/espressif/idf/core/tools/test/EimIdfJsonLoaderTest.java
Adds the loader, rewrites parser loading around EimConfigModel, updates config resolution to the new model, and adds loader tests for V2 and V3 JSON.
Setup and utility migration
bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/SetupToolsInIde.java, bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/util/ToolsUtility.java
Switches setup, version lookup, active-state checks, and environment setup to EimConfigModel and EimInstallationModel.
Editor startup and launch wiring
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/EimEditorInput.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/ESPIDFManagerEditor.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EspressifToolStartup.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/ManageEspIdfVersionsHandler.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EimButtonLaunchListener.java
Removes EimJson from editor input, adds editor lookup helpers, and opens the manager without preloaded JSON state.
Table page, watcher, and job listener
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/pages/ESPIDFMainTablePage.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/watcher/EimJsonUiChangeHandler.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/SetupToolsJobListener.java, bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/render/EimInstallationStatusSwtMapper.java
Rebuilds table rendering and setup flow around the new model and presentation layer, updates change handling, and clears installing state before refresh after setup jobs.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • AndriiFilippov
  • kolipakakondal

Poem

🐇 I hopped through JSON, neat and new,
V2 and V3 came shining through.
Old EimJson took a bow tonight,
New models dance in clean daylight.
The rabbit grins: “All paths are set!” 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 5.80% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: adding support for eim_idf.json 3.0.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch support_eim_json_v3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EspressifToolStartup.java (1)

384-400: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Wait for old-config export before reloading and reopening the manager.

If the old config branch runs here, handleOldConfigExport() only queues startExportOldConfig() on the UI thread, so Line 391 can reload before conversion finishes and Line 400 can open the manager with stale or missing eim_idf.json.

Suggested fix
-						if (toolInitializer.isOldEspIdfConfigPresent() && !toolInitializer.isOldConfigExported())
-						{
-							Logger.log("Old configuration found and not converted");
-							handleOldConfigExport();
-						}
-						try
-						{
-							eimConfig = toolInitializer.loadEimConfig();
-						}
-						catch (EimVersionMismatchException e)
-						{
-							Logger.log(e);
-							MessageDialog.openError(Display.getDefault().getActiveShell(), e.msgTitle(),
-									e.getMessage());
-							return;
-						}
-						openEspIdfManager();
+						Runnable reloadAndOpen = () -> {
+							try
+							{
+								eimConfig = toolInitializer.loadEimConfig();
+								openEspIdfManager();
+							}
+							catch (EimVersionMismatchException e)
+							{
+								Logger.log(e);
+								MessageDialog.openError(Display.getDefault().getActiveShell(), e.msgTitle(),
+										e.getMessage());
+							}
+						};
+						if (toolInitializer.isOldEspIdfConfigPresent() && !toolInitializer.isOldConfigExported())
+						{
+							Logger.log("Old configuration found and not converted");
+							handleOldConfigExport(reloadAndOpen);
+							return;
+						}
+						reloadAndOpen.run();
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EspressifToolStartup.java`
around lines 384 - 400, The startup flow in EspressifToolStartup should not
continue past handleOldConfigExport() until the old-config conversion has
finished, because it only schedules startExportOldConfig() asynchronously on the
UI thread. Update the branch around
isOldEspIdfConfigPresent()/isOldConfigExported() so loadEimConfig() and
openEspIdfManager() wait for the export to complete, ensuring eim_idf.json is
present before reloading and reopening the manager.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimIdfJsonLoader.java`:
- Around line 49-56: `EimIdfJsonLoader.load` currently uses `FileReader` and
directly calls `JsonParser.parseReader(...).getAsJsonObject()` and
`root.get("version").getAsString()`, which can throw unchecked exceptions and
escape `ToolInitializer`’s checked error handling. Switch the loader to a UTF-8
reader, and wrap JSON-shape/parse failures in an `IOException` from `load` so
malformed, non-object, or null-version payloads fail cleanly. Also remove the
now-unused `FileReader` import.

In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimJsonVersion.java`:
- Around line 32-55: The EimJsonVersion.parse flow currently lets malformed
version strings escape as NumberFormatException from parseVersionNumber instead
of the declared EimVersionMismatchException. Update parse and/or
parseVersionNumber so inputs like "v3" or "3.x" are caught and normalized into
EimVersionMismatchException, using the existing EimJsonVersion.parse and
parseVersionNumber methods to preserve the schema-version mismatch contract.

In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/InstallationStatus.java`:
- Around line 41-54: The InstallationStatus.fromJson parser currently falls back
to FINISHED for any unknown status, which can incorrectly mark bad or future
schema-3 values as activatable. Update fromJson to fail closed by mapping
unrecognized values to a non-activatable state such as BROKEN, or by rejecting
the document before it reaches EimConfigAdapterV3 and
DefaultEimInstallationModel. Keep the null/blank handling, but ensure only known
status strings return a healthy state.

In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/DefaultEimInstallationPresentationRenderer.java`:
- Around line 29-32: The FINISHED branch in
DefaultEimInstallationPresentationRenderer currently returns an empty status
text for inactive installations, which causes ESPIDFMainTablePage to render a
blank cell. Update the inactive path in the renderer to supply an explicit
visible status string via EimInstallationPresentation.StatusKind.INACTIVE and
the status text field instead of "", keeping the active path unchanged.

In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/SetupToolsInIde.java`:
- Around line 188-189: Validate the Python path once at the start of
SetupToolsInIde before any setup-side effects, using installation.getPython() in
the same place you already resolve it for the activation-script branch, and fail
fast there if it is missing. Then pass that resolved pythonPath through the
later consumers in SetupToolsInIde instead of calling
installation.getPython().orElseThrow() again, so setupEnvVarsInEclipse() and the
other setup steps never begin mutating IDE state before the required path is
confirmed.
- Around line 99-108: The activation-script launch is still using the unmodified
system environment even though SetupToolsInIde prepares an augmented env with
config.getGitPath(). Update the process start path in the same flow that uses
getActivationScript() and ToolsUtility.getExportScriptCommand() to pass the env
map you built, so the activation script sees the added PATH/Git entry. Keep the
existing missing-script handling unchanged and ensure the environment passed to
the script is the one modified by addGitToEnvironment().

In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java`:
- Around line 170-175: Guard the configured eimPath in
ToolInitializer.getEimPath() before passing it to Paths.get(...), since
config.getEimPath() can contain an invalid path from eim_idf.json and currently
causes InvalidPathException. Update the logic around the eimPath optional to
validate or safely catch path parsing failures before Files.exists(...) so
invalid config values fall through to PATH/default resolution instead of
breaking EspressifToolStartup.earlyStartup(). Use the existing getEimPath() flow
and the eimPath variable as the main place to apply the fix.

In
`@bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/ESPIDFManagerEditor.java`:
- Around line 88-92: The first-startup setup is being triggered too early in
ESPIDFManagerEditor, before the refresh job has populated the table. Move the
call to setupInitialEspIdf() out of the createPage() flow and into the refresh
completion/UI update path used by refreshEditorUI(), so it runs only after rows
are loaded and first-startup activation is not skipped.

In
`@bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/watcher/EimJsonUiChangeHandler.java`:
- Around line 81-91: The EIM JSON state is being marked as seen even when
accepted handling fails, so update the flow in EimJsonUiChangeHandler to persist
state only after launchEspIdfManager reports success. Make launchEspIdfManager
return a boolean and have it return true only after IDE.openEditor(...) and the
table refresh dispatch complete successfully, then call
EimJsonStateChecker.updateLastSeenState() only when that success path is
reached. Keep the IOException handling in the validation/launch path from
swallowing failures that should prevent state persistence.

In
`@tests/com.espressif.idf.core.test/src/com/espressif/idf/core/tools/test/EimIdfJsonLoaderTest.java`:
- Around line 67-73: The V3 fixture in EimIdfJsonLoaderTest is not testing the
BROKEN-status path because DefaultEimInstallationModel.isActivatable() also
depends on activationScript being present. Update the fixture used by the
idfInstalled entry in this test to include an activationScript so activation is
possible except for status, and keep the assertions focused on
isActivatable()/presentation.isActivateEnabled() reflecting the broken status
mapping.

---

Outside diff comments:
In
`@bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EspressifToolStartup.java`:
- Around line 384-400: The startup flow in EspressifToolStartup should not
continue past handleOldConfigExport() until the old-config conversion has
finished, because it only schedules startExportOldConfig() asynchronously on the
UI thread. Update the branch around
isOldEspIdfConfigPresent()/isOldConfigExported() so loadEimConfig() and
openEspIdfManager() wait for the export to complete, ensuring eim_idf.json is
present before reloading and reopening the manager.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ee81527f-7e81-4db6-b8ec-7450c075e85b

📥 Commits

Reviewing files that changed from the base of the PR and between 0cfae1d and 55074cb.

📒 Files selected for processing (35)
  • bundles/com.espressif.idf.core/META-INF/MANIFEST.MF
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimConstants.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimIdfConfiguratinParser.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/Messages.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/SetupToolsInIde.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimIdfJsonLoader.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimJsonVersion.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/InstallationStatus.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/adapter/EimConfigAdapter.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/adapter/EimConfigAdapterFactory.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/adapter/EimConfigAdapterV2.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/adapter/EimConfigAdapterV3.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/DefaultEimConfigModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/DefaultEimInstallationModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimConfigModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimInstallationModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/DefaultEimInstallationPresentationRenderer.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentation.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentationRenderer.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentationRendererFactory.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/schema/v3/EimJsonV3.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/schema/v3/IdfInstalledV3.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/messages.properties
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/util/ToolsUtility.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EimButtonLaunchListener.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EspressifToolStartup.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/ManageEspIdfVersionsHandler.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/SetupToolsJobListener.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/ESPIDFManagerEditor.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/EimEditorInput.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/pages/ESPIDFMainTablePage.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/render/EimInstallationStatusSwtMapper.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/watcher/EimJsonUiChangeHandler.java
  • tests/com.espressif.idf.core.test/src/com/espressif/idf/core/tools/test/EimIdfJsonLoaderTest.java
💤 Files with no reviewable changes (1)
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/EimConstants.java

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimInstallationModel.java`:
- Around line 72-75: `EimInstallationModel.isActivatable()` currently enables
activation whenever the status and activation script are present, but it also
needs to require Python so incomplete V2/V3 entries stay disabled. Update the
`isActivatable()` check to include the Python field/presence alongside
`getStatus().isActivatable()` and `getActivationScript().isPresent()`, so
`ESPIDFMainTablePage` won’t expose activation for installations that later fail
in the setup flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: be8e492d-ab36-4dfe-94da-a18771abf327

📥 Commits

Reviewing files that changed from the base of the PR and between 55074cb and 3b02a75.

📒 Files selected for processing (12)
  • bundles/com.espressif.idf.core/META-INF/MANIFEST.MF
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/EimIdfJsonLoader.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimConfigModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/model/EimInstallationModel.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentation.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentationRenderer.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/vo/EimJson.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/vo/IdfInstalled.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/SetupToolsJobListener.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/pages/ESPIDFMainTablePage.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/watcher/EimJsonUiChangeHandler.java
  • tests/com.espressif.idf.core.test/src/com/espressif/idf/core/tools/test/EimIdfJsonLoaderTest.java
💤 Files with no reviewable changes (3)
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/vo/IdfInstalled.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/vo/EimJson.java
  • bundles/com.espressif.idf.core/META-INF/MANIFEST.MF
🚧 Files skipped from review as they are similar to previous changes (5)
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/SetupToolsJobListener.java
  • tests/com.espressif.idf.core.test/src/com/espressif/idf/core/tools/test/EimIdfJsonLoaderTest.java
  • bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/eimjson/presentation/EimInstallationPresentation.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/watcher/EimJsonUiChangeHandler.java
  • bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/manager/pages/ESPIDFMainTablePage.java

@sigmaaa sigmaaa changed the title WIP: IEP-1789: Add support for eim_idf.json 3.0 IEP-1789: Add support for eim_idf.json 3.0 Jul 1, 2026
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.

1 participant