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

An option to use arduino-cli instead of Arduino IDE #856

Closed
TomasHubelbauer opened this issue Jul 9, 2019 · 15 comments
Closed

An option to use arduino-cli instead of Arduino IDE #856

TomasHubelbauer opened this issue Jul 9, 2019 · 15 comments
Assignees
Labels
arduino-cli code ready feature-request needs-more-info More details about this issue are needed for it to be actionable. stale

Comments

@TomasHubelbauer
Copy link

TomasHubelbauer commented Jul 9, 2019

This is a great extension, thanks for making it! I see that it requires the Arduino IDE be installed for one to be able to use it. Arduino recently (about a year ago) started working on arduino-cli which is a CLI for Arduino (duh) and I am wondering if you guys have this on your radar and maybe are thinking about using it as a "backend" for this extension instead of the Arduino IDE?

It is still alpha quality but when it's more stable it might make sense. Or maybe it could be offered as an option, an alternative to installing the Arduino IDE?

Some extensions (like the C++ one or the C# one with OmniShrap) already offer to download their prerequisites by themselves so that the user doesn't need to install anything and I am curious if it would make sense for this one to offer to download the Arduino CLI for the user so the only thing to do as a user would be to install this VS Code extension and connect the board, the rest taken care of.

Of course it would probably also be possible to offer automated download of the Arduino IDE, it looks like it has a silent mode installer: https://forum.arduino.cc/index.php?topic=582294.0. However, I still think supporting the Arduino CLI at least as an alternative makes a lot of sense, because it is lighter and doesn't bundle stuff people might potentially not use (like the whole IDE bit).

Will be happy to hear your thoughts on this!

@botbench
Copy link

botbench commented Jul 9, 2019

Came here to leave a similar message, but you beat me to it.

@ArthurMa1978 ArthurMa1978 added this to the Backlog milestone Jul 15, 2019
@rei-vilo
Copy link

rei-vilo commented Aug 15, 2019

@ArthurMa1978

Any news on this topic?

Some references:

@iqapps
Copy link

iqapps commented Sep 30, 2019

Agree on this.

This would also enable the possibility to create VS Code tasks, to make simple preprocessing of Arduino code, like moving files around before compiling.

@a7hybnj2
Copy link

there is also the "arduino builder" which appears to have been a similar concept to the "arduino cli" I don't know which is better or what the specific differences are just thought I would mention it just in case...

@modmatic
Copy link

This also has the benefit of the screen not switching to the Arduino IDE every time I verify or upload. I use full-screen apps a lot (Mac) and once it switches over to whichever screen has the IDE, it doesn't go back (that part is an OS thing, but is an annoying side effect of using the Arduino IDE vs CLI).

@TomasHubelbauer
Copy link
Author

@a7hybnj2 It looks like the Arduino Builder is actually based on invoking the Arduino CLI, at least that what I get from a quick read of its source code. It imports it as a module dependency and I think it invokes it for the compilation, although I don't know much about Go so I might be misunderstanding. What's also interesting though is that it is apparently bundled with the Arduino IDE and if it indeed uses the CLI that might mean the CLI is also bundled with the IDE? I have no computer with the IDE at hand right now to check.

If that's true and both the Builder and the CLI come with the IDE, it makes even more sense to offer either as an alternative to the IDE in this extension as it would not present any new prerequisites, people would be required to just have the IDE as they do currently. Still, it would be extra cool if one didn't have to have the IDE if they don't intend to use it and could just have the extension automatically install the CLI by itself, but even not having to install anything extra on top of the IDE is a good argument for adding the CLI option as it won't present new prerequisites aside from the already existing ones.

@MarcLV
Copy link
Contributor

MarcLV commented Sep 15, 2020

Guys, please like and comment this PR to fix this once and for all.
#1017

@a7hybnj2
Copy link

What is the status of this? Can I install and test this?

I see in the PR that mac and linux support isn't complete. What is still missing?

@benmcmorran benmcmorran removed this from the Backlog milestone Jan 19, 2022
@kopp
Copy link
Contributor

kopp commented Dec 30, 2022

@TomasHubelbauer : I can use the plugin with arduino-cli at the moment, so I guess this issue can be closed.

@TomasHubelbauer
Copy link
Author

@kopp Did you have to do any setup? I can't test this right now but I'd rather not close until there are clear steps in the readme documenting how to use the CLI over the IDE.

@benmcmorran
Copy link
Member

Thanks for the feedback. Only the legacy IDE and Arduino CLI are currently officially supported. Additionally, we plan to drop support for the legacy IDE entirely in the next release of this extension and recommend that all users move to Arduino CLI as soon as possible. The recent v0.5.0 release of the extension includes a bundled copy of Arduino CLI that should ease this migration.

@benmcmorran benmcmorran added the needs-more-info More details about this issue are needed for it to be actionable. label Feb 16, 2023
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Apr 2, 2023
@kopp
Copy link
Contributor

kopp commented Apr 2, 2023

For future reference: I documented the setup I needed to do to use the arduino-cli in #1562

@github-actions github-actions bot removed the stale label Apr 2, 2023
@github-actions
Copy link

github-actions bot commented May 2, 2023

This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed.

@github-actions github-actions bot added the stale label May 2, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

This issue has been automatically closed due to inactivity. If you are still experiencing problems, please open a new issue.

@github-actions github-actions bot closed this as completed May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arduino-cli code ready feature-request needs-more-info More details about this issue are needed for it to be actionable. stale
Projects
None yet
Development

No branches or pull requests