Skip to content

Use the CLI's error codes to detect when the primary package index, library index, hardware platform is missing on IDE2 startup #1925

Open
@kittaakos

Description

@kittaakos

Describe the request

The CLI can programmatically indicate when the InitRequest has failed: arduino/arduino-cli#2076

IDE2 should eliminate the error-prone message parsing and use error codes to be more robust.

Describe the current behavior

IDE2 parsers the English error message and try to detect the error. This can be problematic when the user's default CLI language is other than English.

Arduino IDE version

2.0.4

Operating system

macOS

Operating system version

12.6.3

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: CLIRelated to Arduino CLItopic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions