srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

Recognize function arguments in function body #265

Closed hadisfr closed 6 years ago

hadisfr commented 6 years ago

It seems that function arguments don't be recognized in function body and no auto-complete is done about them. I don't remember is it a new issue or there were such behaviour in previous versions, too.
Is this something related to SublimeJEDI or Jedi itself?

srusskih commented 6 years ago

Can remember such feature. Could you please describe more?

hadisfr commented 6 years ago

Example

A simple example:

var1 = 1

class C(object):
    var4 = 4

    def func2(self, var5, var6):
        pass

def func1(var2, var3):
    pass

def main():
    func1(2, 3)
    C().func2(5, 6)

if __name__ == '__main__':
    main()

Current (buggy) behaviour

image image

Expected (correct) behaviour

At func1, I expected var1, var2, and var3 to be on the list.
At func2, I expected var1, var5, and var6 to be on the list.

srusskih commented 6 years ago

yeap, behavior was updated. and i can't remember why.

hadisfr commented 6 years ago

Is it possible to change it to the previous one? Or it's up to JEDI?

srusskih commented 6 years ago

yeap. going to fix it.