Menu

Autocompletion for class local vars

2009-06-18
2013-03-15
  • little xiaobai

    little xiaobai - 2009-06-18

    Following the example in this video for Pydev autocomplete:

    http://showmedo.com/videos/video?name=PydevEclipseExtensionsFabio&fromSeriesID=8

    for the code:
    ----------
    class Foo(object):

        def __init__(self, params1, params2):
            self. **
            ***
    ----------

    ** autocomplete does not work for self - it does not show anything when pressing control-space (just beeps).

    *** on the next line, auto complete shows builtins and other stuff, but does not show local variables (e.g. params1, params2)

    autocomplete works for import statements e.g. from django.http import (shows all the right choices here)

    So it sorta works, but not really =(.   What am I doing wrong in terms of configuring Aptana + Pydev?

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-06-19

      Strange, the cases you pointed do work well for me.

      What version of pydev/eclipse are you using? Do you have some error in your error log?

      Cheers,

      Fabio