atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

CabalHelper error #131

Closed cnd closed 8 years ago

cnd commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.0-beta0 System: Microsoft Windows 10 Pro Thrown From: haskell-ghc-mod package, v1.11.4

Stack Trace

Haskell-ghc-mod: ghc-mod command check failed with error code 1

At caps: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true,"typeConstraints":false,"browseParents":false,"interactiveCaseSplit":false}
URI: F:\P\thridparty\M\Weatherman\src\Weatherman.hs
Args: --
message: [2 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )

[3 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )

[4 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )

[5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )

CabalHelper\Main.hs:217:43:

    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:231:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'

    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:239:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:253:33:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: IO [String]
      Actual type: IO (GhcOptions -> [String])
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'
    In a stmt of a 'do' block:
      Just . ChResponseList <$> renderGhcOptions' lbi v res'

CabalHelper\Main.hs:253:57:
    Couldn't match expected type `Distribution.System.Platform'
                with actual type `GhcOptions'
    In the third argument of renderGhcOptions', namely res'
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'

CabalHelper\Main.hs:263:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:355:59:
    Couldn't match type `GhcOptions'
                   with `Distribution.System.Platform'
    Expected type: LocalBuildInfo
                   -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
      Actual type: LocalBuildInfo
                   -> Verbosity
                   -> Distribution.System.Platform
                   -> IO (GhcOptions -> [String])
    In the fourth argument of componentOptions', namely
      renderGhcOptions'
    In the expression:
      componentOptions'
        (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f

ghc-mod: readCreateProcess: C:\Users\Rainbow\AppData\Roaming\cabal\cabal-helper-0.6.3.1-4vkbb4RkODNBe7ug5EAXSc\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "F:\\P\\thridparty\\M\\Weatherman" "F:\\P\\thridparty\\M\\Weatherman\\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

log:
-2.601s: Trying to run ghc-modi in F:\P\thridparty\M\Weatherman
-2.599s: Failed. Falling back to ghc-mod
-2.599s: running ghc-mod info,F:\P\thridparty\M\Weatherman\src\Weatherman.hs,--, with options.cwd = F:\P\thridparty\M\Weatherman,options.env = [object Object],options.encoding = utf-8
-2.276s: ghc-mod said: [1 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )
-1.861s: ghc-mod said: [2 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )
-1.755s: ghc-mod said: [3 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )
-1.677s: ghc-mod said: [4 of 5] Compiling CabalHelper.Licenses ( CabalHelper\Licenses.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Licenses.o )
-1.662s: running ghc-mod check,F:\P\thridparty\M\Weatherman\src\Weatherman.hs,-- with options.cwd = F:\P\thridparty\M\Weatherman,options.env = [object Object],options.encoding = utf-8
-1.656s: running ghc-mod lint,F:\P\thridparty\M\Weatherman\src\Weatherman.hs,-- with options.cwd = F:\P\thridparty\M\Weatherman,options.env = [object Object],options.encoding = utf-8
-1.649s: Main did-save triggered
-1.649s: Main updating
-1.649s: running ghc-mod browse,-d,--,Main with options.cwd = F:\P\thridparty\M\Weatherman,options.env = [object Object],options.encoding = utf-8
-1.537s: ghc-mod said: [5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )
-1.464s: ghc-mod ended with code 0
-1.243s: ghc-mod said: [2 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )
-1.239s: ghc-mod said: [2 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )
-1.211s: ghc-mod said: 
-1.211s: ghc-mod said: CabalHelper\Main.hs:217:43:
-1.211s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-1.211s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-1.211s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-1.211s: ghc-mod said:     In the first argument of `(++)', namely `res'
-1.211s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-1.211s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-1.211s: ghc-mod said: 
-1.211s: ghc-mod said: CabalHelper\Main.hs:231:43:
-1.211s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-1.211s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-1.211s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-1.211s: ghc-mod said:     In the first argument of `(++)', namely `res'
-1.211s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-1.211s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-1.211s: ghc-mod said: 
-1.211s: ghc-mod said: CabalHelper\Main.hs:239:43:
-1.211s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-1.211s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-1.211s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-1.211s: ghc-mod said:     In the first argument of `(++)', namely `res'
-1.21s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-1.21s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-1.21s: ghc-mod said: 
-1.21s: ghc-mod said: CabalHelper\Main.hs:253:33:
-1.21s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-1.21s: ghc-mod said:     Expected type: IO [String]
-1.21s: ghc-mod said:       Actual type: IO (GhcOptions -> [String])
-1.21s: ghc-mod said:     In the second argument of `(<$>)', namely
-1.21s: ghc-mod said:       renderGhcOptions' lbi v res'
-1.21s: ghc-mod said:     In a stmt of a 'do' block:
-1.21s: ghc-mod said:       Just . ChResponseList <$> renderGhcOptions' lbi v res'
-1.21s: ghc-mod said: 
-1.21s: ghc-mod said: CabalHelper\Main.hs:253:57:
-1.21s: ghc-mod said:     Couldn't match expected type `Distribution.System.Platform'
-1.21s: ghc-mod said:                 with actual type `GhcOptions'
-1.21s: ghc-mod said:     In the third argument of renderGhcOptions', namely res'
-1.21s: ghc-mod said:     In the second argument of `(<$>)', namely
-1.21s: ghc-mod said:       renderGhcOptions' lbi v res'
-1.21s: ghc-mod said: 
-1.21s: ghc-mod said: CabalHelper\Main.hs:263:43:
-1.21s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-1.21s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-1.21s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-1.21s: ghc-mod said:     In the first argument of `(++)', namely `res'
-1.21s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-1.21s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-1.21s: ghc-mod said: 
-1.21s: ghc-mod said: CabalHelper\Main.hs:355:59:
-1.21s: ghc-mod said:     Couldn't match type `GhcOptions'
-1.21s: ghc-mod said:                    with `Distribution.System.Platform'
-1.21s: ghc-mod said:     Expected type: LocalBuildInfo
-1.21s: ghc-mod said:                    -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
-1.21s: ghc-mod said:       Actual type: LocalBuildInfo
-1.21s: ghc-mod said:                    -> Verbosity
-1.21s: ghc-mod said:                    -> Distribution.System.Platform
-1.209s: ghc-mod said:                    -> IO (GhcOptions -> [String])
-1.209s: ghc-mod said:     In the fourth argument of componentOptions', namely
-1.209s: ghc-mod said:       renderGhcOptions'
-1.209s: ghc-mod said:     In the expression:
-1.209s: ghc-mod said:       componentOptions'
-1.209s: ghc-mod said:         (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f
-1.184s: ghc-mod said: EXCEPTION: info:
-1.182s: ghc-mod said:                readCreateProcess: C:\Users\Rainbow\AppData\Roaming\cabal\cabal-helper-0.6.3.1-4vkbb4RkODNBe7ug5EAXSc\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "F:\\P\\thridparty\\M\\Weatherman" "F:\\P\\thridparty\\M\\Weatherman\\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
-1.177s: ghc-mod ended with code 0
-1.176s: Trying to run ghc-modi in F:\P\thridparty\M\Weatherman
-1.176s: Failed. Falling back to ghc-mod
-1.176s: running ghc-mod type,F:\P\thridparty\M\Weatherman\src\Weatherman.hs,--,45,24 with options.cwd = F:\P\thridparty\M\Weatherman,options.env = [object Object],options.encoding = utf-8
-0.814s: ghc-mod said: [3 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )
-0.695s: ghc-mod said: [2 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )
-0.662s: ghc-mod said: [4 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )
-0.606s: ghc-mod said: [5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )
-0.574s: ghc-mod said: [3 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )
-0.502s: ghc-mod said: [3 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )
-0.439s: ghc-mod said: [4 of 5] Compiling CabalHelper.Licenses ( CabalHelper\Licenses.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Licenses.o )
-0.416s: ghc-mod said: [4 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )
-0.357s: ghc-mod said: [5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )
-0.341s: ghc-mod said: [5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )
-0.294s: ghc-mod said: 
-0.294s: ghc-mod said: CabalHelper\Main.hs:217:43:
-0.294s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.294s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.294s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.294s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.294s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.294s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.294s: ghc-mod said: 
-0.294s: ghc-mod said: CabalHelper\Main.hs:231:43:
-0.294s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.294s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.294s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.294s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.294s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.294s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.294s: ghc-mod said: 
-0.293s: ghc-mod said: CabalHelper\Main.hs:239:43:
-0.293s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.293s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.293s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.293s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.293s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.293s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.293s: ghc-mod said: 
-0.293s: ghc-mod said: CabalHelper\Main.hs:253:33:
-0.293s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.293s: ghc-mod said:     Expected type: IO [String]
-0.293s: ghc-mod said:       Actual type: IO (GhcOptions -> [String])
-0.293s: ghc-mod said:     In the second argument of `(<$>)', namely
-0.293s: ghc-mod said:       renderGhcOptions' lbi v res'
-0.293s: ghc-mod said:     In a stmt of a 'do' block:
-0.293s: ghc-mod said:       Just . ChResponseList <$> renderGhcOptions' lbi v res'
-0.293s: ghc-mod said: 
-0.293s: ghc-mod said: CabalHelper\Main.hs:253:57:
-0.293s: ghc-mod said:     Couldn't match expected type `Distribution.System.Platform'
-0.293s: ghc-mod said:                 with actual type `GhcOptions'
-0.293s: ghc-mod said:     In the third argument of renderGhcOptions', namely res'
-0.293s: ghc-mod said:     In the second argument of `(<$>)', namely
-0.293s: ghc-mod said:       renderGhcOptions' lbi v res'
-0.293s: ghc-mod said: 
-0.292s: ghc-mod said: CabalHelper\Main.hs:263:43:
-0.292s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.292s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.292s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.292s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.292s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.292s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.292s: ghc-mod said: 
-0.292s: ghc-mod said: CabalHelper\Main.hs:355:59:
-0.292s: ghc-mod said:     Couldn't match type `GhcOptions'
-0.292s: ghc-mod said:                    with `Distribution.System.Platform'
-0.291s: ghc-mod said:     Expected type: LocalBuildInfo
-0.291s: ghc-mod said:                    -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
-0.291s: ghc-mod said:       Actual type: LocalBuildInfo
-0.291s: ghc-mod said:                    -> Verbosity
-0.291s: ghc-mod said:                    -> Distribution.System.Platform
-0.291s: ghc-mod said:                    -> IO (GhcOptions -> [String])
-0.291s: ghc-mod said:     In the fourth argument of componentOptions', namely
-0.291s: ghc-mod said:       renderGhcOptions'
-0.291s: ghc-mod said:     In the expression:
-0.291s: ghc-mod said:       componentOptions'
-0.291s: ghc-mod said:         (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f
-0.036s: ghc-mod said: 
-0.036s: ghc-mod said: CabalHelper\Main.hs:217:43:
-0.036s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.035s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.035s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.035s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.035s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.035s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.035s: ghc-mod said: 
-0.035s: ghc-mod said: CabalHelper\Main.hs:231:43:
-0.035s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.035s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.035s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.035s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.035s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.035s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.035s: ghc-mod said: 
-0.035s: ghc-mod said: CabalHelper\Main.hs:239:43:
-0.035s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.035s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.035s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.035s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.035s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.034s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.034s: ghc-mod said: 
-0.034s: ghc-mod said: CabalHelper\Main.hs:253:33:
-0.034s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.034s: ghc-mod said:     Expected type: IO [String]
-0.034s: ghc-mod said:       Actual type: IO (GhcOptions -> [String])
-0.034s: ghc-mod said:     In the second argument of `(<$>)', namely
-0.034s: ghc-mod said:       renderGhcOptions' lbi v res'
-0.034s: ghc-mod said:     In a stmt of a 'do' block:
-0.034s: ghc-mod said:       Just . ChResponseList <$> renderGhcOptions' lbi v res'
-0.034s: ghc-mod said: 
-0.034s: ghc-mod said: CabalHelper\Main.hs:253:57:
-0.034s: ghc-mod said:     Couldn't match expected type `Distribution.System.Platform'
-0.034s: ghc-mod said:                 with actual type `GhcOptions'
-0.034s: ghc-mod said:     In the third argument of renderGhcOptions', namely res'
-0.034s: ghc-mod said:     In the second argument of `(<$>)', namely
-0.034s: ghc-mod said:       renderGhcOptions' lbi v res'
-0.034s: ghc-mod said: 
-0.034s: ghc-mod said: CabalHelper\Main.hs:263:43:
-0.034s: ghc-mod said:     Couldn't match type `GhcOptions -> [String]' with `[String]'
-0.034s: ghc-mod said:     Expected type: [(ChComponentName, [String])]
-0.034s: ghc-mod said:       Actual type: [(ChComponentName, GhcOptions -> [String])]
-0.034s: ghc-mod said:     In the first argument of `(++)', namely `res'
-0.033s: ghc-mod said:     In the first argument of `ChResponseCompList', namely
-0.033s: ghc-mod said:       `(res ++ [(ChSetupHsName, [])])'
-0.033s: ghc-mod said: 
-0.033s: ghc-mod said: CabalHelper\Main.hs:355:59:
-0.033s: ghc-mod said:     Couldn't match type `GhcOptions'
-0.033s: ghc-mod said:                    with `Distribution.System.Platform'
-0.033s: ghc-mod said:     Expected type: LocalBuildInfo
-0.033s: ghc-mod said:                    -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
-0.033s: ghc-mod said:       Actual type: LocalBuildInfo
-0.033s: ghc-mod said:                    -> Verbosity
-0.033s: ghc-mod said:                    -> Distribution.System.Platform
-0.033s: ghc-mod said:                    -> IO (GhcOptions -> [String])
-0.033s: ghc-mod said:     In the fourth argument of componentOptions', namely
-0.033s: ghc-mod said:       renderGhcOptions'
-0.033s: ghc-mod said:     In the expression:
-0.033s: ghc-mod said:       componentOptions'
-0.033s: ghc-mod said:         (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f
-0.006s: ghc-mod said: ghc-mod: readCreateProcess: C:\Users\Rainbow\AppData\Roaming\cabal\cabal-helper-0.6.3.1-4vkbb4RkODNBe7ug5EAXSc\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "F:\\P\\thridparty\\M\\Weatherman" "F:\\P\\thridparty\\M\\Weatherman\\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
0s: ghc-mod ended with code 1
0s: code 1: [2 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )

[3 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )

[4 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )

[5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )

CabalHelper\Main.hs:217:43:

    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:231:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'

    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:239:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:253:33:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: IO [String]
      Actual type: IO (GhcOptions -> [String])
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'
    In a stmt of a 'do' block:
      Just . ChResponseList <$> renderGhcOptions' lbi v res'

CabalHelper\Main.hs:253:57:
    Couldn't match expected type `Distribution.System.Platform'
                with actual type `GhcOptions'
    In the third argument of renderGhcOptions', namely res'
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'

CabalHelper\Main.hs:263:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:355:59:
    Couldn't match type `GhcOptions'
                   with `Distribution.System.Platform'
    Expected type: LocalBuildInfo
                   -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
      Actual type: LocalBuildInfo
                   -> Verbosity
                   -> Distribution.System.Platform
                   -> IO (GhcOptions -> [String])
    In the fourth argument of componentOptions', namely
      renderGhcOptions'
    In the expression:
      componentOptions'
        (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f

ghc-mod: readCreateProcess: C:\Users\Rainbow\AppData\Roaming\cabal\cabal-helper-0.6.3.1-4vkbb4RkODNBe7ug5EAXSc\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "F:\\P\\thridparty\\M\\Weatherman" "F:\\P\\thridparty\\M\\Weatherman\\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

code 1: [2 of 5] Compiling CabalHelper.Types ( CabalHelper\Types.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Types.o )

[3 of 5] Compiling CabalHelper.Common ( CabalHelper\Common.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Common.o )

[4 of 5] Compiling CabalHelper.Sandbox ( CabalHelper\Sandbox.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\CabalHelper\Sandbox.o )

[5 of 5] Compiling Main             ( CabalHelper\Main.hs, C:\Users\Rainbow\AppData\Roaming\ghc-mod\cabal-helper\Main.o )

CabalHelper\Main.hs:217:43:

    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:231:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'

    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:239:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:253:33:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: IO [String]
      Actual type: IO (GhcOptions -> [String])
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'
    In a stmt of a 'do' block:
      Just . ChResponseList <$> renderGhcOptions' lbi v res'

CabalHelper\Main.hs:253:57:
    Couldn't match expected type `Distribution.System.Platform'
                with actual type `GhcOptions'
    In the third argument of renderGhcOptions', namely res'
    In the second argument of `(<$>)', namely
      renderGhcOptions' lbi v res'

CabalHelper\Main.hs:263:43:
    Couldn't match type `GhcOptions -> [String]' with `[String]'
    Expected type: [(ChComponentName, [String])]
      Actual type: [(ChComponentName, GhcOptions -> [String])]
    In the first argument of `(++)', namely `res'
    In the first argument of `ChResponseCompList', namely
      `(res ++ [(ChSetupHsName, [])])'

CabalHelper\Main.hs:355:59:
    Couldn't match type `GhcOptions'
                   with `Distribution.System.Platform'
    Expected type: LocalBuildInfo
                   -> Verbosity -> GhcOptions -> IO (GhcOptions -> [String])
      Actual type: LocalBuildInfo
                   -> Verbosity
                   -> Distribution.System.Platform
                   -> IO (GhcOptions -> [String])
    In the fourth argument of componentOptions', namely
      renderGhcOptions'
    In the expression:
      componentOptions'
        (lbi, v, distdir) inplaceFlag flags renderGhcOptions' f

ghc-mod: readCreateProcess: C:\Users\Rainbow\AppData\Roaming\cabal\cabal-helper-0.6.3.1-4vkbb4RkODNBe7ug5EAXSc\cabal-helper-wrapper.exe "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "F:\\P\\thridparty\\M\\Weatherman" "F:\\P\\thridparty\\M\\Weatherman\\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

    at module.exports.Util.mkError (file:///C:/Users/Rainbow/.atom/packages/haskell-ghc-mod/lib/util.coffee:171:15)
    at BufferedProcess.exit (file:///C:/Users/Rainbow/.atom/packages/haskell-ghc-mod/lib/ghc-mod/ghc-modi-process-real.coffee:124:20)
    at triggerExitCallback (C:\Users\Rainbow\AppData\Local\atom\app-1.7.0-beta0\resources\app.asar\src\buffered-process.js:215:47)
    at ChildProcess.<anonymous> (C:\Users\Rainbow\AppData\Local\atom\app-1.7.0-beta0\resources\app.asar\src\buffered-process.js:237:18)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Commands

     -0:04.7.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "enableGhcModi": false
  }
}

Installed Packages

# User
autocomplete-haskell, v0.6.3
haskell-ghc-mod, v1.11.4
haskell-pointfree, v0.1.3
haskell-unicode-snippets, v0.1.1
ide-haskell, v1.5.4
ide-haskell-cabal, v1.1.0
ide-haskell-hasktags, v0.0.3
language-haskell, v1.7.5
minimap, v4.21.0

# Dev
No dev packages

(experimental flag is disabled)

F:>ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.3

F:>ghc-mod --version ghc-mod version 5.5.0.0 compiled by GHC 7.10.3

F:>cabal --version cabal-install version 1.25.0.0 compiled using version 1.25.0.0 of the Cabal library

lierdakil commented 8 years ago

Okay, I don't think cabal-helper works with Cabal-1.25. master could work with 1.24 (at least there are recent commits related to that). In any case, I don't think I can do anything here.

cnd commented 8 years ago

@lierdakil aha, thanks for pointing real problem