Closed
Description
Describe the bug
The information provided by the Arduino language server is affected by the dependencies used by the sketch.
🐛 The lack of an update of the language server results after a change is made to the installed libraries or platforms (i.e., install, update, or uninstall) may cause them to be incorrect.
To Reproduce
- Open the following sketch in the Arduino IDE:
If the library is not installed, problems will be indicated as expected.
#include <Arduino_APA102.h> Arduino_APA102 leds(1, 2, 3); void setup() {} void loop() {}
- Install the "Arduino_APA102" library via Library Manager.
🐛 The problems are still indicated even though the sketch is now valid:
If you trigger an update by reopening the sketch, changing the code, etc., the language server results update and reflect the current state of the sketch's dependencies.
Expected behavior
Language server results are updated after making any change to installed libraries via the IDE interface:
- Boards Manager
- Library Manager
- Sketch > Include Library > Add .ZIP Library...
- File > Preferences > Sketchbook location
Desktop
- OS: Windows 10
- IDE Version: 2.0.0-rc1-snapshot.be55a0a
Date: 2021-12-03T11:09:57.266Z
CLI Version: 0.20.1 [abb21449] - Arduino Language Server version: 0.5.0-rc6