Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle windows paths in workspace.get_uri_like + test#87

Merged
gatesn merged 4 commits intopalantir:developpalantir/python-language-server:developfrom
tomv564:fix_uri_like_windowstomv564/python-language-server:fix_uri_like_windowsCopy head branch name to clipboard
Aug 7, 2017
Merged

Handle windows paths in workspace.get_uri_like + test#87
gatesn merged 4 commits intopalantir:developpalantir/python-language-server:developfrom
tomv564:fix_uri_like_windowstomv564/python-language-server:fix_uri_like_windowsCopy head branch name to clipboard

Conversation

@tomv564
Copy link
Contributor

@tomv564 tomv564 commented Aug 7, 2017

Fix for #85 where windows paths were not prefixed and converted to forward slashes

Copy link
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catches here. One thing I'd say, is do we need to url quote the path we use in the uri_like function? I know it's not part of this Pr but may as well slip it in

@tomv564
Copy link
Contributor Author

tomv564 commented Aug 7, 2017

Sounds like a good idea, I'll add quoting.
It will try to (unnecessarily) encode the : in /D:/myfile which I'd like to avoid.
I couldn't find any reason why module_path is sometimes None, please let me know if my assumption was correct!

unicode objects.
"""
parts = list(urlparse(doc_uri))
if path[0] != '/': # fix path for windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add and ':' in path just to make sure we don't throw on the next line

Copy link
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gatesn gatesn merged commit a78885d into palantir:develop Aug 7, 2017
@tomv564 tomv564 deleted the fix_uri_like_windows branch October 24, 2017 19:38
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.