Running haskell-language-server (or the included ghcide binary) just stops before checking any source files.
e.g. within the haskell-language-server directory:
> ln -s hie.yaml.stack hie.yaml
> haskell-language-server
ghcide version: 0.1.0.0 (GHC: 8.6.5) (PATH: /home/phil/.local/bin/haskell-language-server) (GIT hash: 019b02831595b6a3be6776bfc56060ab918876e7)
(haskell-language-server)Ghcide setup tester in /home/phil/projects/hackage/haskell-language-server.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/6: Finding files to test in /home/phil/projects/hackage/haskell-language-server
Found 97 files
Step 2/6: Looking for hie.yaml files that control setup
Found 2 cradles
Step 3/6: Initializing the IDE
Step 4/6: Type checking the files
The same happens when I run ghcide:
> ghcide ghcide version: 0.1.0 (GHC: 8.6.5) (PATH: /home/phil/.local/bin/ghcide) (GIT hash: )
Ghcide setup tester in /home/phil/projects/hackage/haskell-language-server.
Report bugs at https://github.com/digital-asset/ghcide/issues
Step 1/6: Finding files to test in /home/phil/projects/hackage/haskell-language-server
Found 97 files
Step 2/6: Looking for hie.yaml files that control setup
Found 2 cradles
Step 3/6: Initializing the IDE
[DEBUG] Warning: Client does not support watched files. Falling back to OS polling
Step 4/6: Type checking the files
[DEBUG] Set files of interest to: [NormalizedFilePath "/home/phil/projects/hackage/haskell-language-server/ghcide/src/Development/IDE/Core/FileStore.hs"
<...snip...>
This is on NixOs, but I installed haskell-lanaguage-server just by stack install without any configuration changes.
Should maybe add that both return with exit code 0.
I've got exactly the same symptoms. ghc-8.8.3 on Ubuntu 16.04.
This is the first time I've tried to use hls, and I get the same response from every project I've tried running it on.
Willing to provide more details, but I'm not sure what's relevant.
@Philonous You have problems with just executing the executable, right?
@georgefst You want to use it as a lsp server? You need to pass the --lsp flag to the executable to start it as a lsp-server.
That's correct. I'm executing the haskell-language-server and ghcide binaries in the root of the project without any additional arguments. (I'm not trying to run them as language servers)
Can reproduce, i think the code to actually typecheck the files is commented out:
Most helpful comment
Can reproduce, i think the code to actually typecheck the files is commented out:
https://github.com/haskell/haskell-language-server/blob/6ddefac2a4e410c62b9652e1fb338bc34becad66/exe/Main.hs#L226-L228