Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use BoardsManifest if Boards is not applicable #294

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

Merged
masci merged 1 commit into arduino:master from kittaakos:use-boards-manifest
Jul 25, 2019

Conversation

Copy link
Contributor

@kittaakos kittaakos commented Jul 19, 2019

This patch falls back to the BoardsManifest when the Boards is not
available.

When the Boards are not installed, hence unavailable, the produced
gRPC instance won't contain the FQBN but the Name only.

This patch is a kind of a workaround for #277. The name of the boards will be still available, although the FQBN cannot be accessed.

Let me know what you think about this patch. Thanks!

Signed-off-by: Akos Kitta kittaakos@typefox.io

Copy link

CLAassistant commented Jul 19, 2019
edited
Loading

CLA assistant check
All committers have signed the CLA.

@kittaakos kittaakos force-pushed the use-boards-manifest branch 2 times, most recently from e4bd962 to f204bfb Compare July 22, 2019 08:33
Copy link
Contributor Author

I am not sure this will work at all, I would have expected, names are unique, but it's not the case. I can see the following board names on my client:
Screen Shot 2019年07月22日 at 14 01 48

Copy link
Contributor Author

It's because both the arduino:samd_beta@1.6.25 and arduino:samd@1.8.3 platform releases contain the same Arduino MKR Vidor 4000 board.

Copy link
Contributor

This is certainly somewhat unexpected, but I'd think it depends on the use-case where this board list is used. In case of the board manager for example, after de-duping the list it would certainly be useful.

@masci what do you think?

Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is clear and well commented so I'm not concerned for having this workaround in the codebase. I think we should merge this while elaborating a fix for the root cause of #277.

Copy link
Contributor

masci commented Jul 23, 2019

@32leaves agree, that problem must be solved upstream, if deduping works for you in the meantime and it's helpful for the user (which I believe it's the case) we should go for it.

csweichel reacted with thumbs up emoji

Copy link
Contributor Author

Code is clear and well commented

There is a typo, let me fix that now.

Copy link
Contributor Author

let me fix that now.

Done.

Copy link
Contributor

masci commented Jul 23, 2019

@ArduinoBot build this please

1 similar comment
Copy link
Contributor

rsora commented Jul 23, 2019

@ArduinoBot build this please

Copy link
Contributor

✅ Build completed.

⬇️ Linux 64: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linux64.tar.bz2

⬇️ Linux 32: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linux32.tar.bz2

⬇️ Linux ARM: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linuxarm.tar.bz2

⬇️ Windows: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-windows.zip

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-osx.zip

i️ To test this build:

  1. Just replace arduino-cli binary with the provided one

Copy link
Contributor Author

kittaakos commented Jul 23, 2019
edited
Loading

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-osx.zip

Dear @ArduinoBot, the download link for macOS incorrect 😉

 _ _ _ _ _ 
 | | | | | | | | (_) 
 __| | _____ ___ __ | | ___ __ _ __| |___ __ _ _ __ __| |_ _ _ _ __ ___ ___ ___ 
 / _` |/ _ \ \ /\ / | '_ \| |/ _ \ / _` |/ _` / __| / _` | '__/ _` | | | | | '_ \ / _ \ / __/ __|
| (_| | (_) \ V V /| | | | | (_) | (_| | (_| \__ \_ | (_| | | | (_| | |_| | | | | | (_) | | (_| (__ 
 \__,_|\___/ \_/\_/ |_| |_|_|\___/ \__,_|\__,_|___(_) \__,_|_| \__,_|\__,_|_|_| |_|\___/ (_\___\___|

Should end with -macosx.zip.

Copy link
Contributor

rsora commented Jul 23, 2019

@ArduinoBot build this please

Copy link
Contributor

✅ Build completed.

⬇️ Linux 64: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linux64.tar.bz2

⬇️ Linux 32: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linux32.tar.bz2

⬇️ Linux ARM: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linuxarm.tar.bz2

⬇️ Windows: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-windows.zip

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-macosx.zip

i️ To test this build:

  1. Just replace arduino-cli binary with the provided one

Copy link
Contributor

rsora commented Jul 23, 2019

@kittaakos good catch!
Now the link is fixed.

Copy link
Contributor

masci commented Jul 25, 2019

@kittaakos can you rebase on master (again, sorry), the CI should pass then 🙇‍♂️

This patch falls back to the `BoardsManifest` when the `Boards` is not
available.
When the `Boards` are not installed, hence unavailable, the produced
gRPC instance won't contain the `FQBN` but the `Name` only.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Copy link
Contributor Author

The builds are green now.

masci reacted with thumbs up emoji

@masci masci merged commit 19f5f9f into arduino:master Jul 25, 2019
@kittaakos kittaakos deleted the use-boards-manifest branch July 25, 2019 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@masci masci masci approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /