-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Package load failure when trying to lauch Navigate To after opening a solution #30892
Comments
cc @sharwell @jasonmalinowski @jinujoseph This is a regression and we should ideally address this soon since it can affect dogfooding. |
I see two primary ways to resolve this:
|
The fix here sharwell@9ddfbf0 is incorrect, JFT.Run shouldn't be used in MEF constructors and can lead to deadlocks and possible thread-starvation, please see: https://github.com/Microsoft/vs-threading/blob/master/doc/cookbook_vs.md#how-do-i-effectively-verify-that-my-code-is-fully-free-threaded, in particular:
We just recently removed a bunch of these across the product. The pattern elsewhere is to wrap this in an |
Version Used: VS 16.0 P1 build 28231.51.d16.0
Steps to Reproduce:
Note: Problem does not repro if you already had some files from the solution open in the editor at the point where Navigate To was launched.
Expected Behavior: Should succeed
Actual Behavior: Following package load failure error -
On debugging the underlying issue appears to be that
AbstractNavigateToSearchService
is trying to instantiateVisualStudioExperimentationService
from the background thread resulting in anInvalidOperationException
from the followingContract.ThrowIfFalse()
call.Dump file: Available at
\\<internalshare>\\<myfolder>\Dumps\RoslynPackageLoad
The text was updated successfully, but these errors were encountered: