-
-
Notifications
You must be signed in to change notification settings - Fork 391
Completions not show up after typing a few lines #2149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for the bug report, i dont see any error in the output log but i am not sure if it is set to trace level. Could you execute the server with |
I run server with
|
I tried some editors. Here are results:
I don't know if hls has problem or coc.nvim has problem ,but I tried vim inside a container with newly installed vim and coc, so I think the problem isn't caused by other vim extension. |
It seems that HLS stops responding after typing some text. And when completion stops, HLS often reports a parse error on the beginning of the line.I think the parse error is caused by partial input. |
Git bisect shows that 9c40dcf is the first commit to have this issue. |
I found that almost every time HLS stops working, it reports a error input file: module DataAbstract.Set.UnordListDuplicate where
import DataAbstract.Set.UnorderedList (elementOfSet, intersection, mkSet)
newtype Name x = Name x der
adjoin :: (Eq a) => a -> [a] -> [a]
adjoin x s = x : s
union :: (Eq a) => [a] -> [a] -> [a]
union = (++)
{-
1. adjoin and union become more effiecient, but elementOfSet become slower
2. When there many adjoins and unions
-}
lsp logs before error:
|
I found neovim doesn't has that issue. Sorry for disturbing. |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 1.0.0.0 (GHC: 8.8.4) (PATH: /home/aplqo/.local/bin/haskell-language-server) (GIT hash: 4cd1cf934638881e52b3eba9f70157a4b799c0e9) Tool versions found on the $PATH cabal: 3.0.0.0 stack: Not found ghc: 8.8.4
Which OS do you use: Debian bullseye
Which lsp-client do you use: vim with coc
Describe your project (alternative: link to the project): single file or cabal
Contents of
hie.yaml
:Steps to reproduce
Create a blank file then type code.
Expected behaviour
Completion shows up while typing
Actual behaviour
Completion stop showing up after typing a few lines. But coc with hls 0.9.0 or vscode with hls 1.3.0 don’t have that problem.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
1.0.0 log
0.9.0 log
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: