-
-
Notifications
You must be signed in to change notification settings - Fork 71
Proposal for changing the way we select and use the CLI inside the IDE #142
Comments
From my personal experience on similar software, the IDE should always use the embedded version of the CLI, which should be considered as part of the IDE release package. The only exception might be an "advanced setting" where you can override the embedded binary if you know what you're doing. |
Thank you for your feedback, @masci.
We had the same thought during our call yesterday. The current limitation: we do not support updates inside the app, so there is no way for users trying out a more recent version of the CLI without downloading and installing a new version of the app.
Unfortunately, the preferences support still on a branch, hence we decided with this logic. Once we merge the preferences, we should adjust the Expected behavior too and do exactly what you wrote above. 👆 Thoughts? |
I understand this is something valuable at alpha/beta stages, take my concerns as only relevant in the long run, when having the IDE to support multiple versions of the CLI will be incredibly hard and will take a toll in both the IDE and the CLI release process.
Depending on how user friendly we want to be, have you considered relying on a special env var like |
Current behavior:
The IDE picks up and uses the
arduino-cli
from thePATH
if present instead of the bundled one.Problem:
We do not check whether the
arduino-cli
from thePATH
is compatible with the IDE. It could lead to strange behavior, such as one described here.Expected behavior:
If
arduino-cli
is not on thePATH
, use the embedded one.If
arduino-cli
is on thePATH
apply the following rules:PATH
.The text was updated successfully, but these errors were encountered: