You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
Means relative is in the some file that is in the same directory as the current file. Whereas with:
from ..some import relative
Means relative is in the some file that is in the parent directory of the directory containing the current file. So it makes sense that the first would have one .. node, and the second two ?
All single dots are returned as double dots right now but splitting happens correctly. As a workaround, you can just post-process bblfsh results by replacing .. with . to get the right relative path. (at least it worked for all cases I had):
Yeah I did the same, and I'd say the double dot makes more sense to me then a single one, as if you were in the file and wanted to go to the import, you would move around doing cd ../../some etc.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, for
from .some import relative
, we get a node with..
:And for
from ..some import relative
, we get two nodes with..
:It may be related to this line
The text was updated successfully, but these errors were encountered: