question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.9.1 is Broken in VS 15.7 and whatever other updates that brings

See original GitHub issue

Description

Lint fails with this error

       (FSharpLint target) ->
TypeLoadException: Could not load type 'Microsoft.FSharp.Control.CommonExtensions+SubscribeToObservable@1693' from assembly 'FSh
       arp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
error :    at FSharpLint.MSBuild.AppDomain.LintRunner.add_Failure(FailureEventHandler handler)
error :    at <StartupCode$FSharpLint-MSBuild>.$FSharpLintTask.Lint@26.Invoke(FailureEventHandler eventDelegate)
error :    at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.CreateEvent@341.System-IObservable`1-Subscribe(IObserver`1 r)
error :    at FSharpLint.MSBuild.Proxy.Lint()
error :    at FSharpLint.MSBuild.FSharpLintTask.Execute()

Repro steps

Please provide the steps required to reproduce the problem

  1. Load the current master (932c20d) of FSharpLint into VS 15.7

  2. Run unit test FunctionalTestMSBuildTask

Expected behavior

It passes

Actual behavior

That test shows the essentially the same error

error : TypeLoadException: Could not load type 'Microsoft.FSharp.Control.CommonExtensions+SubscribeToObservable@1693' from assembly 'FSharp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
error :    at FSharpLint.MSBuild.AppDomain.LintRunner.add_Failure(FailureEventHandler handler)
error :    at <StartupCode$FSharpLint-MSBuild>.$FSharpLintTask.Lint@26.Invoke(FailureEventHandler eventDelegate
error :    at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.CreateEvent@341.System-IObservable`1-Subscribe(IObserver`1 r)
error :    at Microsoft.FSharp.Control.CommonExtensions.SubscribeToObservable[T](IObservable`1 x, FSharpFunc`2 callback)
error :    at Microsoft.FSharp.Control.CommonExtensions.AddToObservable[T](IObservable`1 x, FSharpFunc`2 callback)
error :    at FSharpLint.MSBuild.Proxy.Lint()
error :    at FSharpLint.MSBuild.FSharpLintTask.Execute()

Known workarounds

N/A

Related information

  • Operating system – Win 10 Home
  • Branch – 0.9.1 NuGet release or master @ 932c20d
  • .NET Runtime, CoreCLR or Mono Version
  • Performance information, links to performance testing scripts

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
duckmattcommented, May 30, 2018

@parthopdas unfortunately it wasn’t so simple as updating fsharp.core, I’m going to try and go with @SteveGilham 's solution (ilmerge to get a single msbuild task assembly) this weekend

0reactions
duckmattcommented, Feb 12, 2019

@SteveGilham Yeah, I couldn’t get ILMerge working with the FSharpLint assemblies, instead I did something I had wanted to do for a long time and deprecated the MSBuild task 😛 Might bring the MSBuild and Fake tasks back at some point but if I do they’ll be wrappers around the new dotnet tool, to avoid these dependency issues that could never quite be resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Last Epoch (@LastEpoch) / X
The Flames Rise 🔥 Last Epoch Beta - 0.9.1: Rising Flames Patch Notes are here! Join game director, Judd Cobler, breaking down what...
Read more >
5.16.1 STILL BROKEN on iOS 15.7.6
Issues: 1. Getting stuck at login page after reinstallation, can be fixed by ending and staring the app manually (always!). 2. Measure Tab...
Read more >
Release Notes for Flyway Engine
We have improved support for `WHENEVER SQLERROR EXIT` in Oracle SQL*Plus. This now works on its own and no longer needs to be...
Read more >
What Features Are Included in Previous Releases?
View a list of features, enhancements, and fixes included in previous releases of Adobe Target.
Read more >
4 Solutions to Exercises
Some approaches are not mistakes, but may lead to different students having different “right” answers. Correct answers will vary based on: • The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found