Skip to content

Invalid sketch.json is silently ignored #1220

Closed
@matthijskooijman

Description

@matthijskooijman

Bug Report

Current behavior

matthijs@grubby:~/test$ tree
.
├── sketch.json
└── test.ino

0 directories, 2 files
matthijs@grubby:~/test$ cat sketch.json 
{ foo
matthijs@grubby:~/test$ arduino-cli compile -v

Error during build: no FQBN provided

When an invalid sketch.json is present, it is silently ignored.

Expected behavior

I would expect an error about sketch.json containing invalid JSON and no other messages.

Environment

  • CLI version (output of arduino-cli version): arduino-cli alpha Version: 0.0.0-git Commit: Date:
  • Not sure why arduino-cli version says nothing useful, but this is a locally compiled, slightly modified version based on bf364db from Feb 26.
  • OS and platform: Linux / Ubuntu Focal / amd64

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions