Skip to content
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

Fix platformAwareUriToFilePath for empty paths #107

Merged
merged 1 commit into from Aug 1, 2018
Merged

Fix platformAwareUriToFilePath for empty paths #107

merged 1 commit into from Aug 1, 2018

Conversation

Anrock
Copy link
Contributor

@Anrock Anrock commented Aug 1, 2018

This PR makes platformAdjustFromUriPath act as id for empty paths.

Ref haskell/haskell-ide-engine#713
Some tests in test/unit/JsonSpec fail when empty strings are passed to platformAwareUriToFilePath, then splitDirectories return empty list which then fails to pattern match on firstSegment:rest.

I'm not sure if empty string is a valid value for srcPath or property tests should be altered to produce non-empty strings, though.

@Anrock
Copy link
Contributor Author

Anrock commented Aug 1, 2018

@bubba fyi

@alanz alanz merged commit 15874cf into haskell:master Aug 1, 2018
@Anrock Anrock deleted the platformAdjustFromUriPath-empty-paths branch August 2, 2018 11:54
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.

None yet

2 participants