I have requirements.txt file in my project and PyCharm works perfectly fine with it. However, it also checks every other txt file and displays misleading error messages. For example, having foo.txt file with a string
bar baz
written in it produces the following message:
<versionspec>, RequirementsTokenType.COMMENT, RequirementsTokenType.EOL, RequirementsTokenType.LSBRACE, RequirementsTokenType.SEMICOLON or RequirementsTokenType.WHITE_SPACE expected, got 'baz'
I definitely don't want PyCharm to treat all txt files like requirements file, how can I change this strange behavior?
PyCharm 2020.2.1 CE
requirements.txt
files or is this from the default editor? And how does this error come up?requirements.txt
there as a recognized file type at all, so having a plugin forrequirements.txt
handling seems like the most plausible scenario.