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
TreeDataProvider shows error "Element with id is already registered" #71698
Comments
I see this a lot in GitLens too, but I haven't been able to pinpoint a scenario that always repro's it. |
I was really hoping that when the custom views adopted the new tree implementation this issue would go away -- but I still see it 😢 |
@eamodio Can you please provide steps to repro it? |
Thanks for all your great work on this project! :D I can reproduce with this project on:
Then I get
Any suggestions? Thanks! :D
|
Im getting this a lot too. Could I confirm if this error message was intended for the extension developer due to incorrect use of the vscode API or an internal assertion? |
I can repro with the original example from @EricJizbaMSFT (thank you for the concise example!). I'm looking into it. |
The example nicely shows that we don't do anything to prevent multiple tree refreshes from occurring at the same time. I've added refresh queuing. If you seen any odd tree behavior in the near future, it could be that this queuing broke some other timing. |
Issue Type: Bug
We've noticed errors similar to the following when leveraging the
TreeDataProvider
in our extensions:I believe it's a race condition when refreshing and I've created a simple extension that you can clone in order to repro. Specifically, the 'ej/tree' branch:
https://github.com/EricJizbaMSFT/helloworldext/tree/ej/tree
In order to repro, right click on the "1" node and select "Hello world":
This repros for me on both insiders and non-insiders.
VS Code version: Code - Insiders 1.33.0-insider (0ac1114, 2019-04-01T15:47:22.304Z)
OS version: Darwin x64 18.2.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (7)
The text was updated successfully, but these errors were encountered: