Video není dostupné.
Omlouváme se.
Arduino IDE 2.0 - Overview and New Features
Vložit
- čas přidán 18. 09. 2022
- Arduino IDE 2.0 has been officially released. The new IDE, which is used to program Arduino and other microcontroller boards, has been overhauled to make it a modern editor with a more responsive interface and faster compilation times. Here is my overview and summary of the new features.
---
Let Me Explain T-shirt: teespring.com/...
Twitter: / garyexplains
Instagram: / garyexplains
#garyexplains
After more than 15 years of development, they realized "Auto-Completion" exists on this earth.
Better late than never, right? 💪😁
@@ArniesTech yeah
how many times you paid their developers ? I would imagine many things to improve, but you need to consider who is going to pay it.
@@casio007 sometimes, features become more than a nice to have feature, and become table stakes for something with pretensions to being a real IDE rather than a toy.
The problem with Arduino is that it started as a toy and evolved into being a sort of real IDE - with projects like above mentioned Marlin firmware and the like.
@@JasperJanssen yes, good point
This is basically Visual Studio Code but restructured for Arduino.
At which point just installing PlatformIO on in vscode is way more effective
Except missing many features and a wealth of extensions
and there's no better way to get a good IDE :)
@@youridv still, for newbies it's better to use arduino ide
This is far better than Platform IO (which stinks)
Thanks for sharing, Gary!
You skipped the debugger button. I think it’s the biggest feature to finally have the ability to add breakpoints etc. I only buy Arduino Zeros or similar for that reason
Is the Zero able to live debug in arduino ide 2.0? I'm very green and finally hit the point where I need to debug my first serious program and need live debug (sensor detecting motion). Or do I just need to use atmel studio or similar?
For the new IDE to be a real improvement for my project (Marlin Firmware) I've got to look at the build system itself and see if it's scriptable in the way that PlatformIO is scriptable (through SCONS), and look deeper at the IDE itself and see if it's possible to make extensions with custom UI. Those elements are really essential because Marlin targets so many different platforms and it can be a hassle (without the "Auto Build Marlin" extension) to find and use the right platform and environment for the build. I've done a lot to simplify and optimize the build within VSCode, so it would be great to be able to repurpose that work for Arduino IDE.
I tried it for the ecg ad8232 heart monitor . The serial monitor works OK on the old one, you get a nice graph of your heart signals, doesn't on the new one the x axis us too fast
This is sweet. I have been working quite a bit myself with Microsoft's Monaco (the code editor engine from VS Code and many other projects). I also hope that in the future this could work directly in the browser, with a webassembly port of the compiler and the Web USB API.
VSCode: Who are you ?
Arduino: You
More like:
Theia: Who are you?
Arduino: You
@@GaryExplains I want to ask you a question
I like the upgrade for the theming, but there doesn't seem to be too many new features and it very much feels like the old IDE. It just bugs me that they haven't implemented a tree view for your project files rather than having a tab for each individual file.
You can enable "show files inside sketches" from Preferences and it will show you the Sketch tree
Always refreahing to listen to you, Gary 💪😎
I would have expected to FINALLY get a propper debugger for the IDE. What you list is all nice, but seriousely, what the arduino universe is missing for ages is a propper debugger.
Yes. This is a serious hole in their platform and has been there for a long time.
It's not so simple as just updating IDE. Debugging adds extra machine code and takes memory on the board which you cannot use for your main program. Debugging data should somehow be sent back and forth with computer - if the serial port is already taken for program's needs it's not really possible.
@@janekslv This might be true, but for all those atmel micros (as well as for others) exist hardware interfaces which do allow perfect debugging - within atmels IDE and hence without all the cool arduino libraries. I would simply expect that now, after all those years that the arduino universe exists, finally propper debugging would be possilble. The hardware debuggers all exist, its truly only a matter of software supporting it.
Wish list:
- I would like to see simultaneously two pieces of the code.
Something like double window, with separate scrolling.
- Step by step execution of the code, highlighting the current line.
Step execution is not possible, because not all micrcontrollers has a debug feature, and Arduino boards has the minimum hardware just to load the program. Maybe for futures boards. But, then again, it depends on the microcontroller.
To me, it seems like progress. I'm not your seasoned C++ developer, but it seems to be nice, this linting is good, it still has the familiar microcontroller ecosystem, but I can't find an arm-based download. So for now, platformio it still is, although I find it very intimidating to work with, so many ways to scr*w things up.
But thanks anyway, Garry. I like your explanations and the form you bring it.
Such a big improvement (compared w ver.1), but I personally prefer platformio
I've been using JetBrains CLion with the PlatformIO plugin for a couple years now. Why anyone would stick with the Arduino IDE is beyond me.
Hey Gary!
Thank you for sharing your review, the team is very happy with it, especially since you showed some love for Remote Sketch integration.
If you're interested in doing a video for IoT Cloud and want some insider preview let me know, I'll be happy to answer questions :)
I really wonder why they haven't just written a VSCode extension. It would've saved them a lot of time, it's an editor/IDE that many people are already familiar with and is easy to learn for beginners.
I know that there's an unofficial extension and that Microsoft is working on one but they could've opted to ditch the dedicated IDE and just make extensions for existing IDEs.
Platformio has been around for ages in vscode. What's wrong with it?
8:40 a good summery
Finally a basically functional IDE rather than the glorified text editor of the current IDE. This is a huge leap forward but it still lacks a lot of basic functionality you would expect from a decent development tool.
Yeah but it's free and it's only an ardiuno
It still isn't an IDE. Just a new fancy text editor with themes and a worse version of github integrated. I was hoping for a lot of actual changes and not just mainly GUI updates.
@@ianburke9714 It has code complete and can jump to definitions which is really the only IDE like functionality they have added. In my opinion it is still no where near a fully functional IDE and you still wouldn't be able to use it for any complex project. Still no integrated debugging which is absolutely fundamental for any IDE, also no tools for code refactoring.
@@schrodingerscat1863 I understood that it DOES now have an integrated debugger. I haven’t installed it yet but read this in another review.
@@chrisbryan2195 That is good news, the lack of breakpoint debugging is a none starter for any IDE in my opinion.
I would have preferred if they just worked on a vscode extension. At least I prefer to use only one ide for everything
PlatformIO is your friend
I would also love it 😢
I glad they still off 2.0 for download, so you don’t need to have web access. Hopefully they will bring an arm linux version
The thing about this is that vscode exists, and has much better features like better code completion, debuggers in various forms like through platformIO, extensive board support through platform IO., the ability to use ai code extensions like copilot or tab9 etc etc.
Yes, the initial setup is more complex, but the point I was getting to is they should have just made it an extension onto code, the non microsofted version if they really felt compelled and in code as well.
Id much rather software have features you wont use, than being simplistic for simplicities' sake. You can always have simple modes.
At first I was hopeful that they built an extension for vscode, but typical "not invented here" syndrome, they built their own editors, when most developers already can use or already use vscode and it's already installed. So why would I choose this over platformio which is a vscode extension and benefits from everything it provides? So you're absolutely right, they should have built on vscode!
And you didn't even mention support for version control like subversion or git, SCM/issue trackers (Jira, Bugzilla...), testing and everything else that a bigger OSS project needs.
@@andreasschmitt2307 i’d say that it’s good practice to use those for any project, big or small
@@chrisalexthomas
Yes, at least versioning. A lint checker is also nice to have.
A fair analysis of this update would have included some comment on the (still!) missing debugger support.
No Linux ARM version, so I need to stick with v1, as I use a Raspberry Pi on my electronics workbench.
Probably gonna be a lot of downloads now, thanks Gary!
Awesome thank you
Thanks for the video 😍
Thanks for explaining.
For sure gone install the new Arduino IDE 2.0. Next to VSC
I don't think there's anything this IDE can do that VSCode can't do better with the right extensions.
@@nextlifeonearth It's light weight and billy boy is not looking over you shoulder :-) For the rest i fully agree.
@@ronaldronald8819 yeah, especially if the code is only 100-400 line long with only 1 build target, it's always nice to have a simpler ide to use
Thanks for the explanatory video , Did the compiler system go through a change as well ? I work with ESP32 and every small change recompiles all files and dependencies all over.
Thanks for the lesson, I would love to receive a lesson on Arduino in the cloud
Don't know if anyone else has had similar problems as me, but if I try to use byte, word or string character types, they are not recognised. Any of the other character types come up in pale blue once they are typed in, but the aforementioned three remain black and cause errors when compiling.
At last! Auto complete and all... Thanks for the video...
Best new feature? 10x compiler speed over the v1 IDE - Good for large esp32 projects. Disadvantages? (at least the last time I checked) No SPIFFs upload capability.
Why for me is very slow compilation for ESP 32 Dev? I even uninstalled IDE 2.0 and installed again 1.8.19
I've had issues trying to get serial out of the USB on the S2 and C3 on the old Arduino. I works on the new one, just as different ports.
I am interrested knowing about arduino cloud. Thank you!
viewing older tutorials, I've noticed that they have removed features from the serial monitor quite a bit, removing the autoscroll checkbox and being unable to copy data directly from the serial monitor. How can I add these features back? These would be extremely helpful for CAN bus data logging which I am currently working on.
That's using Monaco in some way, isn't it? A LOT of that looks straight like from VSCode.
I tried this new version, but found the loss of the separate serial monitor window annoying, so reverted to the old version.
Sometimes upgrade versions is good. But this time I don't think so.
1/ Most of pp. knew Arduino is ease to use. But new dashboard made it more complex for UI because they are sticking together on your screen.
2/ Web technology cannot out performance than normal binary machine code.
3/ I see Arduino ide is starting for "Upgrade Plan" and trying limited features in future.
Thank you
Looks like a big improvement. Ive never used the Arduino IDE for any real work, always found it to be horrifically slow in everything it does. Startup times, UI response, code compiling and the annoying way it has to re-validate every time you upload. Very frustrating when you are trying to crack on. Is this new VS Code based version much better in that respect? Are there any compelling reasons to look at this from someone mainly using platformIO?
If you are using PlatformIO there is really nothing to see here, sure it's a big step forward for Arduino IDE but it's still no where near a decent IDE for anything but very basic projects.
Yaaaaaayyyy for autocomplete!
I will remain on platform iofoe major projects and for small testing scripts I already upgraded to the 2.0 IDE.
Have to look but hope web isn’t overly integral. In UK, exams with microcontroller don’t allow internet connection, features like code completion would be a benefit.
nice :) long overdue
nice video so thanks for that , but redundant program though when there are far better alternatives
Since it is the default and official IDE for the Arduino then most people (certainly not beginners) won't be using the "alternatives".
@@GaryExplains i like to think that a good proportion of people will move onto better things if they spend any time with arduino. also many people coming from a general computing background may like the design cues carried into VS and VSCode from Office . Not to be a fanboy but i definitely enjoyed the quality of life upgrade when i migrated to Microsoft
What I care is the compile speed, and upload without recompile every time.
Yes please do the Ardino Cloud Video.
Basically I am interested how it is different than general Cloud say AWS and is it worth or just another cloud in Market.
Nice, but I don't understand why they give the board- and library manager such a prominent place in the side bar.
When I tried to highlight output (in COMport window) it only copies a very small portion - about the size of the comport window only! How can I highlight the entire output and use the normal CTRL+C and or output it into wordpad? Thanks for making your videos! Well done!
The serial monitor is essentially broken on 2.0. You can’t copy and paste large datasets, only what is visible in the window. Hope they fix this as some point. I’m currently writing code in 2.0, shutting it down and opening 1.8 to monitor the serial output.
You could use putty as the serial monitor.
What's wrong with Vim, or even Nano?
I love Nano 💪😎
@@ArniesTech me too. Simple is usually good enough.
Youd take literally 5 times the time to make anything worth anything in those.
Imagine trying to program something to have web interface to log in with that.
@@BeefIngot check out the primeagen some impressive vim workflow.
Vim: Not a blessed thing!
I would really like to see version handling.
Thank you for this video. I have been using 1.8.13 for quite a while and have installed a number of additional boards and libraries. My questions are:
1. Can I have 1.8.13 and 2.0.4 installed on my computer at the same time?
2. If I install 2.0.4, will it automatically pick up the boards and libraries that I already have installed in 1.8.13 or do I have to install those additional items again in 2.0.4?
Can I disable autocomplete?
Yes. Switch to IDE 1.0
You could make it even tinier text
I got so tired of using the old IDE, I started editing my files behind the scenes using vim, and only using the IDE to compile and upload.
This new IDE should be a refreshing change. I had already started using the web IDE because I was having difficulty in programming the Arduino Nano RP2040 Connect using the old IDE. It only started working with the web IDE.
Is the Serial plotter improved any?
What IDE? It's barely a text editor with basic syntax highlighting and some preconfigured shared lib linking
Would like to see a post on the arduino cloud.
Is it based on electron?
JavaScript is the hammer, now everything is a nail
Gary, do you know if IDE 2.0 is comparable with the Teensy family?
Finally!
Did they do anything to clear up the rather cryptic error messages?
Electron, oh electron
You didn't say how you changed the font size!
CTRL +
@@GaryExplains - I assume CTRL - makes it smaller.
Try it and see! 😜
Can you now open header files and other dependent source files?
Tbh, even with the changes I won't give it a try. Not when Arduino-Cli is a thing. Toss that into a Makefile and you can use whatever editor you want
Cant install in windows7? Tx u
New web technology.... Will it mean annoying laggy performance on older computers?
Missing Debug break points
Why didn't they make these improvements years ago when it mattered?
Can it do traditional C?
Can you do a video about debuggibng on ver 2
I was indeed thinking about that. I think I will. 👍
@@GaryExplains Thanks
I have an Arduino IDE 1.8.11 on a Win 10 system and a Win 11 Pro system sharing an Arduino Sketchbook location, the file is on the win 11 file. I had set Sketchbook location in preferences for the Win 10 Arduino IDE 1.8.11 and opened the shared directory win username and pasword. The Arduino IDE 1.8.11 has no problem accesing and opening the sketches on the shared location. Then I upgraded to Arduino IDE 2.0 using same procedure. The IDE 2.0 can browse the files but it doesnt load any selected sketch as expected...! Any suggestion how to fix it ?
The upgraded IDE 2.0 is on the Win 10 sys.
That sounds like a problem you should post over on the Arduino forums. You have a better chance of a solution there. I hope you get it solved.
Is it supposed to take half an hour to install???
why does everything have to run on electron
my pc wants to die just running chrome and discord at the same time
No upload for data, yet!
It uses monaco framework just like vscode
Theia actually
It's an editor. Why the hell does it need to talk to every single address on my network when it launches?
Не запустилась виндовс 10 , 11 значок мигает и все
You forgot the most important feature. Code folding!!!
i thought it will be like thonny.. just write and run. but that compiling changes the mood! :-(
Python is an interpreted language. C/C++ is a compiled language. So there needs to be a compile stage.
@@GaryExplains Yeh I do understand that. since I'm new in microcontroller usage.. so want quick responses or maybe i've become very useto with python's quick responses... I'm good in C/C++ but just expected different.. Anyways. Thanks
May I ask, if you are good at C/C++ then what exactly were you expecting to be different?
@@GaryExplains I'm good in C/C++ as programming language... but have been doing in python for a few months.. and feeling very comfortable in thonny with micropython for microcontrollers (Raspberry pi pico, esp8266). The experience of thonny and Arduino IDE is very different. I started Arduino first but the selection of port, compiling etc was so hard to digest than thonny plug and play coding. I was expecting if this update has really made Arduino work like Thonny.
VS Code runs the world
But no debug
Then what is that little debug symbol under the board and library mangers?
no portable version. useless.
p.s. platformio + mklink in appdata, cant see alternatives now.
Useless, as in as no use whatsoever... wow... I am "using" it, so doesn't seem to be "useless" to me.
@@GaryExplains yep, sorry. useless to me.
All of these updates are super "neat" but that is it.
This program sadly is still not a true IDE, and will never be until we get step by step execution and debugging. The "print line" method to debug is super inefficient. Always has bothered me they call it "Arduino IDE" when it isn't even an IDE by definition.
Right now it's dont work on Windows 10 x64
This whole video was recorded using Arduino IDE 2.0 on Windows 10 x64. May I suggest that it is a problem with your system and not the new software.
@@GaryExplains I doubt. However, after downloading the Widows installer file, I was finally able to install the environment.
Now other problems: only after 5..7 launch of the environment it was possible to install the platform. The same story is repeated with libraries (right now - library_index.json.gz). It's currently in its 15th minute of loading... And near 99% of loading i got the same error.
There are no other problems anywhere on my system. Everything works fine.
Everythings is ok without infinity upload OTA change old version 1.8.16
It's worse in every way. It says it's more responsive but it's much slower to open files. The serial monitor is stuck at the bottom so you can't see your code when using it. Everything else is almost exactly the same, except for the right click menus. Still have to navigate through endless long lists of libraries, boards etc. And I doesn't pick up com ports as quickly either. How frustrating. Fail.
Do I need to reinstall all libs and boards after installing 2.0 IDE?
It seems not. Just point the new version to your old sketch folder in preferences, worked OK for me. It is also a separate App so you can go back to version 1.x.x if you want
not!!
had to stop watching your video the moment you switched your background to black, making 50% of the text invisible John
nothing interesting , they must made better monitor output with better graphic option ... like "Putty"
Sorry but I think this version is much worse. Running electron apps in 2022 is just a bad idea. VSCODEhas had years of optimization at least and runs better but the arduino ide now on my brand new M1 Pro MacBook struggles to load and run properly. It’s really the worst.
The 2.0 is a extremely buggy hack. Useless. The old one or VScode
чем выдумывать всякие IDE, освойте vim и научитесь писать Makefile под заданный процессор. Это сложно, но потом будет просто.
🤣
I hate these updates! Every time there's a new update, my old code that I wrote myself, no longer work. Error, Error, Error!
I'm sick of this crap! Wtf is this all about?!?
Every update, my personal code disappears and is useless! I seriously feel like ended my hobby in Arduino. Or, Crapduino. There has to be something better than arduinos ide!
What you are describing shouldn't happen and doesn't happen for me. All my existing code remains and continues to compile. It sounds like there is something wrong with your setup.
@@GaryExplains So should I just uninstal the ide and wipe clean and re-setup and re-download the libraries needed?
I admit, I had serious issues with installing libraries at first and there might be some clutter and duplicates. I just don't know. I'm not a pro. Nothing close. Just wish that I could do this again with all of my old code. I wrote that stuff with no schooling. Just teaching myself. Ugh.
@@victororo462 Would be a good idea to keep all your old code with the IDE version it was written in as any upgrade would for certain cause issues and break things. Installing both versions would allow them to run independently and would keep your libraries seperate so as not to cause conflicts. IF all you code are simple blink sketches then they should work fine in either IDE version. The problems start when you are using many many libs and code files. Yeah, updates suck and always break things but you're gonna have to fix the mess they create.
cloud is bad ... everything else is mediocre
I find it absolutely disgusting that everywhere on the product page they dare to say that it's "faster" even though they switched to fucking Electron, and now it starts up super-slow, and eats up memory.