Stuck on CPP include #1295
Labels
component: hls-eval-plugin
status: needs info
Not actionable, because there's missing information
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
$ haskell-language-server-wrapper --probe-tools haskell-language-server version: 0.9.0.0 (GHC: 8.10.1) (PATH: /home/viluon/.ghcup/bin/haskell-language-server-wrapper-0.9.0) (GIT hash: 46d2a3dc7ef49ba57b2706022af1801149ab3f2b) Tool versions found on the $PATH cabal: 3.2.0.0 stack: 2.5.1 ghc: 8.6.5
Which lsp-client do you use: VS Code
Describe your project (alternative: link to the project): GHC 8.10.2
Contents of
hie.yaml
:Steps to reproduce
Open any
.hs
file with a CPP#include
, such asghc/GHCi/UI.hs
,compiler/main/InteractiveEval.hs
, orlibraries/containers/containers/src/Data/Map.hs
.Expected behaviour
The HLS processes the file, reporting lints.
Actual behaviour
The HLS reports a single error complaining about the non-existence of the included file and gives up further analysis.

Files without CPP includes do not trigger this kind of faulty behaviour:

The logs also mention a match error (see the attached debug information):
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
The first 512 lines are here:
The archive hls-debug.txt.zip contains the result of running the requested command for half an hour. It seems to scale dreadfully with the number of Haskell sources in the project and doesn't contain useful information, so I'm not willing to let it finish. I can provide logs for a more specific command invocation upon request.
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The following is the VS Code log displayed via the "Developer: Show Logs…" command:
And here is the log file saved with the Log File configuration option of the Haskell VS Code extension (Trace: Server = messages).
The text was updated successfully, but these errors were encountered: