Skip to content
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

feat: reference sketch.yaml platforms for "upload", "board list", etc. #2602

Open
3 tasks done
egnor opened this issue May 13, 2024 · 0 comments
Open
3 tasks done

feat: reference sketch.yaml platforms for "upload", "board list", etc. #2602

egnor opened this issue May 13, 2024 · 0 comments
Assignees
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@egnor
Copy link

egnor commented May 13, 2024

Describe the request

The sketch project file sketch.yaml is wonderful for making more self contained projects that don't include the dreaded "okay now here follow these 20 steps to Set Up Your Machine, by the way they're out of date" disease. (Version managers like asdf or mise are another part of the solution.)

BUT it only really has much effect for arduino-cli compile. When for example doing arduino-cli upload, if the core in question hasn't been installed with arduino-cli core install, the upload will often fail. Similarly, arduino-cli board list won't detect boards unless the core has been installed.

The upload command does parse sketch.yaml to find attachment information, so, there's some precedent for looking for one...

Describe the current behavior

A core that is referenced in sketch.yaml but not globally installed on the system doesn't inform arduino-cli upload or arduino-cli board list commands.

Arduino CLI version

arduino-cli Version: 0.35.3 Commit: 95cfd65 Date: 2024-02-19T13:24:24Z

Operating system

Linux

Operating system version

Ubuntu 24.04

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details
@egnor egnor added the type: enhancement Proposed improvement label May 13, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label May 14, 2024
@alessio-perugini alessio-perugini added this to the Arduino CLI 1.0.1 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants