This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Conversation
This file contains 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
pepeiborra
force-pushed
the
ghc-check-rebased
branch
from
June 6, 2020 19:09
084a099
to
400f04f
Compare
this needs rerunning as the Windows build seems to have crashed |
cocreature
approved these changes
Jun 10, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you! Looks like there is a conflict in `Main.hs that needs to be resolved.
There are a couple of cases to handle as seen below. Thanks @jneira for help discovering them all. There used to be linking errors but I no longer see those after the multi-cradle patch Non Nix ========= The table below shows a couple of combinations of cradles and ghcide versions in a non-Nix environment. All the version mismatches are now handled as follows: - "Cannot satisfy package" - `-package-id` flags referencing package versions not available (generally base) - "bad interface" - tried to load an interface file created by a different version of ghc cradle/ghcide | 8.6 | 8.8 | 8.10 --------------|-----|----|--- Cabal 8.6 | success | cannot satisfy package | cannot satisfy package Cabal 8.8 | cannot satisfy package | success | cannot satisfy package Cabal 8.10 | cannot satisfy package | cannot satisfy package | success Stack 8.6 | success | bad-interface | bad-interfac- Stack 8.8 | bad-interface | success | bad-interface Stack 8.10 | bad-interface | bad-interface | success Nix ========= Because Nix redefines the libdir to point at the run-time ghc installation, it's actually much easier to detect a version mismatch: just compare the compile-time and run-time libdirs
pepeiborra
force-pushed
the
ghc-check-rebased
branch
from
June 10, 2020 11:30
400f04f
to
0893418
Compare
Rebased and resolved |
pepeiborra
added a commit
to pepeiborra/ide
that referenced
this pull request
Dec 29, 2020
There are a couple of cases to handle as seen below. Thanks @jneira for help discovering them all. There used to be linking errors but I no longer see those after the multi-cradle patch Non Nix ========= The table below shows a couple of combinations of cradles and ghcide versions in a non-Nix environment. All the version mismatches are now handled as follows: - "Cannot satisfy package" - `-package-id` flags referencing package versions not available (generally base) - "bad interface" - tried to load an interface file created by a different version of ghc cradle/ghcide | 8.6 | 8.8 | 8.10 --------------|-----|----|--- Cabal 8.6 | success | cannot satisfy package | cannot satisfy package Cabal 8.8 | cannot satisfy package | success | cannot satisfy package Cabal 8.10 | cannot satisfy package | cannot satisfy package | success Stack 8.6 | success | bad-interface | bad-interfac- Stack 8.8 | bad-interface | success | bad-interface Stack 8.10 | bad-interface | bad-interface | success Nix ========= Because Nix redefines the libdir to point at the run-time ghc installation, it's actually much easier to detect a version mismatch: just compare the compile-time and run-time libdirs
pepeiborra
added a commit
to pepeiborra/ide
that referenced
this pull request
Dec 29, 2020
There are a couple of cases to handle as seen below. Thanks @jneira for help discovering them all. There used to be linking errors but I no longer see those after the multi-cradle patch Non Nix ========= The table below shows a couple of combinations of cradles and ghcide versions in a non-Nix environment. All the version mismatches are now handled as follows: - "Cannot satisfy package" - `-package-id` flags referencing package versions not available (generally base) - "bad interface" - tried to load an interface file created by a different version of ghc cradle/ghcide | 8.6 | 8.8 | 8.10 --------------|-----|----|--- Cabal 8.6 | success | cannot satisfy package | cannot satisfy package Cabal 8.8 | cannot satisfy package | success | cannot satisfy package Cabal 8.10 | cannot satisfy package | cannot satisfy package | success Stack 8.6 | success | bad-interface | bad-interfac- Stack 8.8 | bad-interface | success | bad-interface Stack 8.10 | bad-interface | bad-interface | success Nix ========= Because Nix redefines the libdir to point at the run-time ghc installation, it's actually much easier to detect a version mismatch: just compare the compile-time and run-time libdirs
pepeiborra
added a commit
to pepeiborra/ide
that referenced
this pull request
Dec 29, 2020
There are a couple of cases to handle as seen below. Thanks @jneira for help discovering them all. There used to be linking errors but I no longer see those after the multi-cradle patch Non Nix ========= The table below shows a couple of combinations of cradles and ghcide versions in a non-Nix environment. All the version mismatches are now handled as follows: - "Cannot satisfy package" - `-package-id` flags referencing package versions not available (generally base) - "bad interface" - tried to load an interface file created by a different version of ghc cradle/ghcide | 8.6 | 8.8 | 8.10 --------------|-----|----|--- Cabal 8.6 | success | cannot satisfy package | cannot satisfy package Cabal 8.8 | cannot satisfy package | success | cannot satisfy package Cabal 8.10 | cannot satisfy package | cannot satisfy package | success Stack 8.6 | success | bad-interface | bad-interfac- Stack 8.8 | bad-interface | success | bad-interface Stack 8.10 | bad-interface | bad-interface | success Nix ========= Because Nix redefines the libdir to point at the run-time ghc installation, it's actually much easier to detect a version mismatch: just compare the compile-time and run-time libdirs
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
There are a couple of error cases to handle as seen below.
Thanks @jneira for help discovering them all.
There used to be linking errors but I no longer see those after the multi-cradle patch
Non Nix
The table below shows a couple of combinations of cradles and ghcide versions in a
non-Nix environment. All the version mismatches are now handled as follows:
-package-id
flags referencingpackage versions not available (generally base)
Nix
Because Nix redefines the libdir to point at the run-time ghc installation,
it's actually much easier to detect a version mismatch:
just compare the compile-time and run-time libdirs
Notes for reviewers
Ignore whitespace for a much smaller diff