-
Notifications
You must be signed in to change notification settings - Fork 118
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
Try to show parents in the initial type hierarchy tree as well #44
Conversation
This required a server-side change as well: https://reviews.llvm.org/D81845 |
(This should be ready to review along with the dependent PR #20.) |
fcd6bf8
to
7fb6eb5
Compare
(Rebased on top of the landing of #20.) |
I played it around locally -- it works great for simple examples! but for a real LLVM project, I encountered some issues (some of them might be related to clangd), below are the details
[2]: |
Thanks very much for testing!
I'm able to reproduce this, somewhat intermittently. I don't really understand the cause; as far as I can tell, I'm using the VSCode API as documented (e.g. implementing I added a commit to the PR which provides a rejection handler to catch this error and print a warning instead of letting VSCode throw an exception; I don't have a better idea for what to do.
There turned out to be three different server-side issues here: clangd/clangd#504, clangd/clangd#507, and clangd/clangd#510. The first two are fixed and I have a patch up for the third.
This is also fixed by clangd/clangd#510. |
@HighCommander4 could you rebase it to master? |
9a529ae
to
a2191ff
Compare
Rebased. |
a548a20
to
06f1a5e
Compare
Rebased again. |
@hokein do you think this is ready to be merged now? The issues described in this comment are now all resolved, and the patch has been rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
// Sometimes TreeView.reveal() fails. It's unclear why, and it does | ||
// not appear to have any visible effects, but vscode complains if | ||
// you don't handle the rejection promise, so we do so and log a | ||
// warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very unfortunate, but it seems there are no visible effects, we can live with that.
btw, I see some logs (not sure they are helpful)
Warning: TreeView.reveal() failed for reason: Error: Cannot resolve tree item for element 0/0:RecursiveASTVisitor<(anonymous namespace)::UnbridgedCastRewriter>/0:UnbridgedCastRewriter
type-hierarchy.js:250
Warning: TreeView.reveal() failed for reason: Error: TreeError [clangd.typeHierarchyView] Data tree node not found: [object Object]
Thanks!
I see the same thing. Unfortunately, I have not been able to figure out what sort of misuse of the |
No description provided.