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

Error installing hsdev on Ubuntu 18.04.3 using cabal #101

Open
nisargshah95 opened this issue Jan 23, 2020 · 1 comment
Open

Error installing hsdev on Ubuntu 18.04.3 using cabal #101

nisargshah95 opened this issue Jan 23, 2020 · 1 comment

Comments

@nisargshah95
Copy link

nisargshah95 commented Jan 23, 2020

I'm trying to install hsdev as part of installing SublimeHaskell plugin for SublimeText. I get a build failure when I try to install hsdev using cabal.

OS: Ubuntu 18.04.3

$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
$ cabal install hsdev
Resolving dependencies...
Configuring hsdev-0.3.3.6...
Building hsdev-0.3.3.6...
Failed to install hsdev-0.3.3.6
Build log ( /home/nisarg/.cabal/logs/hsdev-0.3.3.6.log ):
cabal: Entering directory '/tmp/cabal-tmp-23568/hsdev-0.3.3.6'
Configuring hsdev-0.3.3.6...
Building hsdev-0.3.3.6...
Preprocessing library hsdev-0.3.3.6...
[ 1 of 76] Compiling System.Directory.Paths ( src/System/Directory/Paths.hs, dist/build/System/Directory/Paths.o )
[ 2 of 76] Compiling HsDev.Version    ( src/HsDev/Version.hs, dist/build/HsDev/Version.o )
[ 3 of 76] Compiling HsDev.Util       ( src/HsDev/Util.hs, dist/build/HsDev/Util.o )
[ 4 of 76] Compiling System.Directory.Watcher ( src/System/Directory/Watcher.hs, dist/build/System/Directory/Watcher.o )

src/System/Directory/Watcher.hs:159:13: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In a case alternative: Patterns not matched: (FS.Unknown _ _ _)
[ 5 of 76] Compiling HsDev.Tools.Ghc.Prelude ( src/HsDev/Tools/Ghc/Prelude.hs, dist/build/HsDev/Tools/Ghc/Prelude.o )
[ 6 of 76] Compiling HsDev.Tools.Ghc.Compat ( src/HsDev/Tools/Ghc/Compat.hs, dist/build/HsDev/Tools/Ghc/Compat.o )

src/HsDev/Tools/Ghc/Compat.hs:38:1: warning: [-Wunused-imports]
    The import of ‘TcRnDriver’ is redundant
      except perhaps to import instances from ‘TcRnDriver’
    To import instances alone, use: import TcRnDriver()
[ 7 of 76] Compiling HsDev.Tools.Ghc.MGhc ( src/HsDev/Tools/Ghc/MGhc.hs, dist/build/HsDev/Tools/Ghc/MGhc.o )

src/HsDev/Tools/Ghc/MGhc.hs:108:19: warning: [-Wname-shadowing]
    This binding for ‘onError’ shadows the existing binding
      imported from ‘Control.Monad.Catch’ at src/HsDev/Tools/Ghc/MGhc.hs:17:1-26
[ 8 of 76] Compiling HsDev.Tools.ClearImports ( src/HsDev/Tools/ClearImports.hs, dist/build/HsDev/Tools/ClearImports.o )
[ 9 of 76] Compiling HsDev.Symbols.Name ( src/HsDev/Symbols/Name.hs, dist/build/HsDev/Symbols/Name.o )
[10 of 76] Compiling HsDev.Project.Compat ( src/HsDev/Project/Compat.hs, dist/build/HsDev/Project/Compat.o )

src/HsDev/Project/Compat.hs:13:1: warning: [-Wunused-imports]
    The import of ‘Distribution.Text’ is redundant
      except perhaps to import instances from ‘Distribution.Text’
    To import instances alone, use: import Distribution.Text()
[11 of 76] Compiling HsDev.Display    ( src/HsDev/Display.hs, dist/build/HsDev/Display.o )
[12 of 76] Compiling HsDev.PackageDb.Types ( src/HsDev/PackageDb/Types.hs, dist/build/HsDev/PackageDb/Types.o )
[13 of 76] Compiling HsDev.Project.Types ( src/HsDev/Project/Types.hs, dist/build/HsDev/Project/Types.o )
[14 of 76] Compiling HsDev.Symbols.Location ( src/HsDev/Symbols/Location.hs, dist/build/HsDev/Symbols/Location.o )
[15 of 76] Compiling HsDev.Symbols.Class ( src/HsDev/Symbols/Class.hs, dist/build/HsDev/Symbols/Class.o )
[16 of 76] Compiling HsDev.Symbols.Documented ( src/HsDev/Symbols/Documented.hs, dist/build/HsDev/Symbols/Documented.o )
[17 of 76] Compiling HsDev.Symbols.Parsed ( src/HsDev/Symbols/Parsed.hs, dist/build/HsDev/Symbols/Parsed.o )
[18 of 76] Compiling HsDev.Tools.Refact ( src/HsDev/Tools/Refact.hs, dist/build/HsDev/Tools/Refact.o )
[19 of 76] Compiling HsDev.Tools.Types ( src/HsDev/Tools/Types.hs, dist/build/HsDev/Tools/Types.o )
[20 of 76] Compiling HsDev.Tools.Tabs ( src/HsDev/Tools/Tabs.hs, dist/build/HsDev/Tools/Tabs.o )
[21 of 76] Compiling HsDev.Types      ( src/HsDev/Types.hs, dist/build/HsDev/Types.o )
[22 of 76] Compiling HsDev.Error      ( src/HsDev/Error.hs, dist/build/HsDev/Error.o )
[23 of 76] Compiling HsDev.Project    ( src/HsDev/Project.hs, dist/build/HsDev/Project.o )

src/HsDev/Project.hs:112:52: error:
    Not in scope: ‘P.depPkgName’
    Perhaps you meant ‘P.pkgName’ (imported from Distribution.Package)
    Module ‘Distribution.Package’ does not export ‘depPkgName’.
cabal: Leaving directory '/tmp/cabal-tmp-23568/hsdev-0.3.3.6'
cabal: Error: some packages failed to install:
hsdev-0.3.3.6 failed during the building phase. The exception was:
ExitFailure 1
@nisargshah95
Copy link
Author

I get the same error with cabal 3.0.0.0. Any help would be appreciated.

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