Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Allow multiple .ino files within single project root #382

Open
Dismounted opened this issue Jul 28, 2017 · 9 comments
Open

Allow multiple .ino files within single project root #382

Dismounted opened this issue Jul 28, 2017 · 9 comments
Labels

Comments

@Dismounted
Copy link

Currently, arduino.json only supports a single path to an Arduino sketch. If a project has multiple sketches, it would be good to be prompted by VSCode to select which one to upload.

In several of my use cases (and I hope others' use cases as well!), a single project can have multiple sketches, for example, in a simple location tracking project, you could have:

  • anchor-firmware/anchor-firmware.ino for "anchor" hardware
  • tag-firmware/tag-firmware.ino for "tag" hardware

These sketches would be highly related, sharing the same libraries, Git repository and so on. Hence, depending on what is being worked on, a different sketch needs to be compiled and uploaded.

From my understanding, this is different from #271.

@iFreilicht
Copy link

This is not really possible with the way the Arduino build system works. If you want to have two separate sketches in one project, you'll have to make a separate arduino.json file for each of those sketches.

To make this more flexible, this plug-in would require proper support for build tasks, which it doesn't have to my knowledge.

@maxime-paquatte
Copy link

maxime-paquatte commented Sep 14, 2017

There an other issue opened about that, with a workaround : #271

@czgtest
Copy link
Contributor

czgtest commented Mar 6, 2018

@Dismounted have you got this resolved ?

@czgtest
Copy link
Contributor

czgtest commented Mar 6, 2018

Arduino extension is not support multiple .ino files within single project , Can you have a try @iFreilicht 's suggestion ?

@Dismounted
Copy link
Author

Haven't solved this, but have used a workaround - edit arduino.json each time I need to switch to another sketch inside the repo.

@czgtest
Copy link
Contributor

czgtest commented Mar 6, 2018

@ArthurMa1978 ,this issue is duplicate with 481, Can we close this issue ?

@czgtest
Copy link
Contributor

czgtest commented Mar 6, 2018

#481

@ArthurMa1978
Copy link
Member

As @iFreilicht mentioned, our extension leverage the Arduino build system which doesn't support multiple .ino files in one folder / project.
@Dismounted thanks for your suggestion, would put this issue into our backlog since Arduino just released new cli, not sure if it support this feature.

@ArthurMa1978 ArthurMa1978 added this to the Backlog milestone May 31, 2019
@ArthurMa1978
Copy link
Member

same as #271

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

No branches or pull requests

8 participants