Skip to content

Outline view contents disappear after adding code to sketch #124

Open
@Ferreira31

Description

@Ferreira31

Describe the problem

I'm using the "Outline" view. The functions of the sketch are shown in the view when it is first opened, but when I edit the sketch the program outline disappears and is replaced with the message:

No outline information available.

image

To reproduce

The fault seems to be reproduced consistently by this procedure:

  1. Select File > New from the Arduino IDE menus.
  2. Press Ctrl+Shift+P to open the command palette
  3. Select "Toggle Outline View".
  4. Place the cursor at line 3
    You should now see the correct outline of the program.
  5. Press Enter three times.
    The "OUTLINE" panel now shows "No outline information available".

Expected behavior

Program outline is updated in the "Outline" view as the sketch code is edited.

Arduino IDE version

2.0.0-beta.12-snapshot.4d8a7b8

Operating system

Windows

Operating system version

10

Additional context

The fault also occurs under conditions than the ones described in the reproduction instructions above.


I also encounter spurious results where outline components are missing or duplicated.

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftopic: language serverRelated to the Arduino Language Servertype: enhancementProposed improvementtype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions