Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1655 by using platform-correct path handling for relative imports
This fixes an issue which showed up on Windows in 0.17.x where the VSCode Python extension passes paths which have their drive letter normalised to lower case. Since paths are (mostly) case insensitive on Windows, that shouldn't matter. However Jedi's handling was `==` on `str`s, meaning that completions based on relative imports on windows didn't work. On master this same issue had started appearing due to the partial migration to use `Path` instead of `str` (which will avoid such issues entirely once complete), as `Path` instances were being compared to `str` instances without first converting. We fix both by clarifying which is used here and then doing the proper conversions.
- Loading branch information
1 parent
216f976
commit cbb9954
Showing
4 changed files
with
132 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def do_nothing_file3(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters