Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize function arguments in function body #265

Closed
hadisfr opened this issue Aug 11, 2018 · 5 comments
Closed

Recognize function arguments in function body #265

hadisfr opened this issue Aug 11, 2018 · 5 comments

Comments

@hadisfr
Copy link
Contributor

hadisfr commented Aug 11, 2018

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
Copy link
Owner

Can remember such feature. Could you please describe more?

@hadisfr
Copy link
Contributor Author

hadisfr commented Aug 13, 2018

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
Copy link
Owner

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

@hadisfr
Copy link
Contributor Author

hadisfr commented Aug 13, 2018

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

@srusskih
Copy link
Owner

yeap. going to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants