Arduino CLI And IDE now Released - Teensy Supported!

That is great, Yep I synced up again to the IDE and it was brought in. So as you said tomorrows daily build should have it.
 
I'm working on a patch to the Java IDE 1.8.x so it will ignore the Teensy package meant for Go+TS IDE 2.0 and always use the tools and libraries from the installer.
 
If you're playing with Arduino 1.8.19 and also Arduino 2.0-rc6-nightly, this modified arduino-core.jar solves the conflicting packages problem in Arduino IDE 1.8.19.

To use it, quit Arduino and then just copy arduino-core.jar to C:\Program Files (x86)\Arduino\lib, replacing the copy in that directory. Or if using Linux or your copy of Arduino 1.8.19 is located somewhere else, just copy this to its lib folder.

When you restart Arduino 1.8.19, it should ignore the Teensy package you installed for Arduino IDE 2.0, and always use the files from the Teensyduino installer.

1.57-beta3 will include this change, so all future installers will avoid this conflict on pre-2.0 Arduino. But if you're running 1.57-beta2 or even 1.56, this will give you immediate relief from the package conflict pain.
 

Attachments

  • arduino-core-jar.zip
    1.6 MB · Views: 38
If you're playing with Arduino 1.8.19 and also Arduino 2.0-rc6-nightly, this modified arduino-core.jar solves the conflicting packages problem in Arduino IDE 1.8.19.

To use it, quit Arduino and then just copy arduino-core.jar to C:\Program Files (x86)\Arduino\lib, replacing the copy in that directory. Or if using Linux or your copy of Arduino 1.8.19 is located somewhere else, just copy this to its lib folder.

When you restart Arduino 1.8.19, it should ignore the Teensy package you installed for Arduino IDE 2.0, and always use the files from the Teensyduino installer.

1.57-beta3 will include this change, so all future installers will avoid this conflict on pre-2.0 Arduino. But if you're running 1.57-beta2 or even 1.56, this will give you immediate relief from the package conflict pain.

Good Morning all

Just reinstalled 1.56.1 for arduino 2.0 and copied the new core-jar file to 1.8.19. Did a quick test using on the MTP sketches I have been playing and looks like its working - NO MORE PAIN.

Thanks Paul, really does save a lot of pain and allows for better testing :)
 
Morning all, I tried downloading nightly build.

First attempt: downloaded one dated for 0607, things ran like before... So could not connect the MTP Disk with the serial monitor.

Then noticed new version 0608, downloaded it

And now when it launches it looks like the MTP disk will connect to Serial monitor, but could not compile,
Then open up Boards tab the list was empty. Opening the Library tab again empty...

This was W10. Trying now on Ubuntu 22.04 still downloading...
 
Nightly on Ubuntu... I think there is an issue with 22.04 support...


Screenshot from 2022-06-08 06-30-16.png

Now need to figure out how to make it work

EDIT: See there is an open Issue: https://github.com/arduino/arduino-ide/issues/984

EDIT2: Resolved by: sudo apt install libfuse2
But hopefully they resolve the installs such that users don't have to guess and do something
 
Last edited:
Quick follow on...

It felt like my W10 .arduino15 directory was corrupted, so renamed and so having to reinstall all boards...
But it looks like it is working:

screenshot.jpg
 
Looks like Arduino IDE 2.0-rc7 may be inbound.

As of 6:21EST it has been released just updating now. Seems to be working nicely - alot better than prior releases:
Capture.PNG

NOTE Compile errors are due to not having beta2 installed. Left it at 1.56.1 intentionally
 
Installed on both W10 and Ubuntu 22.04.

Just mucked with the Ubuntu and added the appimage installer... and now it shows up in the Launcher...

Yes lots nicer than earlier RCs, still some warts, but now comes up faster, and integrates better with Teensy including the SEREMU usb types.
 
Also looks like turning off autoscroll in the serial monitor doesn't work so well if Teensy 4 is transmitting data at high speed. Going to wait to report this one... want to try writing special no-hardware-required pluggable monitor test case.

Still, it's pretty amazing how much they've improved since February. It feels so much faster & more responsive.
 
Ran into a bug where autocomplete fetches things from the wrong place on the screen after changing the code without saving and then switching to a different board.

If you have time to write up steps to reproduce it, that one should probably get reported. I'll come back to it this evening if nobody else reports it first.
 
I reported a couple of things yesterday. Some nits:

Like Open example file, and close it without changing anything and it asks you if you wish to save it... Better than before where it would simply close the window without asking to save even if you had made changes.

Also an interesting issue, where I had an example open, then went outside and did something for awhile, came back and the window was empty. Turns out Norton decided to do a disk cleanup and removed the INO files out of the temp directory, so all of the files were gone and window was empty. It also had some cryptic message in the window console area, about to many files to keep track of what files changed... Not sure what files? Maybe ones in trash?

Also want to check again and probably report: Installed Teensy support, then see for example that I want to add in support for Serial+MTP or maybe want to enable some commented out processor speeds and then restart Arduino and the menu is not updated... I believe it is cached out to another file, Not sure yet as I thought I had one time where it updated and another time it did not...
 
...

Also an interesting issue, where I had an example open, then went outside and did something for awhile, came back and the window was empty. Turns out Norton decided to do a disk cleanup and removed the INO files out of the temp directory, so all of the files were gone and window was empty. It also had some cryptic message in the window console area, about to many files to keep track of what files changed... Not sure what files? Maybe ones in trash?
...

" so much faster & more responsive" sounds great!

re: "cryptic message in the window console area, about to many files to keep track of ..."
was common with the old install here. Seems it offered a 'link' to some not directly helpful 'fix'.

... downloaded the 1.57b2 but not even gotten to install yet.

Norton is a virus you pay for.
 
Sounds like fun, maybe need to update a library or two...

Funny thing was, when I was seeing changes made to language server, I was guessing it had to do with which language like English the user was using...

Next up figure out what their rules are.

So far it looks like you are adding simple comments.
Whereas Adafruit has things like:
Code:
  /**********************************************************************/
  /*!
    @brief   Set text font color with transparant background
    @param   c   16-bit 5-6-5 Color to draw text with
    @note    For 'transparent' background, background and foreground
             are set to same color rather than using a separate flag.
  */
  /**********************************************************************/
  void setTextColor(uint16_t c) { textcolor = textbgcolor = c; }

Which is used by the docgen...

But looks like the IDE does not parse it, but simply displays as is...
screenshot.jpg
 
I found the cause of the problem yesterday (which caused me an embarrassing number of lost hours yesterday and this morning....) I accidentally deleted a semicolon in Print.h while editing comments. Apparently the language server that drives those popups and error flagging as you type can get hung up by that missing semicolon. Filed a bug on github.

https://github.com/arduino/arduino-ide/issues/1042
 
Glad you found it.

I have create and/or commented on a few different issues today, like:

On my main machine when I installed the daily build before RC7, my boards list was empty after that...
I ended up rename my arduino15 to something else and then regenerated...

Today I installed on RPI4 Ubuntu 22.04 64 bits, with a clean install, but mistyped the address to the Teensy install, and I mistyped the http:... (forgot the teensy section), and again list was empty...
Fixed it and the boards list was good again: https://github.com/arduino/arduino-ide/issues/1036
The reason my main machine probably failed was the ESP8236, has issues...

SD.h - They install SD library within <sketches>/libraries/SD ... Not compatible with our stuff. I tried to build something and it failed. I then deleted that directory, tried to build, and it still tried to use that SD directory and then erred saying file did not exist, instead of grabbing the one that TD installed which I nicely told me it did not use:
https://github.com/arduino/arduino-ide/issues/1039

The IDE asks me to save an example sketch even if I have not made any changes:
https://github.com/arduino/arduino-ide/issues/1026

Editing of boards.txt or local.boards.txt are not picked up: https://github.com/arduino/arduino-ide/issues/1030
 
@KurtE
Had to redo a bunch of reinstalls on the PI4 and wasted time with the M2 memory drive on the PI4 so ..
Just finished reinstalling IDE 2 on the PI4 using the appimage route and installed the Teensy boards without any issue but noticed something else strange. When I went to file examples for the T4.1 looked for our SD Library on the list it wasn;t there - maybe it was my eyes but here is a screen grab
Screenshot at 2022-06-10 19-46-34.jpg
 
...
When I went to file examples for the T4.1 looked for our SD Library on the list it wasn;t there - maybe it was my eyes but here is a screen grab

@mjs513 - open a known SD sketch and build - then check console to see if it is using the right SD library for Teensy?

If IDE 1.8.19 for instance links to a lib from 'sketchbook\libraries' it won't show examples for TeensyDuino libs.

So it may be getting wrong precedence and picking the default SD lib {normally 'Not used'} - or one from sketchbook?
Multiple libraries were found for "SD.h"
Used: C:\T_Drive\arduino-1.8.19\hardware\teensy\avr\libraries\SD
Not used: C:\T_Drive\Arduino-1.8.19\libraries\SD
 
@KurtE
Had to redo a bunch of reinstalls on the PI4 and wasted time with the M2 memory drive on the PI4 so ..
Just finished reinstalling IDE 2 on the PI4 using the appimage route and installed the Teensy boards without any issue but noticed something else strange. When I went to file examples for the T4.1 looked for our SD Library on the list it wasn;t there - maybe it was my eyes but here is a screen grab
View attachment 28661

Probably as Defragster mentioned and as I mentioned up above and in https://github.com/arduino/arduino-ide/issues/1039
The IDE on first run downloads several libraries into the <sketcheds>/libraries folders including SD.

And if that version has examples it would probably show up in the early section of the examples...
 
Back
Top