From 2d0925800b9e71cde340e4d7ec33de0c1f7c589b Mon Sep 17 00:00:00 2001 From: nojaf Date: Fri, 28 Aug 2026 18:38:21 +0200 Subject: [PATCH 1/2] Compile the signature file fslex generates for lex.fsl lex.fsi was the one generated signature left out of the build. lex.fsl's header defines a nested module, and fslex copied that module declaration into the signature while dropping its body, producing a file that would not compile. FsLexYacc 11.4.1 fixes that (fsprojects/FsLexYacc#240), so bump the pin and take the Compile item out of comments. Compiling it exposes the missing .fsi in the package's CallFsLex Outputs, the fslex side of the bug CallFsYacc is already overridden for. Every generated .fsi is a Compile item, so deleting one on its own left the build asking for a source file that no rebuild would put back. Override CallFsLex the same way. The CallFsYacc override stays: 11.4.1 ships none of the fixes it carries. --- Directory.Build.targets | 24 +++++++++++++++++++++--- Directory.Packages.props | 2 +- src/Fantomas.FCS/Fantomas.FCS.fsproj | 6 +++--- src/Fantomas.FCS/packages.lock.json | 12 ++++++------ 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 23c4617106..1d69269762 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -7,8 +7,8 @@ + + + + + + + + - + diff --git a/src/Fantomas.FCS/Fantomas.FCS.fsproj b/src/Fantomas.FCS/Fantomas.FCS.fsproj index 5a79b3dcfc..092df8d85b 100644 --- a/src/Fantomas.FCS/Fantomas.FCS.fsproj +++ b/src/Fantomas.FCS/Fantomas.FCS.fsproj @@ -347,9 +347,9 @@ SyntaxTree\FsLexOutput\pplex.fs - - - + + SyntaxTree\FsLexOutput\lex.fsi + SyntaxTree\FsLexOutput\lex.fs diff --git a/src/Fantomas.FCS/packages.lock.json b/src/Fantomas.FCS/packages.lock.json index 04adc858ee..cd9dd7c26e 100644 --- a/src/Fantomas.FCS/packages.lock.json +++ b/src/Fantomas.FCS/packages.lock.json @@ -16,12 +16,12 @@ }, "FsLexYacc": { "type": "Direct", - "requested": "[11.3.0, )", - "resolved": "11.3.0", - "contentHash": "v0Q3/c0tizN8vRZ72Tdo+OKU767Yjul0wRJgG1/W15H4tK/9qHne/mylw/gTEIC8FV2zgiDlAudhQpdZXYG3IA==", + "requested": "[11.4.1, )", + "resolved": "11.4.1", + "contentHash": "t77MbPw80ndxR0GGkoFByCl27/oWW5jtLN7S4aYQ21IfoBnskXNdtOlxt7cJw/F9aD2dd8kqCrRbpMuE0cDyaQ==", "dependencies": { "FSharp.Core": "4.6.2", - "FsLexYacc.Runtime": "11.3.0" + "FsLexYacc.Runtime": "11.4.1" } }, "G-Research.FSharp.Analyzers": { @@ -94,8 +94,8 @@ }, "FsLexYacc.Runtime": { "type": "Transitive", - "resolved": "11.3.0", - "contentHash": "36b+4G+85WXU3kmbtq9hFSMGCLkn1nLzJoPgNaLUusnjXrC5ndAyS+hl13H6frpLCS3DB1wAmx/1SGYDe0avMw==", + "resolved": "11.4.1", + "contentHash": "BNLDgkJMztlyUgVV2SuECN5nPZK1C70g06r/dMKmyG7BbbLnQjTuCjAjrde0A5PLEKuVobIQAhuS7ljpoDX9aA==", "dependencies": { "FSharp.Core": "4.6.2" } From 82024582fd79a72339011bcaa2b08f1322ca9c23 Mon Sep 17 00:00:00 2001 From: nojaf Date: Fri, 28 Aug 2026 18:46:07 +0200 Subject: [PATCH 2/2] Update Fantomas to alpha 25 --- .config/dotnet-tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index e1157a6487..177ba7c1b0 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -10,7 +10,7 @@ "rollForward": false }, "fantomas": { - "version": "8.0.0-alpha-022", + "version": "8.0.0-alpha-025", "commands": [ "fantomas" ],