Skip to content

Fix modules.json installation after editor failure#453

Merged
Larusso merged 1 commit intomasterfrom
fix/module-sync-when-editor-install-fails
Mar 5, 2026
Merged

Fix modules.json installation after editor failure#453
Larusso merged 1 commit intomasterfrom
fix/module-sync-when-editor-install-fails

Conversation

@Larusso
Copy link
Owner

@Larusso Larusso commented Mar 5, 2026

Description

Improve error handling in the module installation pipeline to properly distinguish between Editor and module failures, and clean up partial installations when the Editor itself fails during a fresh install.

Changes

  • [ADD] EditorInstallationFailed and ModuleInstallationsFailed variants to InstallError
  • [FIX] Clean up installation directory when Editor installation fails on fresh install
  • [FIX] Return early on Editor failure without attempting module installs
  • [UPDATE] install_modules_with_installer() and install_module_and_dependencies() return Result<()> instead of Vec<InstallError>
  • [ADD] Tests covering editor failure cleanup, module failure collection, and success scenarios
  • [ADD] editor-failure-cleanup spec
  • [UPDATE] incremental-modules-sync spec with Editor failure exception clause

## Description

Improve error handling in the module installation pipeline to properly
distinguish between Editor and module failures, and clean up partial
installations when the Editor itself fails during a fresh install.

## Changes

* [ADD] `EditorInstallationFailed` and `ModuleInstallationsFailed` variants to `InstallError`
* [FIX] Clean up installation directory when Editor installation fails on fresh install
* [FIX] Return early on Editor failure without attempting module installs
* [UPDATE] `install_modules_with_installer()` and `install_module_and_dependencies()` return `Result<()>` instead of `Vec<InstallError>`
* [ADD] Tests covering editor failure cleanup, module failure collection, and success scenarios
* [ADD] `editor-failure-cleanup` spec
* [UPDATE] `incremental-modules-sync` spec with Editor failure exception clause
@Larusso Larusso merged commit f82250a into master Mar 5, 2026
8 checks passed
@Larusso Larusso deleted the fix/module-sync-when-editor-install-fails branch March 5, 2026 06:54
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