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] Outline doesn't seem to handle symbols with fully qualified container names #2244

Open
MarkZ3 opened this issue Jun 30, 2018 · 1 comment
Labels
bug bugs found in the application outline issues related to the outline

Comments

@MarkZ3
Copy link
Contributor

MarkZ3 commented Jun 30, 2018

Using Theia master as of 8a5132e, Electron example.

For example, I have a symbol "replacementsToEdits" with no container, it gets displayed properly. Then a second symbol "LSPDiagnosticsConsumer" with container "clang::clangd::ClangdLSPServer::LSPDiagnosticsConsumer", this one is not displayed an from that point none of the symbols are displayed. See screen shot.

outline-scopes-bug

@svenefftinge svenefftinge added the bug bugs found in the application label Jul 1, 2018
@MarkZ3 MarkZ3 changed the title [outline] Outline doesn't seem to handle symbols with "::" in their container name [outline] Outline doesn't seem to handle symbols with fully qualified container names Jul 6, 2018
@MarkZ3
Copy link
Contributor Author

MarkZ3 commented Jul 6, 2018

When the tree model gets built, for a given parent node, it tries to assign children nodes. To do that, it considers a candidate child symbol by checking its container name and compares it to the name of the parent node. The container name is assumed to be not fully qualified. If it is fully qualified, then it won't match the name of the parent symbol, which causes this bug. Let me give an example:

namespace Blah {
  class MyClass {
    void foo();
  };
}

Here, the symbol foo has the name "foo" and containerName "Blah::MyClass". Because "Blah::MyClass" doesn't match "MyClass", foo will not be considered a child of MyClass.

There are a few options that could help with this:

@vince-fugnitto vince-fugnitto added the outline issues related to the outline label Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application outline issues related to the outline
Projects
None yet
Development

No branches or pull requests

3 participants