Skip to content

fix(language-packs): accept supported host API versions - #177

Merged
fcoury merged 1 commit into
masterfrom
fix-language-pack-api-compatibility
Aug 6, 2026
Merged

fix(language-packs): accept supported host API versions#177
fcoury merged 1 commit into
masterfrom
fix-language-pack-api-compatibility

Conversation

@fcoury

@fcoury fcoury commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Why

Red deliberately supports multiple host API versions, but the language-pack picker and red plugin catalog compared package requirements only with the current 0.7.0 API. Because pre-1.0 caret requirements do not cross minor versions, released packs declaring ^0.6.0—including PowerShell—were incorrectly shown and rejected as incompatible even though the installer supports them.

What Changed

  • Add one catalog-package compatibility method backed by the supported host API set.
  • Use the shared rule for catalog install validation, picker availability and selection, and CLI catalog output.
  • Cover supported prior APIs and genuinely unsupported requirements with picker and catalog regressions.

How to Test

  1. Run cargo run --quiet -- plugin catalog.
    • Expect Go, PowerShell, and Swift to be reported as compatible.
  2. Open Language packs from the command palette and select PowerShell.
    • Expect the pack to be available and the install choices to open without a Red API error.
  3. Run cargo test --lib language_pack_picker.
    • Expect the ^0.6.0 regression to remain selectable and the unsupported API case to remain unavailable.
  4. Run cargo clippy --all-targets --all-features -- -D warnings.
    • Expect no warnings or errors.

@fcoury
fcoury merged commit 9c27f7c into master Aug 6, 2026
18 checks passed
@fcoury
fcoury deleted the fix-language-pack-api-compatibility branch August 6, 2026 02:03
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