Alex Deft
Alex Deft

Reputation: 2787

Why Pycharm linter complains about text files?

I have some code written in a .txt file. Upon openning it, the linter fills the screen with red bars and error. What language is it expecting?

enter image description here

The image shows one error pop-up when I hover over one of the red lines.

Upvotes: 0

Views: 184

Answers (1)

Pavel Karateev
Pavel Karateev

Reputation: 8495

Because HyperParam.txt isn't assigned to a text file type but to something else - note the file icon with a small gear. Check Settings | Editor | File Types -> find the type with the same icon and remove HyperParam.txt or *.txt from "Registered patterns" for it.

Upvotes: 2

Related Questions