Skip to content

Compile still cannot find sketch #406

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
NormanDunbar opened this issue Sep 14, 2019 · 3 comments
Closed

Compile still cannot find sketch #406

NormanDunbar opened this issue Sep 14, 2019 · 3 comments
Assignees
Milestone

Comments

@NormanDunbar
Copy link

Bug Report

Current behavior

Create a sketch as follows:

arduino-cli sketch new Testing123
Sketch created in: /home/norman/Arduino/Testing123

Now, after editing, attempt to compile it:

arduino-cli compile --fqbn arduino:avr:diecimila:cpu=atmega328 Testing123

This fails with the following message:

Error during build: build failed: unable to stat Sketch location: 
stat /home/norman/Testing123: 
no such file or directory

However, if I specify Arduino in the sketch name, as follows, it compiled perfectly:

arduino-cli compile --fqbn arduino:avr:diecimila:cpu=atmega328 Arduino/Testing123
Sketch uses 930 bytes (3%) of program storage space. Maximum is 30720 bytes.

I would expect the sketch new and compile or upload commands to assume the same default location for a sketch.

As requested by @cmaglie in comment #51 (comment) I'm raising a new issue.

Expected behavior

I would expect the default location for a sketch new command to be the same one used by a compile or upload command? At least, this makes sense to me, otherwise, why have a default?

It appears that the default location for sketch new is $HOME/Arduino, but for compile and upload it's just $HOME.

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: 0.5.0 Commit: 3be2287
  • OS and platform: Linux Mint 19.3 64 bit.

Cheers,
Norm.

@olinorwell
Copy link

I agree fully. The defaults here create confusion. I had an identical situation when first using arduino-cli and I'm sure pretty much all users will run into this.

@masci masci added this to the 0.6.0 milestone Sep 24, 2019
@masci
Copy link
Contributor

masci commented Sep 24, 2019

Thanks for the feedback, I'll consolidate the commands to avoid confusion.

@masci masci added the kind/bug label Sep 24, 2019
@masci masci self-assigned this Sep 24, 2019
@masci
Copy link
Contributor

masci commented Oct 1, 2019

Fixed in #396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants