Skip to content

Changing an fsl or fsy (fslex or fsyacc) file is not automatically compiled when you build or rebuild in Visual Studio #9920

@abelbraaksma

Description

@abelbraaksma

In FSharp.sln and VisualFSharp.sln, the project FSharp.Compiler.Private.fsproj has several FsLex and FsYacc MSBuild tasks defined. When the corresponding *.fsl or *.fsy file changes, the change is not picked up by MSBuild, and the output file of the lex/yacc tasks doesn't change. You may find yourself hunting ghosts to find your lexer or yacc change reflected.

Workaround: the only work-around I found was: close VS (to get rid of locked files) and build from commandline through build.cmd.

Related, briefly discussed here with @KevinRansom: #9877 (comment).

A fix is underway as part of #9918.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions