Skip to content
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

test suite fails: src/IDE/Utils/CabalPlan.hs:37 fails (pjCabalVersion = "1.24.0.0", pjCabalLibVersion = "1.24.0.0", pjCompilerId = Nothing, pjOS = Nothing, pjArch = Nothing}) missing #15

Open
flokli opened this issue Oct 28, 2017 · 0 comments

Comments

@flokli
Copy link

flokli commented Oct 28, 2017

I tried building leksah-server-0.16.2.0 on NixOS. However, it seems like

Preprocessing library leksah-server-0.16.2.0...
[ 1 of 18] Compiling Paths_leksah_server ( dist/build/autogen/Paths_leksah_server.hs, dist/build/Paths_leksah_server.o )
[ 2 of 18] Compiling IDE.Utils.Utils  ( src/IDE/Utils/Utils.hs, dist/build/IDE/Utils/Utils.o )
[ 3 of 18] Compiling IDE.Utils.Tool   ( src/IDE/Utils/Tool.hs, dist/build/IDE/Utils/Tool.o )
[ 4 of 18] Compiling IDE.Utils.VersionUtils ( src/IDE/Utils/VersionUtils.hs, dist/build/IDE/Utils/VersionUtils.o )
[ 5 of 18] Compiling IDE.Utils.Server ( src/IDE/Utils/Server.hs, dist/build/IDE/Utils/Server.o )
[ 6 of 18] Compiling IDE.Utils.CabalProject ( src/IDE/Utils/CabalProject.hs, dist/build/IDE/Utils/CabalProject.o )
[ 7 of 18] Compiling IDE.Utils.CabalPlan ( src/IDE/Utils/CabalPlan.hs, dist/build/IDE/Utils/CabalPlan.o )
[ 8 of 18] Compiling IDE.Core.CTypes  ( src/IDE/Core/CTypes.hs, dist/build/IDE/Core/CTypes.o )
[ 9 of 18] Compiling IDE.Core.Serializable ( src/IDE/Core/Serializable.hs, dist/build/IDE/Core/Serializable.o )
[10 of 18] Compiling IDE.StrippedPrefs ( src/IDE/StrippedPrefs.hs, dist/build/IDE/StrippedPrefs.o )
[11 of 18] Compiling IDE.Utils.FileUtils ( src/IDE/Utils/FileUtils.hs, dist/build/IDE/Utils/FileUtils.o )
[12 of 18] Compiling IDE.Metainfo.SourceDB ( src/IDE/Metainfo/SourceDB.hs, dist/build/IDE/Metainfo/SourceDB.o )
[13 of 18] Compiling IDE.Utils.GHCUtils ( src/IDE/Utils/GHCUtils.hs, dist/build/IDE/Utils/GHCUtils.o )
[14 of 18] Compiling IDE.HeaderParser ( src/IDE/HeaderParser.hs, dist/build/IDE/HeaderParser.o )
[15 of 18] Compiling IDE.Metainfo.InterfaceCollector ( src/IDE/Metainfo/InterfaceCollector.hs, dist/build/IDE/Metainfo/InterfaceCollector.o )

src/IDE/Metainfo/InterfaceCollector.hs:27:1-45: warning: [-Wdodgy-imports]
    Module ‘Module’ does not export ‘PackageKey’
[16 of 18] Compiling IDE.Metainfo.WorkspaceCollector ( src/IDE/Metainfo/WorkspaceCollector.hs, dist/build/IDE/Metainfo/WorkspaceCollector.o )

src/IDE/Metainfo/WorkspaceCollector.hs:43:1-60: warning: [-Wdodgy-imports]
    Module ‘GHC’ does not export ‘PackageKey’
[17 of 18] Compiling IDE.Metainfo.SourceCollectorH ( src/IDE/Metainfo/SourceCollectorH.hs, dist/build/IDE/Metainfo/SourceCollectorH.o )
[18 of 18] Compiling IDE.Metainfo.PackageCollector ( src/IDE/Metainfo/PackageCollector.hs, dist/build/IDE/Metainfo/PackageCollector.o )
Preprocessing executable 'leksah-server' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/Collector.hs, dist/build/leksah-server/leksah-server-tmp/Main.dyn_o )
Linking dist/build/leksah-server/leksah-server ...
Preprocessing executable 'leksahecho' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/LeksahEcho.hs, dist/build/leksahecho/leksahecho-tmp/Main.dyn_o )
Linking dist/build/leksahecho/leksahecho ...
Preprocessing executable 'leksahtrue' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/LeksahTrue.hs, dist/build/leksahtrue/leksahtrue-tmp/Main.dyn_o )
Linking dist/build/leksahtrue/leksahtrue ...
Preprocessing test suite 'test-tool' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( tests/TestTool.hs, dist/build/test-tool/test-tool-tmp/Main.dyn_o )

tests/TestTool.hs:(24,1)-(26,17): warning: [-Wunused-imports]
    The import of ‘toolProcess’
    from module ‘IDE.Utils.Tool’ is redundant

tests/TestTool.hs:27:1-67: warning: [-Wunused-imports]
    The import of ‘System.Process’ is redundant
      except perhaps to import instances from ‘System.Process’
    To import instances alone, use: import System.Process()

tests/TestTool.hs:(28,1)-(30,50): warning: [-Wunused-imports]
    The import of ‘@=?, Test, assertBool, runTestTT’
    from module ‘Test.HUnit’ is redundant

tests/TestTool.hs:(34,1)-(35,61): warning: [-Wunused-imports]
    The import of ‘forkIO, threadDelay’
    from module ‘Control.Concurrent’ is redundant

tests/TestTool.hs:37:1-28: warning: [-Wunused-imports]
    The import of ‘Control.Monad’ is redundant
      except perhaps to import instances from ‘Control.Monad’
    To import instances alone, use: import Control.Monad()

tests/TestTool.hs:(38,1)-(39,53): warning: [-Wunused-imports]
    The import of ‘System.Log.Logger’ is redundant
      except perhaps to import instances from ‘System.Log.Logger’
    To import instances alone, use: import System.Log.Logger()

tests/TestTool.hs:40:1-32: warning: [-Wunused-imports]
    The import of ‘System.Log’ is redundant
      except perhaps to import instances from ‘System.Log’
    To import instances alone, use: import System.Log()

tests/TestTool.hs:46:1-5: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      check :: [ToolOutput] -> [ToolOutput] -> IO ()

tests/TestTool.hs:56:1-8: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      runTests :: GHC.MVar.MVar (Maybe (IO a)) -> IO ()

tests/TestTool.hs:61:18-21: warning: [-Wname-shadowing]
    This binding for ‘test’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:30:28-39
      (and originally defined in ‘Test.HUnit.Base’)

tests/TestTool.hs:62:17-20: warning: [-Wunused-do-bind]
    A do-notation statement discarded a result of type ‘a’
    Suppress this warning by saying ‘_ <- test’

tests/TestTool.hs:66:1-8: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      sendTest :: Control.Monad.IO.Class.MonadIO m =>
                  GHC.MVar.MVar (Maybe a) -> a -> m ()

tests/TestTool.hs:66:19-22: warning: [-Wname-shadowing]
    This binding for ‘test’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:30:28-39
      (and originally defined in ‘Test.HUnit.Base’)

tests/TestTool.hs:69:1-11: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      doneTesting :: Control.Monad.IO.Class.MonadIO m =>
                     GHC.MVar.MVar (Maybe a) -> m ()

tests/TestTool.hs:72:1-5: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: tests :: String -> Test

tests/TestTool.hs:236:30-37: warning: [-Wname-shadowing]
    This binding for ‘failures’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:29:40-49
      (and originally defined in ‘Test.HUnit.Base’)
Linking dist/build/test-tool/test-tool ...
running tests
Running 1 test suites...
Test suite test-tool: RUNNING...
### Failure in src/IDE/Utils/CabalPlan.hs:37: expression `:{
  eitherDecodeStrict' (BS.pack
    "{\
    \   \"cabal-lib-version\" : \"1.24.0.0\",\
    \   \"cabal-version\" : \"1.24.0.0\",\
    \   \"install-plan\" : [\
    \      {\
    \         \"type\" : \"pre-existing\",\
    \         \"components\" : {\
    \            \"lib\" : {\
    \               \"depends\" : [\
    \                  \"array-0.5.1.1\",\
    \                  \"base-4.9.0.0\"\
    \               ]\
    \            }\
    \         },\
    \         \"id\" : \"Cabal-1.24.0.0\"\
    \      },\
    \      {\
    \         \"id\" : \"QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602\",\
    \         \"components\" : {\
    \            \"lib\" : {\
    \               \"depends\" : [\
    \                  \"base-4.9.0.0\",\
    \                  \"containers-0.5.7.1\",\
    \                  \"random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454\"\
    \               ]\
    \            }\
    \         },\
    \         \"flags\" : {\
    \            \"templatehaskell\" : true\
    \         },\
    \         \"type\" : \"configured\"\
    \      }\
    \   ]\
    \}") :: Either String PlanJson
:}'
expected: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}]})
 but got: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}], pjCabalVersion = "1.24.0.0", pjCabalLibVersion = "1.24.0.0", pjCompilerId = Nothing, pjOS = Nothing, pjArch = Nothing})
Examples: 6  Tried: 6  Errors: 0  Failures: 1
Test suite test-tool: FAIL
Test suite logged to: dist/test/leksah-server-0.16.2.0-test-tool.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for ‘/nix/store/gw5p2lh6hs29jy33n4w6v8xj12a1m951-leksah-server-0.16.2.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/p3x80a1f0q52isff9xaj1kyifp5fcxc4-ghc-8.0.2-with-packages.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/9d2gqrsp90x6a1hjxm9apm9xzjg2yxbp-leksah.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/9d2gqrsp90x6a1hjxm9apm9xzjg2yxbp-leksah.drv’ failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant