You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
Failures:
test\BrowseSpec.hs:33:
1) Browse, `browse' in a project directory, can list symbols defined in a a local module
[] does not contain ["foo"]
test\CabalHelperSpec.hs:52:
2) CabalHelper.getComponents handles sandboxes correctly
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CabalHelperSpec.hs:73:
3) CabalHelper.getComponents extracts build dependencies
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CabalHelperSpec.hs:80:
4) CabalHelper.getComponents uses non default flags and preserves them across reconfigures
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-flags" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-flags\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:16:
5) Check.checkSyntax works even if an executable depends on the library defined in the same cabal file
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\ghc-mod-check" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\ghc-mod-check\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:22:
6) Check.checkSyntax works even if a module imports another module from a different directory
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\check-test-subdir" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\check-test-subdir\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:39:
7) Check.checkSyntax works with modules using PatternSynonyms
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\pattern-synonyms" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\pattern-synonyms\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:51:
8) Check.checkSyntax, when no errors are found, doesn't output an empty line
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\ghc-mod-check" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\ghc-mod-check\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:64:
9) Check.checkSyntax works with cabal builtin preprocessors
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-preprocessors" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-preprocessors\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\CheckSpec.hs:75:
10) Check.checkSyntax Uses the right qualification style
expected: "NiceQualification.hs:4:8:\8226 Couldn't match expected type \8216IO ()\8217 with actual type \8216[Char]\8217\NUL\8226 In the expression: \"wrong type\"\NUL In an equation for \8216main\8217: main = \"wrong type\"\n"
but got: "NiceQualification.hs:4:8:* Couldn't match expected type `IO ()' with actual type `[Char]'\NUL* In the expression: \"wrong type\"\NUL In an equation for `main': main = \"wrong type\"\n"
test\CradleSpec.hs:49:
11) Cradle.findCradle finds a cabal file and a sandbox
expected: "test/data/cabal-project/subdir1/subdir2"
but got: "test\\data\\cabal-project\\subdir1\\subdir2"
test\CustomPackageDbSpec.hs:27:
12) CustomPackageDb.getPackageDbStack' fixes out of sync custom pkg-db stack
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\custom-cradle" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\custom-cradle\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\FileMappingSpec.hs:84:
13) FileMapping.withMappedFile checks if there is an in-memory file and calls and action with temporary file
uncaught exception: IOException of type PermissionDenied (removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "C:\\Users\\varosi\\AppData\\Local\\Temp\\ghc-mod1138224\\File1138224-3.hs": permission denied (The process cannot access the file because it is being used by another process.))
test\FindSpec.hs:11:
14) Find, db <- loadSymbolDb, lookupSymbol' db "head" contains at least `Data.List'
uncaught exception: GhcModError (GMEProcess "readProcessStderrChan" "D:\\Projects\\Hackage\\ghc-mod\\.stack-work\\install\\9d660cc9\\bin\\ghc-mod" ["--verbose","error","dumpsym"] (Left 1))
test\GhcPkgSpec.hs:15:
15) GhcPkg.getPackageDbStack' fixes out of sync custom pkg-db stack
uncaught exception: IOException of type OtherError (readCreateProcess: D:\Projects\Hackage\ghc-mod\.stack-work\install\9d660cc9\libexec\x86_64-windows-ghc-8.2.2\cabal-helper-0.8.0.2\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\custom-cradle" "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\custom-cradle\\dist" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed)
test\InfoSpec.hs:24:
16) Info.types shows types of the expression and its outers
expected: "9 5 11 40 \"Int -> t -> t -> t\"\n7 1 11 40 \"Int -> Integer\"\n"
but got: ""
test\InfoSpec.hs:34:
17) Info.types shows types of the expression with constraints and its outers
expected: "9 5 11 40 \"Num t => Int -> t -> t -> t\"\n7 1 11 40 \"Int -> Integer\"\n"
but got: ""
test\PathsAndFilesSpec.hs:17:
18) PathsAndFiles.getSandboxDb can parse a config file and extract the sandbox package-db
uncaught exception: IOException of type UserError (user error (Pattern match failure in do expression at test\PathsAndFilesSpec.hs:20:13-19))
test\PathsAndFilesSpec.hs:44:
19) PathsAndFiles.findCabalSandboxDir works
expected: Just "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project"
but got: Nothing
test\PathsAndFilesSpec.hs:48:
20) PathsAndFiles.findCabalSandboxDir finds sandboxes in parent directories
expected: Just "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\cabal-project"
but got: Nothing
test\TargetSpec.hs:47:
21) Target.resolveModule Works when a module given as path uses CPP
expected: Just (ModulePath {mpModule = ModuleName "Cpp", mpPath = "D:\\Projects\\Hackage\\ghc-mod\\test/data/target/Cpp.hs"})
but got: Just (ModulePath {mpModule = ModuleName "Cpp", mpPath = "D:\\Projects\\Hackage\\ghc-mod\\test\\data\\target\\Cpp.hs"})
Randomized with seed 1314851384
Finished in 473.5676 seconds
97 examples, 21 failures
Ok, all the additional failures seem to be related to cabal-helper-wrapper exiting with exit code=1. Does the executable actually exist at the path referenced in the output? Could you try running it by hand and seeing if it returns something sane?
For example, in a directory with a cabal project, after running cabal configure, the following should return the package name and version:
The "." refers to the cabal project directory and the "dist" is the path to the dist-dir. You can give absolute paths there instead of cding into the project directory first if you like.
hm, strange. I'm using Stack to build it and it cannot be found:
D:\Projects\Hackage\ghc-mod>stack build cabal-helper --copy-compiler-tool --stack-yaml stack82.yaml
Warning (added by new or init): Some packages were found to be incompatible with the resolver and have been left commented out in the packages section.
You can omit this message by removing it from stack.yaml
Related #900
The text was updated successfully, but these errors were encountered: