Arduino IDE 2.3.2 Windows 10 indexing

If I want to find the the definition of a function with pull the mouse over it shows the function parameter windows sometimes only says Loading.. No way to find the sorce of the declaration of the function!!
In a simple program like Blink.ino it works, but take time to find deaper level calling to work

Is anybody who knows the solution?

Hi @antal_peter. It is necessary for the language server system that provides the "code aware" features of Arduino IDE 2.x such as the editor hover to have a full awareness of your sketch program.

That program consists of the significant amounts of code in the board's core and any library dependencies in addition to your sketch code. So it takes quite a bit of processing before the language server is able to provide the information required by these features. This is even more so when using some of the modern boards that have a massive amount of complex code in their core. Additional processing is required each time you make a change to the sketch code, so this isn't a one time thing.

So anything you can do to improve the performance of your computer will improve the responsiveness of these features. For example, if you are currently using a mechanical hard drive as the primary drive on which your Arduino boards platforms, libraries, sketches, and Arduino IDE are stored, you could upgrade it to an SSD.

Something you should be aware of is that these features will not be available for objects from a library between the time the #include directive for that library is added to your sketch program and the first time you compile the sketch after that. This limitation was added in order to reduce the usage of computing resources by the language server system in response to complaints from users with lower spec machines who were experiencing performance problems. So if you find the feature is not working for an object in a newly added library, select Sketch > Verify/Compile from the Arduino IDE menus (or use the button). After the compilation finishes, you will find that the features start working for the objects from the library.

1 Like

Dear ptillisch!
Thank you for your detailed explanations! I want to use this Arduino IDE for real developing. So my goal to develop a centering machine. For this I should now very deeply the raspberry pi pico 2040. As far as I see Even the microcode of the rp 2040 is reprogrammable. Earlier I worked on a Microchip DSPI30 family originated by Traxmod to produce digital sound recorder.
I try to use your suggestion. If I use Sketch->Verify/Compile I see in the bottom left conner start to indexing up to 43 and I was able to open one level deeper to see the declaration but no more. I need all the included file deep to hardware level but no luck with that. What could be that? I use win10 Pro 3.2 Ghz proc. SSD ram

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