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

"bar" documentation not found if imported as "from foo import bar" #33

Open
fvisin opened this issue Apr 20, 2015 · 3 comments
Open

"bar" documentation not found if imported as "from foo import bar" #33

fvisin opened this issue Apr 20, 2015 · 3 comments

Comments

@fvisin
Copy link

fvisin commented Apr 20, 2015

When modules are imported as from foo import bar the plugin fails to find the documentation of bar.
For instance, <leader>pw on bar in the following code will result in no Python documentation found:

from foo import bar

my_var = bar(my_args)

while <leader>pW on bar in the following code works as expected:

import foo.bar

my_var = foo.bar(my_args)
@fs111
Copy link
Owner

fs111 commented Apr 20, 2015

yes, the plugin is just doing string matching, it does not actually understand python syntax. I wound not know how to build that in easily w/o a somewhat full parser of python.

@fvisin
Copy link
Author

fvisin commented Apr 21, 2015

Some parsing is unavoidable to solve the issue I guess, but parsing the imports would be enough.

@idbrii
Copy link

idbrii commented Nov 10, 2020

I think this is resolved with 092a195?

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

3 participants