Skip to content

--install-boards esp8266:esp8266:2.4.2 reports Selected board is not available #8034

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

Closed
veleek opened this issue Sep 26, 2018 · 5 comments
Closed
Labels
Component: CLI The Arduino IDE's command line interface

Comments

@veleek
Copy link

veleek commented Sep 26, 2018

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.

@veleek
Copy link
Author

veleek commented Sep 26, 2018

Note: the /stable URL is simple a redirect to: http://arduino.esp8266.com/versions/2.4.2/package_esp8266com_index.json.

@per1234 per1234 added the Component: CLI The Arduino IDE's command line interface label Sep 26, 2018
@veleek
Copy link
Author

veleek commented 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
Copy link
Member

facchinm commented 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 returns Optional[$versionNumber] .
@cmaglie fixing toString() should be enough right?

@veleek
Copy link
Author

veleek commented 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?

@cmaglie
Copy link
Member

cmaglie commented Oct 8, 2018

@veleek
yes, that's the same problem, I'm going to add a fix on top of #8069

cmaglie added a commit to facchinm/Arduino that referenced this issue Oct 8, 2018
It should be used on the actual Version.

Fix arduino#8034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CLI The Arduino IDE's command line interface
Projects
None yet
Development

No branches or pull requests

4 participants