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
Error in Visual Studio when formatting with no newline at end of file #2542
Comments
Is Visual Studio invoking |
I'm not sure, let me dig into the exact command VS is running and I'll report back. |
Looks like the Python Tools extension invokes it, and indeed with |
This looks like a PTVS bug to me. Anyway, looks like this was resolved on the PTVS side (by ignoring that line of the diff and then manually doing newline fixups) so I think this should be closed. |
Describe the bug
When trying to format a document in Visual Studio using the black formatter, an error is thrown when there is no newline at the end of the file. Please see microsoft/PTVS#6752 for details.
To Reproduce
Expected behavior
The file should be formatted correctly
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: