I quite often use the Open Resource window (Hot keyed to Alt+Shift+O) to open a file by typing it's name. However this screen seems to show *.pyc files despite the Navigator view correctly hiding.
Is there anyway to set this up to ignore PYC files?
Cheers-
Cam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, pydev should mark the '.pyc' files as being derived files, and they should only be shown if you have 'show derived resources' selected in the the dialog preferences… Do you have that selected?
If the files are still appearing, it's possible that those files are not being marked as derived… if that's the case, please provide more information on your project structure and where are those .pyc files that are being encountered there.
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't currently have the "Show derived sources" option selected in the "Open resources" dialog (unless theres another option elsewhere).
My project structure is one of a django project:
./career/__init__.py
./career/utils.py
./career/models.py
./career/tests.py
./career/views.py
./career/templatetags/__init__.py
./career/templatetags/career_tags.py
./settings_dev.py
./companies/__init__.py
./companies/urls.py
./companies/models.py
./companies/admin.py
./companies/views.py
./companies/templatetags/__init__.py
./companies/templatetags/company_tags.py
./blogs/widgets.py
./blogs/forms.py
./blogs/__init__.py
./blogs/urls.py
I believe I've found the reason why this has happened.
I had run the project before creating a new pydev project "with existing source files".
This may have detected the pyc files during the import process.
Shortly after posting that comment, I deleted all *.pyc files within the project and refreshed it.
Hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I quite often use the Open Resource window (Hot keyed to Alt+Shift+O) to open a file by typing it's name. However this screen seems to show *.pyc files despite the Navigator view correctly hiding.
Is there anyway to set this up to ignore PYC files?
Cheers-
Cam
Hmm, I'm not sure why but it's also happening for me.
Would love a fix for it
Eclipse v3.5.2 with pydev v1.6.3 (2010 10 0513)
Actually, pydev should mark the '.pyc' files as being derived files, and they should only be shown if you have 'show derived resources' selected in the the dialog preferences… Do you have that selected?
If the files are still appearing, it's possible that those files are not being marked as derived… if that's the case, please provide more information on your project structure and where are those .pyc files that are being encountered there.
Cheers,
Fabio
Hi fabioz,
I don't currently have the "Show derived sources" option selected in the "Open resources" dialog (unless theres another option elsewhere).
My project structure is one of a django project:
./career/__init__.py
./career/utils.py
./career/models.py
./career/tests.py
./career/views.py
./career/templatetags/__init__.py
./career/templatetags/career_tags.py
./settings_dev.py
./companies/__init__.py
./companies/urls.py
./companies/models.py
./companies/admin.py
./companies/views.py
./companies/templatetags/__init__.py
./companies/templatetags/company_tags.py
./blogs/widgets.py
./blogs/forms.py
./blogs/__init__.py
./blogs/urls.py
I believe I've found the reason why this has happened.
I had run the project before creating a new pydev project "with existing source files".
This may have detected the pyc files during the import process.
Shortly after posting that comment, I deleted all *.pyc files within the project and refreshed it.
Hope this helps.
Is the source folder properly set in the project (I think the pydev builder will only mark .pyc as derived files if they're under a source folder).
See: http://pydev.org/manual_101_project_conf2.html
Cheers,
Fabio
Ah, no. The projects at work do not have a 'src' folder. It didn't make any sense to us to have it like that.