Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

LSP fails with VSCode (installed from marketplace) #315

@xldenis

Description

@xldenis

Hey!

I just tried installing the extension from the marketplace (I saw the issue for that was recently closed). However whenever I open it up I get this error

[1 of 5] Compiling CabalHelper.Common ( CabalHelper/Common.hs, /Users/xavier/.ghc-mod/cabal-helper/CabalHelper/Common.o )
[2 of 5] Compiling CabalHelper.Licenses ( CabalHelper/Licenses.hs, /Users/xavier/.ghc-mod/cabal-helper/CabalHelper/Licenses.o )

CabalHelper/Licenses.hs:56:8: error:
    • Expecting one more argument to ‘CPackageIndex ModuleName’
      Expected a type, but ‘CPackageIndex ModuleName’ has kind ‘* -> *’
    • In the type signature:
        findTransitiveDependencies :: CPackageIndex ModuleName
                                      -> Set CInstalledPackageId -> Set CInstalledPackageId
   |
56 |     :: CPackageIndex Distribution.ModuleName.ModuleName
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/xavier/.stack/snapshots/x86_64-osx/nightly-2017-06-16/8.0.2/libexec/x86_64-osx-ghc-8.0.2/cabal-helper-0.7.3.0/cabal-helper-wrapper "--with-ghc=/Users/xavier/.stack/programs/x86_64-osx/ghc-8.2.1/bin/ghc" "--with-ghc-pkg=/Users/xavier/.stack/programs/x86_64-osx/ghc-8.2.1/bin/ghc-pkg" "--with-cabal=cabal" "/Users/xavier/Code/xldenis/misc" "/Users/xavier/Code/xldenis/misc/.stack-work/dist/x86_64-osx/Cabal-2.0.0.2" "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"

It's not clear why it's building cabal-helper nor why it's failing? I was able to run stack install cabal-helper without any issues so idk what it's doing there?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions