-
Notifications
You must be signed in to change notification settings - Fork 236
Milestone
Description
Probably not specific to this test, but rather a race condition with the [UseExportProvider] attribute and ExportProviderCache bits, and we've just hit some threshold of tests that make it more probable to hit.
I seem to remember the WebTools code hitting this in years past, and the exception is coming from those bits.
System.InvalidOperationException : ExportProviderCache may only be used from tests marked with UseExportProviderAttribute
at Microsoft.AspNetCore.Razor.Test.Common.Mef.ExportProviderCache.SingleExportProviderFactory.GetOrCreateExportProvider() in /_/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/Mef/ExportProviderCache.cs:line 159
at Microsoft.AspNetCore.Razor.Test.Common.Mef.ExportProviderCache.SingleExportProviderFactory.Microsoft.VisualStudio.Composition.IExportProviderFactory.CreateExportProvider() in /_/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/Mef/ExportProviderCache.cs:line 219
at Microsoft.CodeAnalysis.Razor.Formatting.HtmlFormatting.<CallWebToolsApplyFormattedEditsHandlerAsync>d__2.MoveNext() in /_/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/Formatting_NetFx/HtmlFormatting.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostOnTypeFormattingEndpointTest.<VerifyOnTypeFormattingAsync>d__5.MoveNext() in /_/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CohostOnTypeFormattingEndpointTest.cs:line 118
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostOnTypeFormattingEndpointTest.<FormatsSimpleHtmlTag_OnType>d__4.MoveNext() in /_/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CohostOnTypeFormattingEndpointTest.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels