12 ms·
The Arduino IDE 2.0 beta
- eggfriedrice 6y agoNice to see that it's not just another VS Code spin off. They seem to be finding a nice middle ground between the very basic Arduino 1 IDE, and an over-complicated all-in IDE. Plus, debugging, woo!
- perone 6y agoActually it would be much better if they just invested in VSCode for that.
- monocasa 6y agoIt's based off of Theia, so isn't it another VSCode spin off?
- easton 6y agoWhat? That’s exactly what this is. Theia is a fork of VSCode that Eclipse maintains (with a slightly differently structured backend, I think), and they’ve forked that and removed the bits you don’t need for working with Arduino. You can see it in the screenshot, it looks like VSCode with less buttons.
- eggfriedrice 6y agoI stand corrected!
- Bancakes 6y agoVSCode already works better for me. Has all the intellisense and folder management I need. And has my favorite color schemes and git integration. I've ever only needed the clunky Arduino IDE to install libraries and board types.
- ubidefeo 6y agoyou cannot have full intellisense on Arduino project because of how the pre-processing works and generates headers and forward declarations. IDE 2.0 contains a Language Server developed from scratch to handle this, and every platform supported by ClangD works. Even using the Arduino plugin for VS Code won't offer proper completion, hinting and jump-to-definition
- Bancakes 6y agoThe only bug I've had was I need to flash my arduino with a project to "warm the compiler up" w.r.t. libraries and hardware capabilities.
- e12e 6y agoMirror/archive link: https://web.archive.org/web/20210511210021/https://blog.arduino.cc/2021/03/01/announcing-the-arduino-ide-2-0-beta/ https://web.archive.org/web/20210511210021/https://blog.ardu...
- zackees 6y agoAs someone who has spent a lot of time programming Arduino I welcome this new IDE. IMO the thing that has always held back Arduino was the programming interface and the lack of tooling to write correct code. This is super important since this is targeted at students who will shoot themselves in the foot when they forget a letter in a function and they have to wade through gcc error codes. The arduino CLI is always very much welcome. It's sad that this is all coming out in 2021, rather than 2014 when Arduino was on a fast adoption trajectory. I feel that the lack of good IDE/tooling really hurt the adoption rate.
- bredren 6y agoWe used the Arduino IDE a fair amount building the code for an interactive art piece we deployed at the 2019 burn. https://skylarkcollective.com/blog/2020/01/27/the-listener-at-burning-man-2019/ https://skylarkcollective.com/blog/2020/01/27/the-listener-a... I believe we had to use the official arduino IDE to compile because we were working with a Teensy to get extra power and processor. https://www.pjrc.com/teensy/ https://www.pjrc.com/teensy/ When getting really detailed with gameplay and audio cues it was always easier to just make edits in the IDE to test again and again. It was missing a lot of conveniences that would have made the project easier. I work with Pycharm most of the time so the Arduino IDE was like the land before time. I’m glad to see this, it is important for early skill building to have some semblance of modern dev tooling.
- tkuraku 6y agoSeems like a much better use of resources would to be just make a vscode extension.
- swiley 6y agoWell they have the command line build tool. IMO: focusing on the CLI so people could integrate it better into more mature/complete environments would have been much better. The main reason people use the Arduino IDE is because it doesn't drag in the complexity of something like AVR studio (which interestingly enough is just a visual studio extension IIRC.)
- bastardoperator 6y agoAgreed, I would argue having a special editor one needs to use is a barrier to entry for beginners or even people like myself who don't want to switch over to a new editor.
- Melkman 6y agoThere's already PlatformIO for that. VSCode is not really open and has nasty tracking included. The source is available under MIT however if you strip the tracking out and build that code like VSCodium does you may no longer use the add-on repositories of VSCode and have to use open-vsx.org. And the standard extensions made by Microsoft like the C/C++ extension may not be published by open-vsx.org. Since PlatformIO integration with VSCode/VSCodium is dependent on this extension you can not run it without submitting to tracking. That sucks. See also https://github.com/microsoft/vscode-cpptools/issues/6518 https://github.com/microsoft/vscode-cpptools/issues/6518
- deleted 6y ago[deleted]
- turbinerneiter 6y agoPlatformIO is the way to go, VS Code plugin if you are so inclined, or just the CLI tools to use with whatever tools you like.
- krastanov 6y agoI am using arduino to teach newbies no older than 16yo. PlatformIO/VSCode/CLI are a terrible idea in that case.
- craftinator 6y agoMaybe, some kids like diving into the meat of things. Might be good to show them one way, but also let them know that the other exists. I've found PIO much easier to use after just a few days of playing with.
- krastanov 6y agoSure, that is easy to do after you have them hooked up. But dead-simple installation is the only thing I care about when each extra click turns off another 20% of the newbies (made-up percentage). Especially if you want to present it as "a tool that you can use improve your main hobbies/interests", as opposed to something they should master. Pushing even further on this, when I show a PhD bio-engineer how to use Arduino to automate their bio-reactor, I am certainly going to use the two-click-to-setup Arduino IDE, instead of PlatformIO. The extra features are detrimental when all you want is to show a tool exists and can make your life easier and more interesting with minimum extra effort.
- genericone 6y agoIs this a good summary: PlatformIO for generation of value. ArduinoIDE for demonstration of value.
- craftinator 6y agoOh, sort of like why learn to ride a bike when you can just get a car or a moped?
- spacechild1 6y agoThis looks great! I've always hated the original Arduino IDE with a passion, but was too lazy to try something different...
- suyash 6y agoArduino IDE used to be written in Java, hope that is still the case, it looks pretty good.
- ihuman 6y agoThe new version is an electron app. It's based on Eclipse Theia, which is based on VS Code. https://github.com/arduino/arduino-ide https://github.com/arduino/arduino-ide
- azalemeth 6y agoI've always used the Arduino IDE for building only -- the single button is nice -- and actually written code with vim. I really don't want another electron app, or vscode. I know that 'arduino' and 'vim' are targeting very different demographics, but I do wish they'd offer a bone in the other direction...
- ihuman 6y agoIn the readme, it says that "backend operations such as compilation and uploading are offloaded to an arduino-cli instance running in daemon mode." Maybe you could use that program to build, while still writing your code with vim.
- ubidefeo 6y agoYou can totally do everything with arduino-cli. I even use it inside of Python/Shell scripts to run operations
- silvanocerza 6y agoI suggest you take a look at ArduinoCLI. :) https://github.com/arduino/arduino-cli/ https://github.com/arduino/arduino-cli/ Docs: https://arduino.github.io/arduino-cli/latest/ https://arduino.github.io/arduino-cli/latest/
- MattGaiser 6y ago
- cosmotic 6y ago"Modern", now with features from VB in 1996: autocomplete! All joking aside, this is a rewrite on top of electron, not something I would consider modern either.
- DaiPlusPlus 6y ago> not something I would consider modern either. It's not "modern" insofar as the idea of using a local webpage as a GUI dates back to at least HTAs in Windows 98 (if not sooner in the IE4 shell update for Windows 95)
- devenblake 6y agoClicking it: "Please don't use electron, please don't use electron..." Guess what modern technology the Arduino IDE uses? Now that I have fully read the article I think this misses out on due credit though. The arduino cli looks pretty cool and there's no necessity per se to use the IDE 2.0 nor does it seem like there will be in the future. I just wish we weren't so reliant on web technologies to power what should really be native apps and it seems like everything uses electron nowadays.
- deleted 6y ago[deleted]
- simondotau 6y agoIt's kind of horrifying to open my /Applications folder and realise that it contains probably twenty web browsers, eighteen of which are disguised as stand-alone applications. Often very simple ones. BalenaEtcher, a pretty front-end for a bunch of drive-copying terminal commands, is over 200 megabytes. A competent developer could probably recreate its functionality with 20 kilobytes of shell script. Yes, this script probably wouldn't be cross-platform, but I dare say that there's more than 20 kilobytes of platform-specific code in the current BalenaEtcher app already...
- joemi 6y agoFor better or worse, it doesn't really need to be smaller.
- snypher 6y agoOf course it does. It's really a giant waste of bandwidth for a program that is probably 50% 'dd if of bs'.
- curryst 6y agoSure, and your house might look a smidgen better if it were painted a slightly different shade of the same color. It's a lot of work for very little gain. Bandwidth is cheap. Human time is not. There are better ways to spend development time than shaving 2 seconds off the download of a utility app.
- frompdx 6y agoThe improvements described look great to me. Some are advocating for PlatformIO, but I still reach for the Arduino IDE even though I usually prefer vim or CLI tools. It's convenient and tutorials frequently assume you'll use the IDE. The IDE is great for people that just want to dive in and see some results. Asking someone really new to programming to install a plugin in another tool or issue arcane commands in the terminal is probably asking too much. All of that can be discovered later.
- II2II 6y agoOne of the nice things about Arduino IDE 2.0 and PlatformIO is the ability to install the CLI backend independently of the IDE, so people can transition to a CLI and editor if they feel inclined to go that route (e.g. experienced users or once someone has learned enough to move on that development process).
- cwkoss 6y agoI got an arduino kit sitting on my shelf I've been meaning to try. Does anyone have a recommendation of a good set of tutorials for beginner projects with arduino? Competent medium programmer, looking to add lights, motion, sensors to 3D prints eventually.
- log101 6y agohttps://www.arduino.cc/en/Tutorial/HomePage https://www.arduino.cc/en/Tutorial/HomePage
- joemi 6y agoIn addition to all the tutorials on the arduino site, Adafruit has a lot of tutorials about using their specific parts. Even if you don't have their specific parts, their tutorials (and libraries) can be useful if you have similar parts or parts based on the same chips.
- boatsie 6y agoI recently started arduino programming as well. What is weird is it’s basically the opposite of most software best practices. You need to use global variables, not use heap allocations, avoid stl library classes, avoid strings, etc. The constraints due to the minimal resources mean you need to throw out elegant and robust programming in order to perform well. So the code ends up looking super hacky.
- rhodozelia 6y agoIn embedded and machine control robustness is in simplicity. It is ok to repeat your self. PLCs until recently only had global variables and a great deal has been accomplished with them. A lot of machine controls and embedded work is more waterfally and less agile. Figure out what it has to do, make it do that, then it is done and you hand the machine or plant over to the customer and you can’t change it.
- rvense 6y agoMost Arduino code I've seen at the hackerspace I used to go to barely had anything defined as functions. Just setup and loop. There were people who coded for many years and did very cool stuff and they didn't know what a struct was.
- canada_dry 6y ago> ...the debugger supports all the Arduino boards based on the SAMD and Mbed platforms (MKR family, Nano 33 IoT... [Clicks on the first link] --> 404. Sigh.
- relaxing 6y agohttps://store.arduino.cc/usa/arduino/arduino-mkr-family https://store.arduino.cc/usa/arduino/arduino-mkr-family
- nerfhammer 6y agotried this recently and found "beta" to be an extremely optimistic description of the state it's in
- turminal 6y agoYay, it's electron based!
- zmix 6y agoReally? Oh no! They had such a nice UI.
- soapdog 6y agoLots of people here recommending that they should have just built an VSCode plugin. That is the wrong take IMHO. Arduino is a platform, they need to be in control of their platform. If they'd just became a VSCode plugin, they'd be at the hands of Microsoft and quite vulnerable to radical changes in VSCode.
- silvanocerza 6y agoThat critique comes mostly from advanced users and it certainly makes sense. The Arduino IDE is meant to be accessible to people with close to no experience though, a newbie put in front of VSCode will fill overwhelmed for sure, that's why the Arduino IDE exists. I'm certainly biased but the new Arduino IDE is certainly a huuuuge improvement from the old one in lots of ways, it already has some new features like an autocompletion that actually makes sense, debugging, and more will be coming. For autocompletion to work we actually created a custom Language Server, it certainly has been no easy task and we're still making improvements to it. It still has some rough edges but it works finely already and you can't get that experience anywhere else for now, VSCode doesn't have it. Oh, and it has a dark theme too. I strongly suggest people give it a spin before dismissing it cause of Electron, Theia, yet another IDE, PlatformIO or whatever, we're continuously improving it.
- Y_Y 6y agoI'm probably an advanced user, and use VSCode at work, but I'm glad this isn't tied to it. VSCode is really good at lots of things, but it's also a dodgy mix of FOSS and non-free software and it's huge and complex. For something like Arduino it's great that they retain independence and control for their own tools. I'm sure you can still develop in VSCode with third-party plugins. (To be honest though, I would have been happy enough if they built it in Emacs, even if similar objections apply.)
- silvanocerza 6y ago> I'm sure you can still develop in VSCode with third-party plugins. The Arduino IDE 2.0 uses the ArduinoCLI as backend and they comunicate through a gRPC API, most functionalities are implemented only in the latter. It's technically feasible to create a VSCode plugin. :) > (To be honest though, I would have been happy enough if they built it in Emacs, even if similar objections apply.) Never used Emacs but I think it should be doable to integrate the ArduinoCLI as a plugin, if you want to take a try at it I suggest you read the docs. The gRPC is still not 100% stable though, I made a big refactoring in the initialization steps recently that still needs to be merged. https://arduino.github.io/arduino-cli/latest/ https://arduino.github.io/arduino-cli/latest/
- dekhn 6y agoI left the Arduino IDE behind to use VSCode with PlatformIO and it's so much better I can't understand why people would want to use the IDE. It's fundamentally broken in so many ways.
- mectag 6y agoLooks great, especially with the Monaco-styled editor.