Closed
Description
I'm running the following command & "C:\Program Files (x86)\Arduino\arduino_debug.exe" --install-boards esp8266:esp8266:2.4.2
from a powershell prompt and the installation fails with the error "Selected board is not available".
I have verified using Fiddler that it downloads the package definition from the expected location (http://arduino.esp8266.com/stable/package_esp8266com_index.json) and the package appears to be valid and it definitely contains a version 2.4.2, but the install just fails.
If I specify version 2.3.0 it also fails with the same error.
If I don't specify a version at all (just esp8266:esp8266
) then it succeeds and it installs a package version 2.3.0 but I don't know where it's getting it from.
Activity
veleek commentedon Sep 26, 2018
Note: the
/stable
URL is simple a redirect to: http://arduino.esp8266.com/versions/2.4.2/package_esp8266com_index.json.veleek commentedon Sep 27, 2018
Additional info, after digging around I determined that I had both the
/stable/package...
URL AND the/versions/2.3.0/package_...
URL specified in the Additional Board Manager URLs configuration setting. The 2.3.0 URL was specified first, so when I excluded version from the parameter that was the one that it chose to install.I removed the 2.3.0 path and now if I exclude version it installs 2.4.2 but it still fails if I explicitly provide the version with the same error.
facchinm commentedon Oct 5, 2018
The regression has been introduced with 3092e03 , https://github.com/arduino/Arduino/blob/master/app/src/processing/app/Base.java#L308 call to
VersionHelper.valueOf(boardToInstallParts[2]).toString()
now returnsOptional[$versionNumber]
.@cmaglie fixing
toString()
should be enough right?veleek commentedon Oct 5, 2018
FYI: I also see similar errors when attempting to install libraries using the Library Manager (from the VSCode plugin). Is there a chance that this same code was modified in both the board manager and library manager?
Provide actual string to findPlatform for Optional<Version>
cmaglie commentedon Oct 8, 2018
@veleek
yes, that's the same problem, I'm going to add a fix on top of #8069
Invalid use of toString in Optional<Version>