-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaces the whole file with time status. #972
Comments
I am not sure if this is a plugin issue or a csharpier problem |
I'm not familiar with nvim format-on-save, but the command If you run It is also possible to pipe input to You may also want to look into https://github.com/sbdchd/neoformat which has support for csharpier. The fact that it supports csharpier is the extent of my knowledge though, I don't know how it compares to nvim format-on-save. |
it only outputs when I make a change to the file |
but then the file just becomes empty when I save with no change |
Ah, it seems that there is a bug related to the caching that is done to speed up formatting when combined with For now if you run with |
Yep, that did work. But can there be an argument to not output errors and just the file without formatting? |
There isn't a way to get back the file, but Maybe your best bet for now is to wire up some basic logic that checks the exit code of csharpier, either returning the output of csharpier, or the contents of the file. Put that into a powershell or bash script, and then call that script from your formatter. |
I will try that out, I should probably open an issue in the neovim plugin aswel. |
I am using nvim format-on-save, and using this line I got it to execute the dotnet csharpier command:
and it replaces the whole file with:
Formatted 5 files in 98ms.
The text was updated successfully, but these errors were encountered: