-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Description
Repro steps
- Clone or git clean the fsharp repo and execute build.cmd
- Open VisualFSharp.sln
- Set VisualFSharpDebug as the startup project and press F5
- Open an F# file in the debugged VS instance
- Press Ctrl-space to trigger Intellisense
Expected behavior
Intellisense appears.
Actual behavior
No Intellisense appears.
TypeLoadException is shown in the VS toolbar, the XML activity log contains
System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionService'. Assembly: 'FSharp.Editor, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.VisualStudio.FSharp.Editor.FSharpCompletionServiceFactory.Microsoft.CodeAnalysis.Host.Mef.ILanguageServiceFactory.CreateLanguageService(HostLanguageServices hostLanguageServices)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.CodeAnalysis.Host.Mef.MefLanguageServices.GetService[TLanguageService]()
at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetLanguageService[TLanguageService](Project project)
at Microsoft.CodeAnalysis.Shared.Extensions.DocumentExtensions.GetLanguageService[TLanguageService](Document document)
at Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.AsyncCompletion.CompletionSource.InitializeCompletion(CompletionTrigger trigger, SnapshotPoint triggerLocation, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Implementation.AsyncCompletionBroker.<>c__DisplayClass116_1.<GetCompletionSources>b__7()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint[T](Object errorSource, Func`1 call, T valueOnThrow)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Related information
Win 10
VS 17.2 Preview 1
>dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.200
Commit: 4c30de7899
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.200\
Host (useful for support):
Version: 7.0.0-preview.2.22102.1
Commit: 6527b7fe83
.NET SDKs installed:
6.0.200 [C:\Program Files\dotnet\sdk]
7.0.100-preview.2.22103.2 [C:\Program Files\dotnet\sdk]