-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Add support for Pluggable Discoveries #1333
Conversation
e381a03
to
6f2b9b8
Compare
a8c5220
to
6e0b14d
Compare
c5a2184
to
a4594a8
Compare
1ab82ed
to
e6de840
Compare
8d389c4
to
5ab1ecd
Compare
I get a panic now if I try to upload without specifying a port:
Previously there was a friendly error message:
|
That's no good. It should now be possible to upload without specifying a port for boards that use tools that automatically detected the correct port, but it certainly must not crash like this for those that don't. Thanks for the great review anyway. 🙏 |
e6edb87
to
ca6ca3d
Compare
ccdc20d
to
bf84915
Compare
6544e1b
to
c5f14e0
Compare
6f63cf5
to
8ef520c
Compare
8ef520c
to
40943b1
Compare
🎉 |
I noticed a regression that I expect is caused by this PR. When using arduino-cli from git now, uploads using (our slightly customized version of) the STM32 core fail with:
The board in question indeed does not define To reproduce:
I guess this is fairly easy to fix in the core, though (just define both @fpistm, you might find this interesting too :-) |
@matthijskooijman you're my nightmare :-)
yes I think it's the thing to do, I'll move your comment in a new issue, so we can keep track of it. |
@cmaglie Mine too 😜 |
Lol, thanks for the compliments :-p |
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)This PR introduces quite a bit of changes to add support for Pluggable Discoveries as specified by the related RFC.
Currently the Arduino CLI uses a bundled
serial-discovery
tool to search for supported boards connected to serial ports, there is no support for boards connected to the network or 3rd party boards that require specific tools to be discovered.There is currently no way for 3rd party platforms to specify a custom tool to run to discover boards.
After this PR is merged any platform will be able to specify custom tools to run at discovery time to find supported boards, for example when calling
arduino-cli board list
.This change is fully retro compatible with platform that don't specify a discovery tool, the bundled
serial-discovery
tool will be used as a fallback.Discovery tools will be internally loaded automatically when the Arduino CLI is initialized and run when necessary.
titled accordingly?
Yes, they are documented in the
docs/UPGRADING.md
file.None.
See how to contribute