Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline contents disappear after writing code #124

Open
Ferreira31 opened this issue Jan 14, 2020 · 5 comments
Open

Outline contents disappear after writing code #124

Ferreira31 opened this issue Jan 14, 2020 · 5 comments
Assignees
Labels
topic: code Related to content of the project itself topic: language server Related to the Arduino Language Server type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project

Comments

@Ferreira31
Copy link

Ferreira31 commented Jan 14, 2020

In Outline I've already seen that the loop function and the void function appear, but now it's buggy, when I start it, it's there, when I write something it disappears, I don't know how far this idea of ​​putting the function tree goes, but I already implemented, it would be cool if all the functions really were there, voids / if / while and etc., the functions that close the code, and that there was a description after it depending on the comment that is in the code. And that it is possible to minimize trees by functions, etc. Furthermore, it is possible to minimize them in code, for example, I don't want to see the setup function now, minimize it, and that's it.

image

So for example, in the tree, this code below would look like this:

void setup
void test (Description 1)
-------if (If test)
void test2 (Description 2)
-------if (test2)
void loop
@spoenemann

This comment was marked as outdated.

@Ferreira31

This comment was marked as outdated.

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@silvanocerza silvanocerza added the type: enhancement Proposed improvement label Mar 1, 2021
@per1234 per1234 changed the title Function Tree Outline contents disappear after writing code Oct 28, 2021
@per1234 per1234 added topic: code Related to content of the project itself topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project labels Oct 28, 2021
@per1234
Copy link
Contributor

per1234 commented Nov 28, 2021

I am able to reproduce this issue simply by adding three line breaks to a sketch. For example:

  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".

I have encountered it under other conditions as well, but this was a minimal demonstration that seems to work consistently.

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

  • OS: Windows 10
  • Version: 2.0.0-beta.12-snapshot.4d8a7b8
    Date: 2021-11-25T17:38:39.422Z
    CLI Version: 0.20.0 [553c6375]

@Jawomo
Copy link

Jawomo commented Jan 17, 2022

The bug was reported 2 years ago, will this be fixed anytime? Or is this intended?

Still present in 2.00 beta.

@francwalter

This comment was marked as off-topic.

@arduino arduino locked as too heated and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: code Related to content of the project itself topic: language server Related to the Arduino Language Server type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

7 participants