简体   繁体   中英

PyDev Package Explorer doesn't show files in Eclipse

I have been working for weeks using Eclipse's PyDev (Eclipse 3.8.1) and usually I click on files in Package Explorer to navigate through them. Now all of a sudden my Python project looks empty in the Package Explorer, just showing standard python libs.

I tried many things such as:

  • Refreshing project.
  • Importing again project to workspace.
  • Looking at custom filters in "customize view".
  • Opening project file in the editor and then using "link with editor".
  • Closing PyDev Package Explorer and opening it again.
  • Closing and opening Eclipse again (several times).

None of those showed the files. I don't know what is wrong with this project. I think it is not related, but it is also a git project.

Do you know what else is missing for me to try?

Thanks.

Found the solution in PyDev FAQ

The usual checks are:

  1. In the PyDev Package Explorer menu, is the top level elements pointing to working sets, if yes, change it to "Project".

  2. In the PyDev Package Explorer menu, customize view, the content has both, PyDev Navigator Content and Resources checked?

  3. In the PyDev Package Explorer menu, customize view, is it possible that the filters selected are hiding all your elements?

The first item solved my problem.

This is a workaround. You could create a new working set and select the projects that you have created and wish to see them in the PyDev Package Explorer. This trick worked for me.

Steps to create a working set :

  1. Click on the inverted triangle in the PyDec Package explorer.
  2. Select "Select Working Set"
  3. Click New button.
  4. Select Resources and click Next
  5. Select the projects that you wish to have them seen on the explorer -> mention a name of the working set and click Finish button.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM