MissingMethodException
Description
Got a goldenbar on VS 2019 v 16.9.0 Preview 2.0.
<entry>
<record>974</record>
<time>2021/01/12 08:57:22.253</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.MissingMethodException: Method not found: 'ParserResult`2<!!0,Microsoft.FSharp.Core.Unit> FParsec.CharParsers.run(Microsoft.FSharp.Core.FSharpFunc`2<FParsec.CharStream`1<Microsoft.FSharp.Core.Unit>,FParsec.Reply`1<!!0>>, System.String)'.
 at FSharpLint.Framework.Configuration.parseHint@548(String hint)
 at FSharpLint.Framework.Configuration.parseHints(String[] hints)
 at FSharpLint.Framework.Configuration.deprecatedAllRules@566-3.Invoke(HintConfig config)
 at Microsoft.FSharp.Core.OptionModule.Map[T,TResult](FSharpFunc`2 mapping, FSharpOption`1 option) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\option.fs:line 53
 at FSharpLint.Framework.Configuration.flattenConfig(Configuration config)
 at FSharpLint.Application.Lint.lint(LintInfo lintInfo, FileParseInfo fileInfo)
 at FSharpLint.Application.Lint.lintParsedSource(OptionalLintParameters optionalParams, ParsedFileInformation parsedFileInfo)
 at FSharpLintVs.LintChecker.<DoUpdateAsync>d__48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at FSharpLintVs.LintActionsSource.<>c__DisplayClass11_0.<<HasSuggestedActionsAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.<CallExtensionPointAsync>d__36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>
This repeats with the same error message around 10 times at some seconds apart.
Related information
- Operating system: Win10
- Branch: VS extension 0.4.1
Does this happen with a non-preview (aka stable) version?
I will need to install it back, will let you know.
Interesting, note this repo doesn't contain a VS extension.
Looks like a missing FParsec method at runtime, do you have any other F# extensions installed? Might potentially be picking up another version of FParsec from another extension that has already loaded it
Sorry for the really late reply... I have been able to run more tests and compare between machines. I can say that this is not linked to Visual Studio 2019 being preview or not (I have both on my laptop and my desktop and no problem on the desktop but problems on the laptop).
I haven't diff the sdk installed on the 2 machines but do you think it could possibly be responsible?
Regarding the extensions, I am using plenty of them but the only other F# extension is F# Formatting