We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For relative imports, gf resolves an import statement such as:
gf
from .common.exceptions import MyException
into:
/common/exceptions
and then vim yells saying that it cannot find /common/exceptions, because obviously it cannot be found at the filesystem's root ☺.
A patch would be to resolve the path before looking up the module, so that it gets translated to:
$VIM_PWD/$BUFFER_DIR_PATH/common/exceptions
where $VIM_PWD is the path to where vim is living, and $BUFFER_DIR_PATH is the path to the current buffer's file.
$VIM_PWD
$BUFFER_DIR_PATH
I'll try to figure out a patch for that…
The text was updated successfully, but these errors were encountered:
the PR #5 works for me.
And, BTW, if $BUFFER_DIR_PATH (which is basically expand('%')) is absolute, I'm not prepending $VIM_PWD (which is expand('$PWD')).
expand('%')
expand('$PWD')
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
For relative imports,
gf
resolves an import statement such as:into:
and then vim yells saying that it cannot find
/common/exceptions
, because obviously it cannot be found at the filesystem's root ☺.A patch would be to resolve the path before looking up the module, so that it gets translated to:
where
$VIM_PWD
is the path to where vim is living, and$BUFFER_DIR_PATH
is the path to the current buffer's file.I'll try to figure out a patch for that…
The text was updated successfully, but these errors were encountered: