arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.33k stars 394 forks source link

Please update clang in Arduino IDE #2560

Open oldtomdevel opened 1 week ago

oldtomdevel commented 1 week ago

Describe the request

The current versions of the Arduino IDE still include an outdated version of clang language server. This is why the Arduino IDE Autocomplete feature does not work for Arduino Nano Every (and other "megaAVR" Arduino boards, see also issue #31 (Language server doesn't support boards of the "megaAVR" architecture).

In issue #31 it is stated: "This is actually a deficiency in lower level tools (clangd via Arduino Language Server), and not actually anything to do with the Arduino IDE 2.x code base." This is true. However, the current version of clang works fine with Arduino Nano Every. You can prove that by following the suggestion in https://forum.arduino.cc/t/arduino-ide-autocomplete-for-arduino-nano-every-and-other-megaavr-arduino-boards/1297029 That suggestion works!!

Therefore, the original problem as described e.g. in issue #31 should be solved quite easily by including the updated version of clang.

So, PLEASE use the updated version of clang in the upcoming releases of Arduino IDE!

Describe the current behavior

The Arduino IDE Autocomplete feature does not work for Arduino Nano Every (and other "megaAVR" Arduino boards, see also issue #31 (Language server doesn't support boards of the "megaAVR" architecture).

Reason: outdated version of clang.

Arduino IDE version

2.3.3

Operating system

Linux

Operating system version

Linux Mint 21 and 22

Additional context

No response

Issue checklist