Is there a trick to getting Arduino 2.0 to run under Visual Studio Code (Linux)?
Hi @edtp. Please provide more details about what you are trying to accomplish.
Are you talking about using Microsoft's VS Code extension?
Thanks you, yes. There doesn't seem to be anything to "latch on to" from the extension's view point. For instance, the problem seems to be no path to an arduino directory that contains the necessary files that Visual Code Studio and the extension are expecting to be there.
The Linux version installs an "application image" with no apparent directory structure I could pass to the extension. So, I installed the nonApplimage version. I looked through all of the directories including the hidden ones. No joy.
I know this is "cockpit" error, but I can't seem to figure out where the landing gear switch is.
Thanks in advance for your help.
You are correct that there is no way to use Arduino IDE 2.x as a dependency of that VS Code extension as there was with Arduino IDE 1.x.
The reason for this incompatibility is that the VS Code extension uses the command line interface of Arduino IDE 1.x. Arduino IDE 2.x does not have a command line interface.
The reason why the lack of a command line interface in Arduino IDE 2.x is not a deficiency, and why this lack does not impact the VS Code extension users going forward is that Arduino has created a dedicated command line tool that does everything the Arduino IDE 1.x command line interface did and far more, in a far more powerful, efficient, and user friendly manner. This tool is named "Arduino CLI":
https://arduino.github.io/arduino-cli/latest/
Arduino CLI actually provides all the non-GUI functionality for Arduino IDE 2.x under the hood.
The VS Code extension has support for use with Arduino CLI in addition to Arduino IDE 1.x. You can learn about how to use it in Microsoft's documentation here:
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino#arduino-cli
This separation of the GUI application from the rest of the functionality is actually a very good thing for applications where the GUI aspects are not needed, such as scripts and alternative development environments like the VS Code application. You can now install only the functionality you need and skip all the rest that you would never use. Compare the ~25 MB single executable Arduino CLI installation to the >500 MB Arduino IDE 2.x installation which contains >20k files!
Thank you very much! I appreciate the quick and concise answer.
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.