Language server doesn't support boards of the "megaAVR" architecture #31
Labels
criticality: medium
Of moderate impact
topic: language server
Related to the Arduino Language Server
Describe the problem
The features that rely on the language server (autocomplete, editor hover, "Go To Definition", "Go To Symbol", "Peek Definition") don't work when a board from the Arduino "megaAVR" architecture (megaAVR 0-series,
tinyAVR 0-series and 1-series) (e.g., Nano Every, Uno WiFi Rev2) is selected.To reproduce
setup
in the sketch code code🐛 No "hover" popup appears.
setup()
🐛 A "No definition found for 'setup'" tooltip appears.
setup()
🐛 The command palette shows "No editor symbols"
setup()
🐛 A "No definition found for 'setup'" tooltip appears.
setup
function:🐛 The "suggest" interface shows "No suggestions."
Expected behavior
Language server features to work on megaAVR boards just like on boards of other architectures.
Arduino IDE version
Original report
2.0.0-beta.2-snapshot.f9730ab
Last verified with
2.0.0-rc9.3
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
From
inols-clangd-err.log
:The equivalent error occurs when using boards with other microcontrollers in this architecture family.
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. So in fact the issue is off topic for this repository, but it was decided that an issue should be created here for the sake of documenting it in a place that would be easily found by Arduino IDE 2.x users.
The deficiency is also tracked in the Arduino Language Server repository at arduino/arduino-language-server#112
Updates
Additional reports
The text was updated successfully, but these errors were encountered: