-
-
Notifications
You must be signed in to change notification settings - Fork 403
arduino:avr
platform version conflict between Arduino CLI and Arduino IDE 1.8.6/1.8.7
#60
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
In the discussion below:
1.6.21 isn't even available through the list of versions for "Arduino AVR Boards" in the IDE's Board Manager. It jumps from 1.6.20 to 1.6.23. However, according to my testing, you can install 1.6.21 through arduino-cli and the IDE accepts it. If, afterwards, you upgrade through the IDE, then you will be back at the situation that OP describes. The following process should undo the "damage" done by the IDE and leave you with 1.6.21 in both the IDE and arduino-cli. The
Just for kicks, I tried to be clever and try this, but, as expected, it didn't work. There's no 1.6.23 for avr in
|
The AVR core version 1.6.23 was missing from the If the problem persists please comment further and I'll reopen. |
I don't want to be too OCD about this, but it is not clear to me that updating
The fundamental problem seems to be that |
Currently the CLI detects if it is bundled with the IDE by checking if the executable is inside the Arduino IDE folder, you can see with the --debug option for example:
The cli determine if it is bundled by checking if the Anyway, the CLI commands
I see your point, but how can this be improved? |
Thanks for taking the time to explain things. It seems that my expectation of the Arduino-CLI behavior is different than what you describe. I expected Arduino-CLI to follow the same logic as the Arduino IDE when looking for the various cores, so I expected the CLI to know about both the built-in Cores in It seems to me that the For testing purposes, I currently have 4 separate installations of the Arduino IDE: 1.8.5, 1.8.6, 1.8.7, 1.8.7-clean (fresh install w/o modifications). I use the Portable IDE configuration so that each IDE installation uses the In the mental model that I have for the Arduino-CLI workflow, I want to point it to a specific IDE installation directory, and have it build and compile in an environment that mimics the target Arduino IDE installation as closely as possible. Right now, the Arduino-CLI does not know about the Cores built-in to the IDE, so this is not possible. I understand that eventually you want the Arduino IDE to use the built-in Arduino-CLI tools. It seems like my suggested change to the |
We always called So following your suggestions a possible solution would be:
this will allow you to "link" the CLI to a specific IDE, even if the How does it sounds? |
It sounds like there are 3 use cases:
With regards to the new
|
…base-name-check Add checks for disallowed characters in library and sketch base names
I think it is better just to add configuration options for custom hardware/libraries paths.
here is a quick hack to allow additional hardware directories
|
arduino:avr
platform version conflict between Arduino CLI and Arduino IDE 1.8.6/1.8.7
I'm using the latest binary built from
$ go get -u github.com/arduino/arduino-cli
.There seems to be a version conflict between the cores used by Arduino-CLI and the built-in cores in the Arduino IDE.
$ arduino-cli core install arduino:avr
installs AVR core 1.6.21, since AVR core 1.6.22/1.6.23 have not been released (don't know why)$HOME/.arduino15/packages/arduino/hardware/avr/1.6.21
to be removed$ arduino-cli core list
to return an empty listPossibly related to Issue #28.
(Edited: clarify that IDE 1.8.6 comes bundled with AVR 1.6.22, and IDE 1.8.7 comes with AVR 1.6.23).
The text was updated successfully, but these errors were encountered: