Open Cheesebaron opened 2 years ago
Hey, I'm having the same issue. I'm running Windows, .NET 6.
For some reason, only with top level statements.
D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs(1,1): error WHITESPACE: Fix whitespace formatting. [D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Volvox.Apollo.Web.csproj]
D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs(34,11): error FINALNEWLINE: Fix final newline. Delete 2 characters. [D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Volvox.Apollo.Web.csproj]
...
Formatted code file 'D:\Projects\Volvox\Apollo\Repos\Volvox.Apollo\src\Volvox.Apollo.Web\Program.cs'.
for me it just keeps changing this file because of the above. I haven't got around to play with CRLF settings yet, but it keeps complaining about that file..
Edit: Changing line endings makes no difference, dotnet-format will just change them back and then the same output shows up.
I just ran into this issue as well. However mine is reporting two actions on the last line/column of the file: 1) fix whitespace: insert '\r\n' 2) fix final newline: Delete 2 characters.
Changing the toplevel statement in Program.cs to a class fixes the issue of conflicting formatting reported.
I am having some issues with the new dotnet format tool detecting the same files being changed, even after just running dotnet format in the same folder.
Git does not pick up any change no matter which CRLF settings I use in git, after running dotnet format.
I am running
Log output
Looking at git status there is nothing to commit nor any changes.
Running the same dotnet format command again, it believes it has formatted the same exact 112 files again.