Skip to content

[FAKE Support] Broken after latest FCS Update #561

Closed
fsprojects/FAKE
#2475

Description

@baronfel

Newer FCS versions have introduced new optional parameters to the FSharpChecker.Create call, and the Fake Support uses YaafFSharpScripting which hasn't yet been updated. This means we get the following exception at runtime:

[10:00:04 ERR] [Opts] Error in FAKE script support
System.TypeInitializationException: The type initializer for '<StartupCode$Fake-Runtime>.$YaafFSharpScripting' threw an exception. --->
System.MissingMethodException: Method not found: 'FSharp.Compiler.SourceCodeServices.FSharpChecker FSharp.Compiler.SourceCodeServices.FSharpChecker.Create(Microsoft.FSharp.Core.FSharpOption`1<Int32>, Microsoft.FSharp.Core.FSharpOption`1<Boolean>, Microsoft.FSharp.Core.FSharpOption`1<Boolean>, Microsoft.FSharp.Core.FSharpOption`1<Resolver>, Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<System.Tuple`2<System.String,System.DateTime>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`3<System.Object,IntPtr,Int32>>>>, Microsoft.FSharp.Core.FSharpOption`1<Boolean>)'.

We need to update YaafFSharpScripting and then update FSAC to make FAKE Support work again.

Activity

  1. baronfel commented on Feb 27, 2020

    @baronfel
    ContributorAuthor

    cc @matthid do you have time to help here? If not I can maybe take a look this weekend.

  2. matthid commented on Feb 27, 2020

    @matthid
    Contributor

    I think FakeRuntime uses it's own version of this file so we need to update in fake only. I'll not give any promises at the moment...

  3. baronfel commented on Feb 27, 2020

    @baronfel
    ContributorAuthor

    Thanks for the clarification! I'll take a stab at it there then.

  4. Krzysztof-Cieslak commented on Mar 9, 2020

    @Krzysztof-Cieslak
    Member

    I guess this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions