-
-
Notifications
You must be signed in to change notification settings - Fork 403
Issue with platform tool dependency resolving #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi @PTS93 |
Hi @PTS93. I've tried to investigate this issue, but have not been able to reproduce it. Would you mind providing me with a specific set of steps I can follow to reproduce it? If you're using Arduino CLI, you can just give me the
The latter. When you install a boards core via Boards Manager (or
That link provides an outdated version of the documentation. Some small improvements have been made to clarify the workings of the tool dependency system in the package_index.json specification since that time. We do have one or two more improvements in this area on our "to-do" list, but if you check the up to date version of the documentation and have any specific suggestions for improvement, they would be very welcome: |
Hi @per1234 . Unfortunately I had the same issue. It was happening very randomly and sometimes months apart. Could it be that the install will proceed even if some of the tools weren't able to download (e.g. connection timeout during download, permission error during extraction etc..) and all I witnessed was the IDE trying again when I simply choose a different core with the same dependencies? Thats where I would personally start looking into how the IDE behaves when something unexpected happens like a connection timeout. How much does it guarantee that the install went ok and if it knowingly errors out, how clearly does it communicate to the user? Does it revert any changes of a partial install? |
This should be solved by #1887 which add specification on how tool selection should behave in all cases. |
This relates to this issue adafruit/ArduinoCore-samd#142
As described in the issue above I had the case where I had to first install the SAMD core provided by Arduino before I got all the necessary tools like bossac installed. Just installing the Adafruit core, even though it defines the same packages (but no download URL because it references the tools provided by Arduino). This behaviour suggest that the IDE did not check the available packages to install bossac but failed to find the defined source.
Which brings me to the question whether or not tool dependency resolving only happens via already installed packages or if it is supposed to look into all the packages available for download to look for all needed tools (e.g. include all the tools defined by official Arduino board packages and everything included via board manager URLs).
The specs here are unclear about the exact behaviour: https://arduino.github.io/arduino-cli/package_index_json-specification/
I have seen this behaviour on all supported platforms.
The text was updated successfully, but these errors were encountered: