Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Fix Binary instance of Q to handle empty file paths #707

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

cocreature
Copy link
Collaborator

No description provided.

@cocreature cocreature requested a review from aherrmann-da July 24, 2020 13:39
@cocreature cocreature merged commit 6a72d99 into master Jul 24, 2020
@cocreature cocreature deleted the binary-instance branch July 24, 2020 14:47
put (Q (k, fp)) = put (k, fp)
get = do
(k, fp) <- get
-- The `get` implementation of NormalizedFilePath
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we not fix this upstream? Would be good to either have a link to the issue tracking it, or some more detailed explanation of why it's never possible to fix upstream.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Upstream doesn’t want to allow empty filepaths since they’re technically not URLs (at least that was the result last time this came up). I did open haskell/lsp#249 but it doesn’t fix it since the conversion from filepaths to URIs doesn’t work on empty file paths so while it decodes the filepath correctly it cannot convert it.

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants