Skip to content

Compiling without a sketch #2208

@ghost

Description

Describe the request

When I try to compile a .ino file in arduino-cli it gives this error,

$ arduino-cli compile --fqbn arduino:avr:uno test.ino

Error opening sketch: main file missing from sketch: /home/user/env/env.ino // "env" is the current folder

What I would like to suggest is that when the arduino-cli detects the .ino extension in the argument, it should compile right away without checking for the sketch.

If this gets approval, I'll start coding.

Describe the current behavior

Simply explained in Describe part

Arduino CLI version

nightly-20230609

Operating system

Linux

Operating system version

Artix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions