Skip to content

Files with pattern matching need to be recompiled if union cases change #2342

Closed
@tomcl

Description

@tomcl

Description

Umm... In some circumstances a multiple file all one project F# program, watch-compiled by nagareyama, does not recompile when it should.

At least it seems to be that. I have found now 2 or 3 times during dev that some source changes lead to very peculiar incomprehensible (they look like compile errors) bugs that vanish when I stop watching and recompile from scratch.

The common thread would appear to be that when I add a case to a D.U., even though it works, some subsequent match expressions (in different modules) go to the wrong case. It might be something else, but this problem definitely occurs when I add cases to D.U.s in base types and then work on code that uses them in other modules.

In all cases the apparent intractable bug goes away when I next fully compile.

Any ideas?

I'll keep an eye on it and try to repro.

Repro code

Not a hope, as yet.

  • Fable version: nagareyama 3.0.5
  • Operating system win 10

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