Skip to content

Better reporting of failing to build dependencies #710

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

Closed
domenkozar opened this issue Sep 18, 2019 · 7 comments
Closed

Better reporting of failing to build dependencies #710

domenkozar opened this issue Sep 18, 2019 · 7 comments
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: enhancement New feature or request

Comments

@domenkozar
Copy link
Contributor

ghcide reports in the editor:

<command line>: cannot satisfy -package warp-systemd-0.1.0.0
    (use -v for more information)

while the terminal is saying:

$ stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for warp-systemd-0.1.0.0:
    base-4.12.0.0 from stack configuration does not match >=4.9 && <4.10  (latest matching version is 4.9.1.0)
    network-2.8.0.1 from stack configuration does not match >=2.6.3.0 && <2.7  (latest matching version is 2.6.3.6)
needed due to cachix-server-0.1.0.0 -> warp-systemd-0.1.0.0

Some different approaches to resolving this:
@cocreature
Copy link
Contributor

What does stack ghci show you? I expect that the issue is probably in that and I’m not sure there is much we can do about this.

@domenkozar
Copy link
Contributor Author

I'll retest once haskell/ghcide#50 is fixed

@sloane-shark
Copy link

Running into a similar issue using cabal-install:

Starting ghcide (GHC v8.6)
/Users/mess/Development/pynchon
[1/6] Finding hie-bios cradle
Cradle {cradleRootDir = "/Users/mess/Development/pynchon", cradleOptsProg = CradleAction: cabal}

[2/6] Converting Cradle to GHC session
ghcide: <command line>: cannot satisfy -package-id relude-0.5.0-IilVdiUKSDE6mRqTfZAX48
    (use -v for more information)

Confusingly, cabal new-repl and cabal new-build complete fine. I am trying to use ghcide via ghcide-nix inside of a haskell.nix environment. Relude is my only dependency.

@ndmitchell
Copy link
Collaborator

Seems like it's up to hie-bios to capture whatever happens and throw it back in the exception?

@matthewess I think your issue is quite different - the one from @domenkozar seems to be about the error message, whereas yours seems to be setup (which I assume is a Cabal vs Nix fight?).

@sloane-shark
Copy link

sloane-shark commented Sep 23, 2019 via email

@jneira
Copy link
Member

jneira commented Sep 15, 2020

Afaik the state of things about build errors reporting has not improved since this. 😟

@jneira jneira transferred this issue from haskell/ghcide Dec 29, 2020
@jneira jneira added component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: enhancement New feature or request labels Dec 29, 2020
@jneira
Copy link
Member

jneira commented Jan 22, 2021

As there is a new issue about this, oriented to the recommended server, hls, i am gonna close this one

@jneira jneira closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants