-
Notifications
You must be signed in to change notification settings - Fork 56
Location.relativePath to use None
value if rel path is not available #85
#86
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
Location.relativePath to use None
value if rel path is not available #85
#86
Conversation
f41e8b4
to
2b65f8a
Compare
2b65f8a
to
ef9ad63
Compare
I am wondering, did you find this bug due to a crash? |
Yeah, was doing tests with multilspy and when I used |
I think this is good to merge, but also, is there any way we could try to test this functionality, in such a manner that it fails without this change? |
It is possible but it has system requirements - test can be only performed on Windows, since on Unix We can add a test for |
Got an idea for a test using |
Okay, I guess even this kind of test only would work on Windows as from pathlib import PurePath
path = "C:/test.py"
path = PurePath(path)
print(path) # C:\test.py
# prints "" on unix and "C:" on windows
print(repr(path.drive)) |
I think it is okay to skip this test. You can undo the testfile, and we can proceed with merge! |
6dc9dec
to
ef9ad63
Compare
Removed the test. |
Thanks a lot for the PR @Andrej730 |
No description provided.