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

[VS 2022 v17.7] Exception when trying to create a new snapshot #9

Closed
nlaslett opened this issue Aug 11, 2023 · 3 comments
Closed

[VS 2022 v17.7] Exception when trying to create a new snapshot #9

nlaslett opened this issue Aug 11, 2023 · 3 comments

Comments

@nlaslett
Copy link

New installation
VS 2022 v17.7
ContextKeeper v1.98.5

When I click the "Add Snapshot" button, nothing seems to happen, and I get this in the Output window:

Error [CreateCommandHandler] Couldn't create a snapshot.
The data necessary to complete this operation is not yet available.

VS is fully up and running, no background tasks processing.

Stack Trace

10:27:36.790: [ProcessId:77056] [ThreadId:1] Info [CreateCommandHandler] Creating snapshot ... 10:27:36.793: [ProcessId:77056] [ThreadId:1] Error [CreateCommandHandler] Couldn't create a snapshot. The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A) at EnvDTE.Documents.GetEnumerator() at _lZReR5iZRC50AW97xY22UKXQdvC._rn3fbbLwHKmwPN44bkxz9IuS0KC[�,�,�,�,�,�,�,�, , ,�, , ]() at _427bzoGdSeRhCudkRGpFb7BdTGSA._bdjk39Ow1xrqSUrcjlf3pwpmoXF[�,�,�,�,�,�,�,�, , ,�, , ](� ) at _vSBxehJBzTAmeoeelcokCZX9x8C._gCyaTKmElENsGObbhfSuHBhVBLj(_Fmap2tbfuju5AMXyptosO4HDXbG ) at System.Windows.Threading.DispatcherOperation`1.InvokeDelegateCore() at System.Windows.Threading.DispatcherOperation.InvokeImpl() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at _2HxcWNxp2BKlqioNeBz6H5crBxj._7xt4WSj6X2dMKMStIMFXbyPJXQp.MoveNext()

@PiotrKarczmarz
Copy link
Contributor

PiotrKarczmarz commented Aug 15, 2023

Thanks for reporting! The Visual Studio version 17.7 introduced a new bug to the VS API, which was first appeared in the 17.7 Preview 2, but has never been fixed since.

The good news is - I have working workaround, which will be released ASAP (today or tomorrow).

@PiotrKarczmarz PiotrKarczmarz changed the title Exception when trying to create a new snapshot [VS 2022 v17.7] Exception when trying to create a new snapshot Aug 16, 2023
@PiotrKarczmarz
Copy link
Contributor

It has taken a little longer than expected but the fix is finally published in the v1.98.6 🎉

@nlaslett
Copy link
Author

Thanks for making quick work of (Microsoft's) bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants