Open makeProjectGreatAgain opened 1 year ago
Hello @makeProjectGreatAgain , thanks for your bug report. Sorry for the late reply.
Can you reproduce the same problem if you use the solution file instead of the project file?
And can you provide the project file in case the result is the same?
Hello
Can you reproduce the same problem if you use the solution file instead of the project file?
Yes, the result remains the same.
And can you provide the project file in case the result is the same?
Yes, you can see it above ( look for FsLintBug.fsproj ) A code to reproduce the problem povided in section "Repro steps". It contains only two small files FsLintBug.fsproj and Program.fs ( less than 20 lines for both ).
We discovered a workaround for now: change net7.0
to net5.0
in the project file.
Description
dotnet fsharplint lint .\FsLintBug.fsproj
- fails with "Failed to parse file"Repro steps
Code to reproduce the problem:
FsLintBug.fsproj
Program.fs
Commands:
dotnet build
- okdotnet fsharplint lint .\FsLintBug.fsproj
- fails with "Failed to parse file":Expected behavior
No parse errors, just warning as expected
Actual behavior
fails with "Failed to parse file"
Known workarounds
Don't use redundant new` keyword.
Related information
Package Id Version Commands
dotnet-fsharplint 0.21.3 dotnet-fsharplint