IDE 2.0.3 Editor 'Discover'-Like Feature Name and Usage Questions

I'm new to Arduino and am confused by a feature of the IDE that works with one core board definition but not another. One problem is that I don't know what to call the feature, so here I go - hope the below makes sense.

First of all, what is the proper name of the IDE editor feature that shows you information about an #include file, macro definition, object function prototype, etc. when you hover the cursor over it in the source code of a sketch? In absence of the true name I will refer to it as the 'Discover Feature' in this post.

I originally installed the IDE to use an Arduino UNO Rev3 (an AVR Board) and everything with it works fine. I then got an Arduino WiFi R2 and had to install the the megaAVR Boards via the Board Manager to use it. Everything seems to work OK with that board with the exception of the IDE's 'Discover Feature'. Code compiles, uploads and executes fine but discovery in the editor is totally inop when the selected board is 'Arduino Uno WiFi Rev2'. When the selected board is 'Arduino Uno' voila, discovery works again!

Obviously the IDE looks in different places for AVR vs megaAVR stuff but it seems to resolve everything during a compile (verify/upload). Only the editor appears to get lost when switching to the megaAVR board in my case. 'Discovery' is a handy feature and I'd love to have it work for both boards, not just the Uno Rev3. Any suggestions or could this be a bug?

Thanks!

Barry

Hi @barry_a_waters. Thanks for your report. The lack of language server support for the ATmega4809-based boards like the Uno WiFi Rev2 is a known deficiency of Arduino IDE 2.x:

The problem is the version of the clangd C++ language server used by Arduino IDE didn't have support for that family of microcontrollers. Support has since been added to clangd, so now the only think needed to resolve the deficiency is for the Arduino IDE developers to update the version of clangd used by Arduino IDE 2.x

It is called the "Editor Hover".

1 Like

Damn, what an OUTSTANDING answer, and quick too! :slightly_smiling_face:

Thank you so much! 'Editor Hover', got it!

Barry

You are welcome. I'm glad if I was able to be of assistance. Hopefully we will get language server features for the Uno WiFi Rev2 in Arduino IDE soon.

Regards,
Per

1 Like

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