Anyone setup build within SublimeText4 ?

I was wondering if anyone has setup to do builds within SublimeText? That uses the arduino-cli commands?

Background and what I have found:

About 7 years ago, I was using the plug-in:
Robot-Will/Stino: A Sublime Text Plugin for Arduino (github.com)
But development of that appeared to have ended back in 2017

On Teensy boards (PJRC) - A couple of us, setup some support for building within SublimeText, which I still use some of the time, but this was specific to Teensy boards and Windows environment.
Defragster/Tset: Teensy Setting IDE Tools (github.com)

I was hopeful, when I found this package:
jacobrosenthal/arduino-cli: Arduino Build System for Sublime Text 3 (github.com)
However, this setup appears to use command lines associated with Arduino 1.x, as the
readme page, links to:
Arduino/build/shared/manpage.adoc at master · arduino/Arduino (github.com)
And looks like development/support on this, ended about 7 years ago.

So wondering if there are others where, the newer arduino-cli is used?

I am currently curious, as I am playing around with a new RPI5, which is a fun little setup.
I have Arduino 1.8.18 with Teensyduino installed which works. Likewise I have SublimeText4 installed. I have also installed the current release of arduino-cli on it, and have installed the board support for Teensy boards as well as Arduino GIGA.

Currently there are no IDE 2.x installs as I asked in the thread:

So wondering if anyone has setup within SublimeText?

Thanks
Kurt

Are you opposed to using VS Code instead of SublimeText? I see that VS Code builds are provided for Raspberry Pi.

I ask because the Arduino Community Edition VS Code extension (formerly Microsoft's popular Arduino extension before Microsoft abandoned it) will provide a high quality Arduino CLI integration for VS Code:

2 Likes

Thanks, I will try it.

Will try it this morning. May need to reinstall everything again, as currently on
128gb SD card. Later today hopefully the NVMe drive and hat should arrive to my mailbox in town.

Thanks, it works!

Still need to learn my way around this editor and integration. Things like, can I easily position source files to errors and warnings, key bindings and the like.

But it works!

Will mark as resolved, although still am curious if other SublimeText solutions are out there.

1 Like

@ptillisch (and all) - wondering about the different usages of the VS Code extension.

If you run it, are you typically have it configured to use an Arduino install (1.x? 2.x?)

If you click on the arduino-cli option, do you use the built in CLI or the current one?

Why I am asking, is it was working for me. But with my current install on the RPI where I choose to try to use the current version of CLI, I am having some difficulties. Will play more.

Thanks again

It doesn't have any support for use with Arduino IDE 2.x (because Arduino IDE 2.x doesn't have a suitable command line interface).

It does have support for use with Arduino IDE 1.x, but this is deprecated:

https://github.com/vscode-arduino/vscode-arduino#legacy-arduino-ide

Use of the legacy Arduino IDE is not recommended, and support for the legacy Arduino IDE will be removed in a future version of the extension.

And using Arduino CLI is definitely superior to Arduino IDE 1.x anyway:

  • Arduino CLI has significant enhancements and bug fixes compared to IDE 1.x, and is under active development while IDE 1.x is unmaintained.
  • Arduino CLI is more efficient, both in terms of disk space usage (assuming you don't have any use for an Arduino IDE 1.x installation otherwise) and performance.

I would recommend trying to use the current one. The reason is that the maintainers of the extension haven't done a good job of keeping the bundled version updated. They are bundling version 0.31.0, which is 1.5 years outdated:

There have been some breaking changes to Arduino CLI since that time so it is possible that you might find that there are compatibility problems using the latest version. Hopefully the extension might be better maintained now that the community has taken over.

The 0.x versions of Arduino CLI were technically beta releases and the Arduino developers have been fairly free with making breaking changes during that time (more in the machine interfaces than the human command line interface), but they have now implemented the desired API and made a 1.0.0 production release. So from now on the breaking changes in Arduino CLI will be rare and this means that once the extension maintainers achieve compatibility with Arduino CLI 1.x (which it is possible it already has), they should not have to face any more such work often and the extension users should be able to always use the latest version of Arduino CLI without any problems.

1 Like

Thanks,

I switched back to having it use the built-in CLI version and things are working.
I created an issue up on the github project to see if anyone up there has tried running with the 1.x versions of the CLI.
Does it work with the current released versions of Arduino-cli like 1.0.4? · Issue #42 · vscode-arduino/vscode-arduino (github.com)

Thanks again
Kurt

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.