Why some library examples do not load in Arduino IDE 2.0?

Hi,

Like the title says, why are some library examples do not load in Arduino IDE 2.0? E.g. the library "LiquidCrystal_I2C" examples do not load in Arduino 2.0. What is missing in the lib definition to fix this issue with older libraries?

Thank you

1 Like

Which Arduino board are you using ?

What happens when you try to load the example ?

It could be the file extension on the files that make up the libraries.
As an added bonus IDE 2 will only allow the .ino where as the version 1.x allowed the file extensions of the Processing language as well. These are .pde files.

So if you see a .pde file just rename it with a .ino extension.

1 Like

Just tested it with Arduino IDE 2.0.4 and LiquidCrystal_I2C 1.1.2 and it worked (which does not really help you, I know :wink: ).

  • Did you try to remove and re-install the library?
  • If yes but without success you may investigate further like this
    • Open the Preferences of the IDE
    • Look up the path to your sketchbook
    • Open this path in the file browser
    • Open the libraries folder
    • Check if you find the folder "LiquidCrystal_I2C"
      • If not -> The library may not be placed where the IDE expects it
      • If yes -> Open the folder and look for the folder "examples"
        • if there is one check whether there are further folders and the files inside are of type .ino

Good luck!
ec2021

Thanks @Grumpy_Mike, good to know!!
ec2021

I'm having the same issue. This is very confusing. I'm trying to add a library but not working.
I'm attempting to use a Kuman 3.5 touch screen for the first time, but can't seem to load the libraries correctly. I'm using IDE 2.0.4. Can anybody help me?

Welcome to the forum

Please provide more details

What exactly happens when you try to "load the libraries" ?

Concerning my problem, it's not about loading the library, but about opening the examples. @Grumpy_Mike solution fixed it. Just rename the .pde in the library examples folder to .ino.

In order to make all relevant information available to any who are interested in this subject, I'll add that the Arduino IDE developers are tracking this bug here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.


It is not clear to me whether the @kasari62's issue is the same as the one tracked at the link I shared.

1 Like

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