I was working on a python project in JetBrains PyCharm 2016.2 on Lubuntu and all of a sudden, all my project files have disappeared from the IDE.
I have tried the following with no success:
Exit PyCharm, navigate to project root, delete the .idea file, open PyCharm, create a new project from the current projects source. Result: seems to load fine, but cannot see any project files in either "Project" view or individually load and view any files.
Fresh download and run of PyCharm, repeating the above step. Result: Same as option 1.
Using File > Open
to open the project again.
Result: Same as option 1.
I can do a search by file or class name within PyCharm and the search does find the files. But on selecting one to load from the search results, the search dialogue just closes and the file is not loaded.
Also to clarify, I still have the files on disk in the project root physically. But PyCharm is not displaying them in the IDE.
By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.
To open the tool window again (and restore the associated features), use the main menu: View | Tool Windows | <Window Name> or press Alt+1 . Hide the tool window. This command opens the description of the Project tool window in the PyCharm online help.
Project settings are stored with each specific project as a set of . xml files under the . idea folder. If you specify the template project settings, these settings will be automatically used for each newly created project.
I had the issue with PyCharm 2020.3.5 on macOS Big Sur 11.1.
My solution was:
Preference -> Project: <ProjectName> -> Project structure
+ Add Content Root
at the right pane and select my project directory in a file browserIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With