-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Creating a Namespace does not update Symbol Tree node #7889
Comments
Oops, I did read that issue and then thought my issue is different... But I guess it is not, it may be very well the exact same issue. For me it inclines to happen more often if namespaces have a "summary" node. |
Yeah, couldn't tell if it was 100% the same, just a reference for devs |
Something similar can occur when converting a namespace to a class too. |
Based on the feedback, I think there is some latent bug in the Symbol Tree updating. That being said, I cannot reproduce OP's original issue. I'm guessing there is some sort of timing / threading issue at play. The Symbol Tree will buffer events from the system for symbol changes. At some point the events are flushed to the tree. The tree will then run all requests in a background thread. That being said, without some way to force the issue to appear, at least periodically (like a high volume script or test), then I may not be able to find the issue. |
@dragonmacher My project file is very large with the amount of symbols in the 10000 range. Maybe this affects the behavior. Did you test the script on a smaller project? I have an eight core 8 GB intel i5 |
My project was trivial. Thanks for the extra info. I'll dig some more. |
I see these sort of problems all the time so I find it hard to believe you are unable to reproduce. |
This area has changed a bit in master. There is a chance that your specific example above has been fixed. If you can try running from master, then you could see if it is fixed for you. Otherwise, the next release will have the change. |
Describe the bug
The bug occurs when using the UI or
createNamespace
to create a Namespace that is nested multiple levels. In order to refresh the Symbol Tree node, the root node has to be collapsed and uncollapsed.To Reproduce
Steps to reproduce the behavior:
Bug-Report-01 => A
A
and "Create Namespace" (or runcreateNamespace(A, "Invisible")
). No new node appears but a new namespace is actually created.A
. Now observe the newly created Namespace with a default name of "NewNamespace"Note that it only happens this deep into the Tree, it does not happen for me one higher, e.g. on the
Bug-Report-01
level.Note that it only happens if two Namespace nodes are collapsed into a "Summary" node, in this case "Bug-Report-0".
Note that it is also not updating if you move functions or other namespaces and classes into the bugged namespace.
Expected behavior
I expect the Namespace node to update in the UI.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: