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

Issue with types completion #1755

Open
mlrv opened this issue Apr 25, 2020 · 1 comment
Open

Issue with types completion #1755

mlrv opened this issue Apr 25, 2020 · 1 comment

Comments

@mlrv
Copy link

mlrv commented Apr 25, 2020

I've set up HIE to work alongside coc.nvim, everything seems to work pretty well together, with the exception of autocompletion for type signatures.

A picture is probably worth a thousand words in this case...

image

Other than that, everything else seems to work fine.

This is the relevant part of my CocConfig.

{
  "signature": {
    "target": "echo"
  },
  "languageserver": {
    "haskell": {
      "command": "hie-wrapper",
      "args": ["--lsp"],
      "rootPatterns": [
        "stack.yaml",
        "cabal.config",
        "package.yaml"
      ],
      "filetypes": [
        "hs",
        "lhs",
        "haskell"
      ],
      "initializationOptions": {
        "languageServerHaskell": {
          "hlintOn": true
        }
      }
    }
  }
}

Output of hie--version

Version 1.3, Git revision 6dc7d4302b3dd644163a318d66a2cebd29e37b0b (dirty) (3880 commits) x86_64 ghc-8.8.3

Output of ghc --version

The Glorious Glasgow Haskell Compilation System, version 8.8.3

Output of stack --version

Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2

Output of :CocCommand workspace.showOutput

2020-04-25 17:49:46.391079 [ThreadId 4] - run entered for hie-wrapper(hie-wrapper) Version 1.3, Git revision 6dc7d4302b3dd644163a318d66a2cebd29e37b0b (dirty) (3880 commits) x86_64 ghc-8.8.3
2020-04-25 17:49:46.391662 [ThreadId 4] - Current directory:/Users/marco/dev/fun
2020-04-25 17:49:46.391693 [ThreadId 4] - Operating system:darwin
2020-04-25 17:49:46.391717 [ThreadId 4] - args:["--lsp"]
2020-04-25 17:49:46.393141 [ThreadId 4] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "/Users/marco/dev/fun/stack.yaml"}
2020-04-25 17:49:46.393182 [ThreadId 4] - Module "/Users/marco/dev/fun/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/marco/dev/fun", cradleOptsProg = CradleAction: Other Stack}
2020-04-25 17:49:46.395293 [ThreadId 4] - Cradle directory:/Users/marco/dev/fun
2020-04-25 17:49:46.395437 [ThreadId 4] - Executing Stack GHC with args: --numeric-version
2020-04-25 17:49:46.627889 [ThreadId 4] - Project GHC version:8.8.3
2020-04-25 17:49:46.627966 [ThreadId 4] - hie exe candidates :["hie-8.8.3","hie-8.8","hie"]
2020-04-25 17:49:46.628472 [ThreadId 4] - found hie exe at:/Users/marco/.local/bin/hie-8.8.3
2020-04-25 17:49:46.628513 [ThreadId 4] - args:["--lsp"]
2020-04-25 17:49:46.628543 [ThreadId 4] - launching ....



2020-04-25 17:49:46.6483 [ThreadId 4] - Run entered for HIE(hie-8.8.3) Version 1.3, Git revision 6dc7d4302b3dd644163a318d66a2cebd29e37b0b (dirty) (3880 commits) x86_64 ghc-8.8.3
2020-04-25 17:49:46.648929 [ThreadId 4] - Operating as a LSP server on stdio
2020-04-25 17:49:46.648962 [ThreadId 4] - Current directory:/Users/marco/dev/fun
2020-04-25 17:49:46.648986 [ThreadId 4] - Operating system:darwin
2020-04-25 17:49:46.649008 [ThreadId 4] - args:["--lsp"]
2020-04-25 17:49:46.68197 [ThreadId 4] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "/Users/marco/dev/fun/stack.yaml"}
2020-04-25 17:49:46.682031 [ThreadId 4] - Module "/Users/marco/dev/fun/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/marco/dev/fun", cradleOptsProg = CradleAction: Other Stack}
2020-04-25 17:49:46.682158 [ThreadId 4] - Executing Stack GHC with args: --numeric-version
2020-04-25 17:49:46.920337 [ThreadId 9] - Executing Stack GHC with args: --print-libdir
Using hie version: Version 1.3, Git revision 6dc7d4302b3dd644163a318d66a2cebd29e37b0b (dirty) (3880 commits) x86_64 ghc-8.8.3
2020-04-25 17:49:47.182671 [ThreadId 15] - New cradle: /Users/marco/dev/fun/src/Lib.hs
2020-04-25 17:49:47.184251 [ThreadId 15] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "/Users/marco/dev/fun/stack.yaml"}
2020-04-25 17:49:47.184299 [ThreadId 15] - Module "/Users/marco/dev/fun/src/Lib.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/marco/dev/fun", cradleOptsProg = CradleAction: Other Stack}
2020-04-25 17:49:47.184338 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/Users/marco/dev/fun", cradleOptsProg = CradleAction: Other Stack}
Using hoogle db at: /Users/marco/.hoogle/default-haskell-5.0.17.hoo
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
fun> configure (lib + exe)
Configuring fun-0.1.0.0...
2020-04-25 17:49:49.996416 [ThreadId 20] - Cradle set succesfully
@Ja-rek
Copy link

Ja-rek commented May 3, 2020

I have similar problem. neoclide/coc.nvim#1845

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants