Language server returns empty array when invoking textDocument/completion
#71
Labels
performance
Issues about memory consumption, responsiveness, etc.
Hi there 👋
I’m using Emacs 27 and
lsp-haskell
for Haskell dev. Though many ofhaskell-language-server
’s features work great, including in-buffer syntax checking and code actions, it runs into problems when attempting to invokecompany-complete
. As soon as I do so, Emacs goes unresponsive (despite these requests allegedly running asynchronously), only to return no results, displayinglsp: []
in the buffer. Examininglsp-log
shows thattextDocument/completion
requests are returning no information:In contrast, using
hie-wrapper
instead ofhaskell-language-server-wrapper
returns all relevant completions.I’m using GHC 8.8.3, and
haskell-language-server
off of the master branch.I had a tough time deciding where to file this bug -
haskell-lsp
,company-lsp
, orhaskell-language-server
. I settled on this repository becausehaskell-ide-engine
handles this case correctly.Here is the hie.yaml I’m using in this repository:
And here is the relevant section of my Emacs configuration, in case I’m doing something obviously wrong here:
Please let me know if there’s any more information I can provide, and thank you for your work on this project: it’s impossible to overstate the impact that powerful, reliable editor integration will have on all who learn and use Haskell.
The text was updated successfully, but these errors were encountered: