Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Proposal for changing the way we select and use the CLI inside the IDE #142

Closed
@kittaakos

Description

@kittaakos

Current behavior:

The IDE picks up and uses the arduino-cli from the PATH if present instead of the bundled one.

Problem:

We do not check whether the arduino-cli from the PATH is compatible with the IDE. It could lead to strange behavior, such as one described here.

Expected behavior:

  • If arduino-cli is not on the PATH, use the embedded one.

  • If arduino-cli is on the PATH apply the following rules:

    • Compare the versions of the embedded one and the one from the PATH.
    • Use the higher version.
    • If the versions match, use the embedded one. (Note, we do not check the commit hash in the versions when comparing them.)
    • Always log which one was selected at app startup.
    • The log message must contain the commit hash, although we do not use it when comparing the versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions