Skip to content

StackOverflowException when compiling with FSharp.Compiler.Tools 4.1.1 #2682

@alfonsogarciacaro

Description

@alfonsogarciacaro

This seems to be a regression in the latest release of FSharp.Compiler.Tools (4.1.1).

After upgrading to latest FSharp.NET.Sdk (1.0.2 which has a dependency of FSharp.Compiler.Tools 4.1.1), when I build Fable and use it on a big project I get a StackOverflow exception. Unfortunately, because I cannot catch the exception I don't know exactly where it occurs but I have added logs to all my recursive functions and no one is repeating itself too much. The problem doesn't occur if I downgrade to FSharp.NET.Sdk 1.0.1 (which depends on FSharp.Compiler.Tools 4.1.10).

Repro steps

  1. Clone Fable narumi branch using this commit and build the project with the FAKE build script.

  2. Start the Fable server by typing dotnet build/fable/dotnet-fable.dll start on the repo root.

  3. In a new shell, go to the src/dotnet/Fable.Client.Browser/demo folder and type npm run build.

  4. After some seconds a StackOverflow exception will crash the Fable server process. If you use this commit instead (which just downgrades FSharp.NET.Sdk) and repeat steps 1, 2 and 3, the crash won't happen.

Related information

  • Windows
  • FSharp.Compiler.Tools 4.1.1
  • dotnet SDK 1.0.1
  • Indications of severity: Serious

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