Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm project files have disappeared

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:

  1. 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.

  2. Fresh download and run of PyCharm, repeating the above step. Result: Same as option 1.

  3. 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.

like image 748
Jeremy Avatar asked Aug 15 '16 09:08

Jeremy


People also ask

Where do PyCharm files go?

By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.

How do I see all projects in PyCharm?

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.

Where does PyCharm store project settings?

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.


1 Answers

I had the issue with PyCharm 2020.3.5 on macOS Big Sur 11.1.

My solution was:

  1. Preference -> Project: <ProjectName> -> Project structure
  2. Click + Add Content Root at the right pane and select my project directory in a file browser
like image 117
asvx Avatar answered Oct 12 '22 13:10

asvx