Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Improve quality and information density of error message #1522

Merged
merged 9 commits into from
Jan 5, 2020

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Dec 29, 2019

Fixes #1509
Improves amount of information the error message gives.
Also aims to give: possible solutions, and teaching material.

@fendor fendor requested a review from alanz January 1, 2020 21:09
@fendor fendor changed the title [WIP] Improve quality and information density of error message Improve quality and information density of error message Jan 1, 2020
@fendor
Copy link
Collaborator Author

fendor commented Jan 1, 2020

Example error message:

Fail on initialisation for "/home/baldr/Documents/haskell/fprog/src/Angabe6.hs".
Could not obtain flags for: "src/Angabe6.hs".

This Module was not part of any component we are aware of.

Component: ChLibName ChMainLibName with source directory: ["src"]
Component: ChExeName "intcode" with source directory: ["app"]


If you dont know how to expose a module, take a look at:
https://www.haskell.org/cabal/users-guide/developing-packages.html

We could not build all components.
If one of these components exposes this Module, make sure they compile.
You can try to invoke the commands yourself.
The following commands failed:

callProcessStderr: cabal v2-build --with-ghc=/home/baldr/.nix-profile/bin/ghc --with-ghc-pkg=/home/baldr/.nix-profile/bin/ghc-pkg --with-haddock=/home/baldr/.nix-profile/bin/haddock --project-file=/home/baldr/Documents/haskell/fprog/cabal.project --builddir=/home/baldr/Documents/haskell/fprog/dist-newstyle --only-configure fprog:exe:fprog (exit 1): failed

callProcessStderr: cabal v2-build --with-ghc=/home/baldr/.nix-profile/bin/ghc --with-ghc-pkg=/home/baldr/.nix-profile/bin/ghc-pkg --with-haddock=/home/baldr/.nix-profile/bin/haddock --project-file=/home/baldr/Documents/haskell/fprog/cabal.project --builddir=/home/baldr/Documents/haskell/fprog/dist-newstyle --only-configure fprog:test:fprog-test (exit 1): failed

src/Haskell/Ide/Engine/Server.hs Outdated Show resolved Hide resolved
hie-plugin-api/Haskell/Ide/Engine/Cradle.hs Outdated Show resolved Hide resolved
hie-plugin-api/Haskell/Ide/Engine/Cradle.hs Outdated Show resolved Hide resolved
@fendor fendor requested review from jneira and lukel97 January 4, 2020 14:52
@lukel97
Copy link
Collaborator

lukel97 commented Jan 5, 2020

This LGTM! Looking forward to having this in

@alanz alanz merged commit 3f64ea2 into haskell:master Jan 5, 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.

Give a reason why we could not obtain build flags
4 participants