Open cyberMe opened 7 years ago
What's interesting: flake8 --teamcity --output=report.txt
works fine
Yes, but argument --output=report.txt
is not processed, and report.txt is not created.
Another way for reproduce that exception:
flake8 --output=report.txt --teamcity samplefile.py
export LANG=C && flake8 --teamcity samplefile.py
I think, the reason is that flake doesn't expect unicode characters in error message.
Also this error is reproduced at latest flake8==3.3.0.
UnicodeEncodeError raised when Flake8 check files with unicode text.
Environment: python 2.7.13, flake8==3.2.1, teamcity-messages==1.21.
Sample file:
Command for run sample:
flake8 --teamcity=True --output=report.txt
Stacktrace: