Skip to content

Compile fails when sketch filename is specified in the command #51

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
eduherminio opened this issue Sep 30, 2018 · 2 comments
Closed

Compile fails when sketch filename is specified in the command #51

eduherminio opened this issue Sep 30, 2018 · 2 comments
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement

Comments

@eduherminio
Copy link
Contributor

First of all, congrats on this project, it's just awesome.

I've just spent some time trying to use arduino-cli to compile a sketch for the first time.

I can now compile and upload sketches to my Uno and Duemilanove with no problems even though the boards themselves are not recognised.

Problem solved, not really worried about some of my boards not being recognized.

  • Secondly, and this is why I decided to open this issue, I wasn't able to make arduino-cli compile any sketch for any board.
    C:\Program Files (x86)\Arduino\examples\01.Basics\Blink>arduino-cli compile --fqbn arduino:avr:uno Blink.ino.
    After trying desperately different options with different boards (arduino-cli board listall is very useful!), I was about to open a real issue when I came back for a moment to README.md:

$ arduino-cli compile --fqbn arduino:samd:mkr1000 Arduino/MyFirstSketch

Not:

$ arduino-cli compile --fqbn arduino:samd:mkr1000 Arduino/MyFirstSketch/MyFirstSketch.ino

There it was my mistake,


I may not be the only or last person that tries to run arduino-cli over Arduino sketch rather than over its surrounding dir, so I suggest trying to detect this specific behavior when invoking arduino-cli compile or at least mentioning this explicitly in README.md instructions.

Disclaimer: I may be wrong, the pitfall I'm describing won't happen to anyone else and documenting it explicitly is worthless.

@NormanDunbar
Copy link

I've seen similar problems on different systems.

On my laptop, in Linux Mint 18.3, I have to pass the full path to the sketch. On a VM, with Mint 19, I just need the Arduino/sketch_name part. Weird. Both systems using exactly the same alpha release version.

So, you are not wrong.

Cheers,
Norm.

@per1234 per1234 added topic: documentation Related to documentation for the project type: enhancement Proposed improvement labels May 24, 2019
@per1234 per1234 changed the title Prevent (possibly common) 'not compiling' pitfall Compile fails when sketch filename is specified in the command May 24, 2019
@cmaglie
Copy link
Member

cmaglie commented Sep 12, 2019

@eduherminio @NormanDunbar please test the latest version of the cli to see if the problem is fixed.
If not please open a new issue and provide the exact command you run and the output to further analyse your issues.

@cmaglie cmaglie closed this as completed Sep 12, 2019
per1234 pushed a commit that referenced this issue Nov 16, 2020
…d) (#51)

* - handling empty `_shadowTopicIn`
- preventing `_syncStatus` from being set to value other than `SYNC_STATUS_SYNCHRONIZED` when empty shadow topic

* fix getting started problem

* - applied fix suggestions by @ilcato

* Fixed bracing style to K&R employed in the rest of the file

* Moving initialisation of member variables with default values in constructor
per1234 added a commit that referenced this issue Aug 9, 2021
Add schema provided checks for library.properties precompiled field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants