ghc-mod
ghc-mod copied to clipboard
master branch has 21 test failures on Windows
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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed)
test\CabalHelperSpec.hs:73:
3) CabalHelper.getComponents extracts build dependencies
uncaught exception: IOException of type OtherError (readCreateProcess: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed)
test\CheckSpec.hs:39:
7) Check.checkSyntax works with modules using PatternSynonyms
uncaught exception: IOException of type OtherError (readCreateProcess: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed)
test\CheckSpec.hs:64:
9) Check.checkSyntax works with cabal builtin preprocessors
uncaught exception: IOException of type OtherError (readCreateProcess: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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-mod1316868\\File1147829358.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\\71c8e9f1\\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: C:\stack\snapshots\cd07658e\libexec\x86_64-windows-ghc-8.0.2/cabal-helper-0.7.3.0\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" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (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 1360251585
Finished in 320.1383 seconds
97 examples, 21 failures