Search code examples
pythonpycharmide

PyCharm doesn’t see files in project


I commited changes in project, then I removed idea and cache folders, after that (or maybe this is not the reason) pycharm doesn’t see files in project: some files marked in yellow and no folders and .py files at all. Also there is no project structure and interpreter in settings enter image description here enter image description here enter image description here

How to fix it? Thanks


Solution

  • Resetting preferences: Close PyCharm then delete the folder .idea/ again, then open PyCharm and re-open the project .

    Without resetting preferences: you can go to Preference -> Project: <ProjectName> -> Project structure and click + Add Content Root at the right pane and select my project directory in a file browser