This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 207
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Hover doesn't show documentation for some functions #1567
Copy link
Copy link
Open
Labels
Description
https://files.gitter.im/neoclide/coc.nvim/dyC6/Screenshot_2020-01-08_22-19-03.png
https://files.gitter.im/neoclide/coc.nvim/dyC6/Screenshot_2020-01-08_22-19-18.png
But the completion does, which sends a different request (don't know which). The hover request indeed does not return any documentation:
[Trace - 10:27:10 PM] Sending request 'textDocument/hover - (748)'.
Params: {
"textDocument": {
"uri": "file:///home/jule/git/hpath/hpath-io/src/HPath/IO.hs"
},
"position": {
"line": 444,
"character": 18
}
}
[Trace - 10:27:10 PM] Received response 'textDocument/hover - (748)' in 2ms.
Result: {
"contents": {
"kind": "markdown",
"value": "\n```haskell\nuserError :: String -> IOError\n```\n```haskell\nuserError :: String -> IOError\n```\n\n\n\nbase GHC.IO.Exception"
},
"range": {
"start": {
"line": 444,
"character": 14
},
"end": {
"line": 444,
"character": 23
}
}
}
Completion request:
[Trace - 10:42:42 PM] Sending request 'completionItem/resolve - (868)'.
Params: {
"insertText": "userError",
"kind": 3,
"data": {
"name_details": [
"GHC.IO.Exception",
"base",
"v",
"userError"
],
"hoogle_query": "userError module:Prelude is:exact"
},
"insertTextFormat": 1,
"label": "userError",
"detail": "Prelude"
}
[Trace - 10:42:42 PM] Received response 'completionItem/resolve - (868)' in 12ms.
Result: {
"insertText": "userError ${1:String}",
"kind": 3,
"data": {
"name_details": [
"GHC.IO.Exception",
"base",
"v",
"userError"
],
"hoogle_query": "userError module:Prelude is:exact"
},
"insertTextFormat": 2,
"documentation": {
"kind": "markdown",
"value": "```haskell\nuserError :: String -> IOError\n```\nConstruct an `IOError` value with a string describing the error.\nThe `fail` method of the `IO` instance of the `Monad`\nclass raises a `userError`, thus:\n\n```haskell\n\ninstance Monad IO where\n...\nfail s = ioError (userError s)\n```\n\n[More info](https://hackage.haskell.org/package/base/docs/Prelude.html#v:userError)"
},
"label": "userError",
"detail": "String -> IOError\nPrelude"
}