I suddenly have a problem with file main.py . I am using pycharm with python version 3.6 from anaconda.
I had a full project that run fine and now the 'main.py' became text file. If I open a new project and name a new python file as 'main' it automatically turn into text file (any other name remains .py file).
What is the problem?