Accept the legacy "languageServerHaskell" config name#243
Merged
lukel97 merged 2 commits intohaskell:masterfrom Jul 27, 2020
Merged
Accept the legacy "languageServerHaskell" config name#243lukel97 merged 2 commits intohaskell:masterfrom
lukel97 merged 2 commits intohaskell:masterfrom
Conversation
This also requires a bump to lsp-test to fix a test, and drops the trick that the wrapper tests used to find the wrapper executable since it was just confusing
4d0b201 to
405bbc0
Compare
Need to read in those test results as a file, since the CPP preprocessor trips on those multiline strings Also use @?= instead of `shouldBe`, since the exception thrown by it gets caught by tasty and is pretty printed
405bbc0 to
95560b1
Compare
Collaborator
Author
|
I have a feeling the CircleCI tests are failing because of some .stack-work/cache issue, which I can't seem to invalidate the cache for anyway. The tests are passing locally anyway and this is a pretty important fix, so merging anyway |
This was referenced Jul 28, 2020
Closed
Closed
pepeiborra
pushed a commit
that referenced
this pull request
Dec 27, 2020
The bug was caused by broken transitivity of the comparison function used to sort spans. Nested spans were meant to be sorted in innermost-first order, with the first (innermost) one being used to get type information about the symbol at a given position. Because the comparison function considered any two non-nested spans to be EQ, the sort could incorrectly conclude (by transitivity) that two nested spans were equal, and thus leave them in incorrect relative order. This resulted in the innermost span sometimes not appearing at the front of the list of spans which enclose a given point, and hover reporting the type of a bigger expression in which the point appeared. The solution imposes ordering on non-nested spans by comparing their starting positions, thus fixing transitivity. Fixes #237 (... probably along with a bunch of other little bugs caused by the same mistake).
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This also requires a bump to lsp-test to fix a test, and drops the
trick that the wrapper tests used to find the wrapper executable since
it was just confusing