Open hasufell opened 4 years ago
Correction: it doesn't happen for all functions, but for some. Seems especially with stuff in prelude.
Have you manually built documentation with either Haddock or Hoogle? Otherwise documentation will only be available for libraries that ship with GHC.
If you're using cabal 3 to build your project, then rebuilding after running cabal configure --enable-documentation
should do the job.
There is some discussion about hie
managing this automatically at #1285.
Have you manually built documentation with either Haddock or Hoogle?
Yes.
If you're using cabal 3 to build your project, then rebuilding after running
cabal configure --enable-documentation
should do the job
That is already enabled in cabal.project.
As I said. Documentation shows up in auto-complete, not in hover. That looks like a straight bug to me.
Can not reprodoce with vscode.
Can not reprodoce with vscode.
I tried in vscode, same.
After some more testing, I think it might be related to the documentation not being built. However, it's confusing that the autocomplete still shows it, isn't it?
I agree, it is definitely weird
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:
Completion request: