Skip to content

Language server results not updated after changes to installed libraries #670

Closed
@per1234

Description

@per1234

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

  1. Open the following sketch in the Arduino IDE:
    #include <Arduino_APA102.h>
    Arduino_APA102 leds(1, 2, 3);
    void setup() {}
    void loop() {}
    If the library is not installed, problems will be indicated as expected.
  2. Install the "Arduino_APA102" library via Library Manager.

🐛 The problems are still indicated even though the sketch is now valid:

image

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions