You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to format a document in Visual Studio using the autopep8 formatter, an error is thrown when there is no newline at the end of the file. Please see microsoft/PTVS#6752 for details.
Python Code (remove the newline at the end!!!)
######this is a commentimportos,sys;
spam( ham [ 1 ], { eggs : 2 } )
deffoo ():passx=1;y=2;
y=2#comment no newline
When trying to format a document in Visual Studio using the autopep8 formatter, an error is thrown when there is no newline at the end of the file. Please see microsoft/PTVS#6752 for details.
Python Code (remove the newline at the end!!!)
The error looks like this:
Command Line and Configuration
Looks like the command is run by the PTVS extension here: https://github.com/microsoft/PTVS/blob/main/Python/Product/PythonTools/PythonTools/Editor/Formatting/PythonFormatterAutopep8.cs#L27
Your Environment
The text was updated successfully, but these errors were encountered: