-
Notifications
You must be signed in to change notification settings - Fork 784
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: crash or hang when accessing F# Text Editor options #16965
Comments
I've seen this as well. |
Original version released with 17.10 preview i.e: |
I bet it's translation. |
Ok, maybe not Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "Microsoft.VisualStudio.FSharp.Editor.SettingsStore+ISettingsStore" but found 0 after applying applicable constraints.
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.VisualStudio.FSharp.Editor.OptionsUIHelpers.AbstractOptionPage`1.OnActivate(CancelEventArgs _arg1) in C:\Users\vlza\code\fsharp\vsintegration\src\FSharp.Editor\Options\UIHelpers.fs:line 37
at Microsoft.VisualStudio.Shell.DialogPage.DialogSubclass.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at Microsoft.Internal.VisualStudio.Shell.Interop.IVsToolsOptionsPrivate2.ShowToolsOptions(Guid selectedPageId)
at Microsoft.VisualStudio.Services.UnifiedSettings.VsCommands.ToolsOptionsCommand.<>c__DisplayClass6_0.<<Execute>b__0>d.MoveNext()
--- 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.Shell.VsTaskLibraryHelper.<>c.<<FileAndForget>b__35_0>d.MoveNext() |
@vzarytovskii this call stack looks helpful! I got it to work again at least in debug. I'll post what I got soon. |
Nah, now I just can't repro this at all, on |
My "fix" in PR seems to work for me 5/5 times (when VSIX is deployed). It looks like something is wrong with MEF, I have 2 working theories:
It seems I can't figure out for sure what's happening. |
@vzarytovskii I can't repro in debug at all now, but I'll test your fix on my VS installation in a moment. |
I couldn't reproduce in debug either |
Works! |
Current
main
installed on 17.10 preview 2:Repro steps
Open settings, go to Text Editor -> F# -> Advanced ( or any other F# page).
VS either hangs or crashes and restarts.
Attempting to debug this in experimental instance I get:
The text was updated successfully, but these errors were encountered: