Reader mode triggering in source files
In one of my source files, I noticed that unused imports aren't greyed out - like they usually are - when Reader Mode is enabled.
With reader mode:

Without:

I suppose this isn't a problem with Reader Mode itself, since it explicitly lists an option to grey out unused imports or not to do this. However, this highlights a deeper issue: In the settings page where one can enable Reader Mode, it says:

But this is triggering in my source files which are neither library nor read-only files.
Please sign in to leave a comment.
So the issue is that Reader mode is enabled for files where it shouldn't be enabled?
Could you please show a screenshot of the whole IDE window with the affected file and the project view opened?
Yes, that's the issue. I'm sorry, for confidentiality reasons I can't share a screenshot of my window.
I'm not looking for a solution to my specific problem; if it only happens to me because I have a weird project setup, never mind. But I would suggest you try it out for yourself with a clean project and if it happens there as well then something needs to be fixed.
It doesn't reproduce in my case, but there was cases when a similar issue was caused by the incorrect project setup. Basically, make sure that all files you work on are located inside content root in project structure settings (https://www.jetbrains.com/help/pycharm/project-structure-dialog.html) and are considered non-library code belonging to the project.
OK, I'll try that. Thank you so much!