Skip to content

Fable 4.25.0 won't compile FSharpPlus anymore #647

@DunetsNM

Description

@DunetsNM

Description

Fable 4.25.0 no longer supports Async.RunSynchronously and compilation fails on this line:

static member Extract (x: Async<'T>) =
#if FABLE_COMPILER
Async.RunSynchronously x
#else
Async.AsTask(x).Result

Not sure what a recourse should be here, maybe a runtime error in FABLE_COMPILER version as a last resort?

Known Workarounds

Fable 4.24.0 works fine.

Expected behavior

Everything compiles

Actual behavior

Compilation fails with error

FSharpPlus.1.6.1\Control\Comonad.fs(17,8): (17,32) error FABLE: Microsoft.FSharp.Control.FSharpAsync.RunSynchronously (static) is not supported by Fable

Are you willing to help with a pull-request?

Yes, but I don't know what the fix should be

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions