-
-
Notifications
You must be signed in to change notification settings - Fork 389
Unable to get code completion or other lsp features - stuck type checking the files #1624
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
This is what I get when running haskell-language-server in the projects top directory:
When I run it on a different system the output continues past that. |
Hi, thanks for the bug report, the output is strange, the process find one file to process in the test but it does not get typechecked. |
The process get stuck on the 4th step with no more output. ghcide gives the same output as haskell language server. I do not get code completion after installing language-haskell and atom-ide-ui on Atom. |
I was running this inside VirtualBox, and after doing some elimination, I found that switching from 1 processor to 4 solved the issue on my end. Thanks for the help. |
Ah, perhaps #727. Can we check the number of capabilities and give an error if it's 1? |
Ok i am gonna close it as duplicate of #727, i've copied the comment with the last suggestion there |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which lsp-client do you use:
Doom Emacs
Describe your project (alternative: link to the project):
Contents of cabal file:
Steps to reproduce
After setting up haskell language server and lsp-haskell for emacs, I still get no completion.
Expected behaviour
I expect code completion as well as other lsp features.
Actual behaviour
No code completion is given.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output: haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /home/ben/.local/bin/haskell-language-server) (GIT hash: 8dbeae1) ghcide setup tester in /home/ben/Documents/haskell/Everything-Manager. Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /home/ben/Documents/haskell/Everything-Manager
Found 6 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
2021-03-26 17:52:59.383441561 [ThreadId 4] DEBUG hls: Set files of interest to: [(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Setup.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Lib/EverythingManager.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/install.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/test/TestEverythingManager.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Main.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Lib/Connection.hs",OnDisk)]
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs: https://gist.github.com/F15Ky/69e242397f60575147460afe9262c7f8
The text was updated successfully, but these errors were encountered: