#556 Bad packages auto-imported

1.3.8
closed-works-for-me
5
2008-02-05
2007-08-21
Dobes V
No

I am using turbogears and workingenv, and one problem I get is that pydev is searching some folders it should, especially lib/python2.5 and build.

When I autocomplete, it tries to insert imports like:

from lib.python2.5.something-1.0.egg.package import xxx

I think pydev should follow the same convention as python, that is:

- Folders without __init__.py should be ignored, including their subfolders.
- Folders with spaces, dots, etc. should be ignored, including their subfolders.

Doing just the second one would be good enough for me, for now, but ultimately I think only packages that would be recognized by python should be auto-imported.

I think this may be a bug in pydev extensions, which I am using.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2007-09-03

    Logged In: YES
    user_id=617340
    Originator: NO

    It's half-fixed for 1.3.9

    It will ignore folders with spaces and dots, but still does not check for __init__.py files: that's mostly due to performance, as it may be something expensive to do -- it still could be done with some smart caches, but it would require much more effort...

    Also note that you may have to reset your interpreter/project configurations after updating to the latest version (as your existing caches will still appear valid to pydev).

    p.s. It's a bug in the open source version

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-09-03
    • milestone: --> 1.3.8
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-02-05
    • status: open --> closed-works-for-me
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-02-05

    Logged In: YES
    user_id=617340
    Originator: NO

    Ok, I'm closing this bug altogether because I don't think the performance penalties would be worth it...

    note: if more people complain about it at a later time I might reconsider.