Skip to content

Deleting a sketch tab that declares a function used in other tabs doesn't report errors. #238

@silvanocerza

Description

@silvanocerza

Describe the bug

Deleting a sketch tab that declares a function used in other tabs doesn't report errors.

To Reproduce

  1. Create a new sketch
  2. Save it
  3. Select any board
  4. Create a new tab named tab.ino
  5. In the tab.ino declare a function void foo() {}
  6. Save tab.ino
  7. Call foo() inside loop() in the main sketch file
  8. From the file explorer delete tab.ino
  9. Verify the foo() call inside loop() is not underlined as error
  10. Type foo inside loop() and verify the foo() function is shown in the autocomplete windows

Expected behavior
I'd expect foo() to be underlined as error after tab.ino is deleted and not to be shown in the autocomplete window anymore.

Desktop (please complete the following information):

  • OS: Linux
  • Version: 2.0.0-beta.4-nightly.20210318
  • Date: 2021-03-18T03:10:26.441Z
  • CLI Version: 0.17.0 alpha [ab587583]

Additional context
None.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions