Description
Your environment
Output of haskell-language-server --probe-tools
or haskell-language-server-wrapper --probe-tools
:
haskell-language-server version: 1.4.0.0 (GHC: 8.10.4) (PATH: /home/martin/.ghcup/bin/haskell-language-server-wrapper-1.4.0) (GIT hash: 253547816ee216c53ee7dacc0ad3cac43e863d30)
Tool versions found on the $PATH
cabal: 3.4.1.0
stack: 2.7.3
ghc: 8.10.7
Which OS do you use: ArchLinux
Which lsp-client do you use: emacs (spacemacs)
Describe your project (alternative: link to the project): https://github.com/Martinsos/quad-ci/tree/8a9095f5f83224cf0e59d33d0a1cec3a1b519945 -> very simple Stack project with only one source and one test file.
Contents of hie.yaml
: Doesn't exist
Steps to reproduce
Make some changes in src/
dir, e.g. change some type in src/Core.hs
.
Then, go to test/
dir and notice that no errors are reported by lsp, even if changes in src/
should break the code in test/
.
Try making the changes you know are needed -> you will get false errors by lsp, which is behaving as if code in src/
never changed.
Restarting lsp
does not help.
What does help is running stack build
and then restarting lsp
, now it works correctly (takes into account the latest code in src/).
Expected behaviour
When changes are made in src/
, lsp should be aware of that when analyzing code in test/
. Right now it does not and I have to run stack build
and restart lsp
for it to pick up the changes.
Actual behaviour
Explained above.
Include debug information
Execute in the root of your project the command haskell-language-server --debug .
and paste the logs here:
Debug output:
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.4.0.0, Git revision 253547816ee216c53ee7dacc0ad3cac43e863d30 (dirty) x86_64 ghc-8.10.4
Current directory: /home/martin/git/quad-ci
Operating system: linux
Arguments: ["--debug"]
Cradle directory: /home/martin/git/quad-ci
Cradle type: Stack
Tool versions found on the $PATH
cabal: 3.4.1.0
stack: 2.7.3
ghc: 8.10.7
Consulting the cradle to get project GHC version...
Project GHC version: 8.10.7
haskell-language-server exe candidates: ["haskell-language-server-8.10.7","haskell-language-server"]
Launching haskell-language-server exe at:/home/martin/.ghcup/bin/haskell-language-server-8.10.7
haskell-language-server version: 1.4.0.0 (GHC: 8.10.7) (PATH: /home/martin/.ghcup/bin/haskell-language-server-8.10.7~1.4.0) (GIT hash: 253547816ee216c53ee7dacc0ad3cac43e863d30)
ghcide setup tester in /home/martin/git/quad-ci.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /home/martin/git/quad-ci
Found 3 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()
Step 3/4: Initializing the IDE
2021-10-10 00:52:38.179267039 [ThreadId 7] DEBUG hls: Initializing exports map from hiedb
2021-10-10 00:52:38.196015288 [ThreadId 7] DEBUG hls: Done initializing exports map from hiedb (40)
Step 4/4: Type checking the files
2021-10-10 00:52:38.203424538 [ThreadId 54] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs"
2021-10-10 00:52:38.203443751 [ThreadId 52] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs"
2021-10-10 00:52:38.203449159 [ThreadId 53] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/test/Spec.hs"
2021-10-10 00:52:38.203620909 [ThreadId 58] INFO hls: Consulting the cradle for "app/Main.hs"
2021-10-10 00:52:38.203754867 [ThreadId 58] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for app/Main.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
Output from setting up the cradle Cradle {cradleRootDir = "/home/martin/git/quad-ci", cradleOptsProg = CradleAction: Stack}
2021-10-10 00:52:38.638916314 [ThreadId 67] INFO hie-bios: Using main module: 1. Package `quad' component quad:exe:quad with main-is file: /home/martin/git/quad-ci/app/Main.hs
2021-10-10 00:52:38.969070817 [ThreadId 67] INFO hie-bios: The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
2021-10-10 00:52:38.969150655 [ThreadId 67] INFO hie-bios: Configuring GHCi with the following packages: quad
2021-10-10 00:52:39.407921585 [ThreadId 77] INFO hie-bios: /home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d
2021-10-10 00:52:40.278411909 [ThreadId 58] DEBUG hls: Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/martin/git/quad-ci/.stack-work/odir","-hidir=/home/martin/git/quad-ci/.stack-work/odir","-hide-all-packages","-XBlockArguments","-XDeriveAnyClass","-XDeriveGeneric","-XLambdaCase","-XNoImplicitPrelude","-XOverloadedStrings","-XStrictData","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad","-i/home/martin/git/quad-ci/app","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad/autogen","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/global-autogen","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad/quad-tmp","-stubdir=/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-package-id=aeson-1.5.6.0-9TEv7CCsmtZ3h1ujpYipv9","-package-id=async-2.2.4-B4xxtVOPdOz6OKTj0mT3eQ","-package-id=base-4.14.3.0","-package-id=butcher-1.3.3.2-Bqd9xHaobKNGvMPuAXjzhR","-package-id=hslogger-1.3.1.0-DpPOq6fHVRNF2Pl1iJqiy0","-package-id=http-client-0.6.4.1-3vmmyhO32EcFXZy7fgT2VV","-package-id=http-conduit-2.3.8-GN8cc7adE9VWf61sMtjOY","-package-id=http-types-0.12.3-E1oA8uft96c5PHWwTqfwVU","-package-id=network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3","-package-id=quad-0.0.0-Ebk6LXJs43M917Ro8nsUzq","-package-id=record-hasfield-1.0-4LYHIn3Ao3w2P2wnBlk2Gk","-package-id=rio-0.1.21.0-BuITKMLGTUi3OvnrJxMWce","-package-id=scotty-0.12-AJXBMrMlNqD9mOWMxGn0sa","-package-id=serialise-0.2.3.0-JemLH8XlzbHJ6qO2IPp8d9","-package-id=stm-2.5.0.1","-package-id=time-1.9.3","-package-id=typed-process-0.2.6.3-AiN30QKnDPLKkes7vJuiym","-package-id=wai-cors-0.2.7-6LZiWS8DyHuG8QdjoOlzgT","-package-id=yaml-0.11.6.0-D4KHoGb6nrn9RhFfYYSIQJ","-F","-pgmF=record-dot-preprocessor","-rtsopts","-with-rtsopts=-N","-optP-include","-optP/home/martin/git/quad-ci/.stack-work/ghci/47301707/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/05829651/ghci-script","-package-db","/home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d"], componentRoot = "/home/martin/git/quad-ci", componentDependencies = ["quad.cabal","package.yaml","stack.yaml"]},"/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7")
2021-10-10 00:52:40.361728626 [ThreadId 58] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-b118457afd1d0434c23ae441d4279901773b1139
2021-10-10 00:52:40.361946225 [ThreadId 58] INFO hls: Making new HscEnv[main]
2021-10-10 00:52:40.372563413 [ThreadId 58] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 5),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:40.375221 [ThreadId 58] DEBUG hls: Known files updated: fromList [(TargetModule Paths_quad,fromList ["/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad/autogen/Paths_quad.hs"]),(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs",fromList ["/home/martin/git/quad-ci/app/Main.hs"])]
2021-10-10 00:52:40.375485454 [ThreadId 22] DEBUG hls: Finishing build session(exception: AsyncCancelled)
2021-10-10 00:52:40.375550095 [ThreadId 58] DEBUG hls: Restarting build session for keys [GhcSessionIO; ] (aborting the previous one took 0.00s)
2021-10-10 00:52:40.376754612 [ThreadId 113] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs"
2021-10-10 00:52:40.376763629 [ThreadId 125] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs"
2021-10-10 00:52:40.376778241 [ThreadId 115] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/test/Spec.hs"
2021-10-10 00:52:40.377713764 [ThreadId 139] INFO hls: Consulting the cradle for "src/Core.hs"
2021-10-10 00:52:40.377787867 [ThreadId 139] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for src/Core.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
Output from setting up the cradle Cradle {cradleRootDir = "/home/martin/git/quad-ci", cradleOptsProg = CradleAction: Stack}
2021-10-10 00:52:41.074227245 [ThreadId 178] INFO hie-bios: Configuring GHCi with the following packages: quad
2021-10-10 00:52:41.5093684 [ThreadId 260] INFO hie-bios: /home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d
2021-10-10 00:52:42.38429039 [ThreadId 139] DEBUG hls: Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/martin/git/quad-ci/.stack-work/odir","-hidir=/home/martin/git/quad-ci/.stack-work/odir","-hide-all-packages","-XBlockArguments","-XDeriveAnyClass","-XDeriveGeneric","-XLambdaCase","-XNoImplicitPrelude","-XOverloadedStrings","-XStrictData","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-i/home/martin/git/quad-ci/src","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/autogen","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/global-autogen","-stubdir=/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-package-id=aeson-1.5.6.0-9TEv7CCsmtZ3h1ujpYipv9","-package-id=async-2.2.4-B4xxtVOPdOz6OKTj0mT3eQ","-package-id=base-4.14.3.0","-package-id=butcher-1.3.3.2-Bqd9xHaobKNGvMPuAXjzhR","-package-id=hslogger-1.3.1.0-DpPOq6fHVRNF2Pl1iJqiy0","-package-id=http-client-0.6.4.1-3vmmyhO32EcFXZy7fgT2VV","-package-id=http-conduit-2.3.8-GN8cc7adE9VWf61sMtjOY","-package-id=http-types-0.12.3-E1oA8uft96c5PHWwTqfwVU","-package-id=network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3","-package-id=record-hasfield-1.0-4LYHIn3Ao3w2P2wnBlk2Gk","-package-id=rio-0.1.21.0-BuITKMLGTUi3OvnrJxMWce","-package-id=scotty-0.12-AJXBMrMlNqD9mOWMxGn0sa","-package-id=serialise-0.2.3.0-JemLH8XlzbHJ6qO2IPp8d9","-package-id=stm-2.5.0.1","-package-id=time-1.9.3","-package-id=typed-process-0.2.6.3-AiN30QKnDPLKkes7vJuiym","-package-id=wai-cors-0.2.7-6LZiWS8DyHuG8QdjoOlzgT","-package-id=yaml-0.11.6.0-D4KHoGb6nrn9RhFfYYSIQJ","-F","-pgmF=record-dot-preprocessor","-optP-include","-optP/home/martin/git/quad-ci/.stack-work/ghci/7d6210a1/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/cf132f95/ghci-script","-package-db","/home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d"], componentRoot = "/home/martin/git/quad-ci", componentDependencies = ["quad.cabal","package.yaml","stack.yaml"]},"/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7")
2021-10-10 00:52:42.446288437 [ThreadId 139] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-13715587582bf75428a0f261149a51d3883ec171
2021-10-10 00:52:42.446574999 [ThreadId 139] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-13715587582bf75428a0f261149a51d3883ec171
2021-10-10 00:52:42.446783859 [ThreadId 139] INFO hls: Making new HscEnv[main,main]
2021-10-10 00:52:42.457769342 [ThreadId 139] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 8),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:42.459406381 [ThreadId 139] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 9),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:42.463740356 [ThreadId 139] DEBUG hls: Known files updated: fromList [(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs",fromList ["/home/martin/git/quad-ci/src/Core.hs"]),(TargetModule Core,fromList ["/home/martin/git/quad-ci/src/Core.hs"]),(TargetModule Paths_quad,fromList ["/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad/autogen/Paths_quad.hs"]),(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs",fromList ["/home/martin/git/quad-ci/app/Main.hs"])]
2021-10-10 00:52:42.464050931 [ThreadId 89] DEBUG hls: Finishing build session(exception: AsyncCancelled)
2021-10-10 00:52:42.464121694 [ThreadId 139] DEBUG hls: Restarting build session for keys [GhcSessionIO; ] (aborting the previous one took 0.00s)
2021-10-10 00:52:42.464905331 [ThreadId 301] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/test/Spec.hs"
2021-10-10 00:52:42.464907332 [ThreadId 310] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs"
2021-10-10 00:52:42.46560024 [ThreadId 318] INFO hls: Consulting the cradle for "test/Spec.hs"
2021-10-10 00:52:42.46568314 [ThreadId 318] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for test/Spec.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
Output from setting up the cradle Cradle {cradleRootDir = "/home/martin/git/quad-ci", cradleOptsProg = CradleAction: Stack}
2021-10-10 00:52:42.469727604 [ThreadId 388] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs"
2021-10-10 00:52:42.537632289 [ThreadId 480] INFO hls: File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 11:1-14:22
Source: hlint
Severity: DsInfo
Message:
Use newtype instead of data
Found:
data Pipeline
= Pipeline {steps :: NonEmpty Step}
deriving (Eq, Show)
Why not:
newtype Pipeline
= Pipeline {steps :: NonEmpty Step}
deriving (Eq, Show)
decreases laziness
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 41:18-41:28
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Pipeline)Why not:Pipeline
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 41:55-41:62
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Build)Why not:Build
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 42:18-42:30
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(BuildState)Why not:BuildState
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 42:54-42:61
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Build)Why not:Build
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 43:18-43:33
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:aplg ~ (NonEmpty Step)Why not:aplg ~ NonEmpty Step
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 43:57-43:67
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Pipeline)Why not:Pipeline
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 44:18-44:28
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(StepName)Why not:StepName
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 44:51-44:57
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Step)Why not:Step
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 45:18-45:33
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:aplg ~ (NonEmpty Text)Why not:aplg ~ NonEmpty Text
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 45:60-45:66
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Step)Why not:Step
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 46:18-46:25
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Image)Why not:Image
File: /home/martin/git/quad-ci/src/Core.hs
Hidden: no
Range: 46:49-46:55
Source: hlint
Severity: DsInfo
Message: Redundant bracketFound:(Step)Why not:Step
2021-10-10 00:52:42.850878864 [ThreadId 363] INFO hie-bios: Using main module: 1. Package `quad' component quad:test:quad-test with main-is file: /home/martin/git/quad-ci/test/Spec.hs
2021-10-10 00:52:43.013178016 [ThreadId 363] INFO hie-bios: quad> Test running disabled by --no-run-tests flag.
2021-10-10 00:52:43.172910075 [ThreadId 363] INFO hie-bios: The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
2021-10-10 00:52:43.172993142 [ThreadId 363] INFO hie-bios: Configuring GHCi with the following packages: quad
2021-10-10 00:52:43.609177563 [ThreadId 499] INFO hie-bios: /home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb:/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d
2021-10-10 00:52:44.521924549 [ThreadId 318] DEBUG hls: Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/martin/git/quad-ci/.stack-work/odir","-hidir=/home/martin/git/quad-ci/.stack-work/odir","-hide-all-packages","-XBlockArguments","-XDeriveAnyClass","-XDeriveGeneric","-XLambdaCase","-XNoImplicitPrelude","-XOverloadedStrings","-XStrictData","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad-test","-i/home/martin/git/quad-ci/test","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad-test/autogen","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/global-autogen","-i/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad-test/quad-test-tmp","-stubdir=/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-package-id=aeson-1.5.6.0-9TEv7CCsmtZ3h1ujpYipv9","-package-id=async-2.2.4-B4xxtVOPdOz6OKTj0mT3eQ","-package-id=base-4.14.3.0","-package-id=butcher-1.3.3.2-Bqd9xHaobKNGvMPuAXjzhR","-package-id=hslogger-1.3.1.0-DpPOq6fHVRNF2Pl1iJqiy0","-package-id=hspec-2.7.10-ICa8x0b7WQ44Sw45CuHFVf","-package-id=http-client-0.6.4.1-3vmmyhO32EcFXZy7fgT2VV","-package-id=http-conduit-2.3.8-GN8cc7adE9VWf61sMtjOY","-package-id=http-types-0.12.3-E1oA8uft96c5PHWwTqfwVU","-package-id=network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3","-package-id=quad-0.0.0-Ebk6LXJs43M917Ro8nsUzq","-package-id=record-hasfield-1.0-4LYHIn3Ao3w2P2wnBlk2Gk","-package-id=rio-0.1.21.0-BuITKMLGTUi3OvnrJxMWce","-package-id=scotty-0.12-AJXBMrMlNqD9mOWMxGn0sa","-package-id=serialise-0.2.3.0-JemLH8XlzbHJ6qO2IPp8d9","-package-id=stm-2.5.0.1","-package-id=time-1.9.3","-package-id=typed-process-0.2.6.3-AiN30QKnDPLKkes7vJuiym","-package-id=wai-cors-0.2.7-6LZiWS8DyHuG8QdjoOlzgT","-package-id=yaml-0.11.6.0-D4KHoGb6nrn9RhFfYYSIQJ","-F","-pgmF=record-dot-preprocessor","-rtsopts","-with-rtsopts=-N","-optP-include","-optP/home/martin/git/quad-ci/.stack-work/ghci/3cd04823/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/94e22630/ghci-script","-package-db","/home/martin/git/quad-ci/.stack-work/install/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/snapshots/x86_64-linux-tinfo6/054618ad62721f6d2144aea21a689b8a75fb74986f5d86b5d1f092f72455029c/8.10.7/pkgdb","-package-db","/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d"], componentRoot = "/home/martin/git/quad-ci", componentDependencies = ["quad.cabal","package.yaml","stack.yaml"]},"/home/martin/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7")
2021-10-10 00:52:44.58006203 [ThreadId 318] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-3388da5390c3a6a222e7730390f5cef18efe16a4
2021-10-10 00:52:44.580294335 [ThreadId 318] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-3388da5390c3a6a222e7730390f5cef18efe16a4
2021-10-10 00:52:44.58045525 [ThreadId 318] INFO hls: Using interface files cache dir: /home/martin/.cache/ghcide/main-3388da5390c3a6a222e7730390f5cef18efe16a4
2021-10-10 00:52:44.580568799 [ThreadId 318] INFO hls: Making new HscEnv[main,main,main]
2021-10-10 00:52:44.591331102 [ThreadId 318] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 13),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:44.592559079 [ThreadId 318] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 14),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:44.594090241 [ThreadId 318] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 15),fromList [("package.yaml",Just 2021-10-09 21:03:44.568318746 UTC),("quad.cabal",Just 2021-10-09 21:16:47.107552586 UTC),("stack.yaml",Just 2021-10-09 20:55:01.470571465 UTC)])
2021-10-10 00:52:44.599603071 [ThreadId 318] DEBUG hls: Known files updated: fromList [(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs",fromList ["/home/martin/git/quad-ci/src/Core.hs"]),(TargetModule Core,fromList ["/home/martin/git/quad-ci/src/Core.hs"]),(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/test/Spec.hs",fromList ["/home/martin/git/quad-ci/test/Spec.hs"]),(TargetModule Paths_quad,fromList ["/home/martin/git/quad-ci/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/quad/autogen/Paths_quad.hs"]),(TargetFile NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs",fromList ["/home/martin/git/quad-ci/app/Main.hs"])]
2021-10-10 00:52:44.599994256 [ThreadId 271] DEBUG hls: Finishing build session(exception: AsyncCancelled)
2021-10-10 00:52:44.600061229 [ThreadId 318] DEBUG hls: Restarting build session for keys [GhcSessionIO; ] (aborting the previous one took 0.00s)
2021-10-10 00:52:44.600772856 [ThreadId 541] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/test/Spec.hs"
2021-10-10 00:52:44.605997677 [ThreadId 634] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/app/Main.hs"
2021-10-10 00:52:44.608195535 [ThreadId 709] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/martin/git/quad-ci/src/Core.hs"
2021-10-10 00:52:44.650399961 [ThreadId 830] INFO hls: finish: User TypeCheck (took 0.05s)
2021-10-10 00:52:44.659755651 [ThreadId 838] INFO hls: finish: GetHie (took 0.01s)
2021-10-10 00:52:44.67551025 [ThreadId 843] INFO hls: finish: GenerateCore (took 0.02s)
Completed (3 files worked, 0 files failed)
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/src/Core.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
This server does not support foldingRangeProvider
Creating watchers for following 4 folders:
/home/martin/git/quad-ci
/home/martin/git/quad-ci/app
/home/martin/git/quad-ci/src
/home/martin/git/quad-ci/test
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/test/Spec.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
This server does not support foldingRangeProvider
Cancelling textDocument/codeAction(10) in hook post-command-hook
Cancelling textDocument/codeAction(66) in hook after-change-functions
Cleaning up watches for folder /home/martin/git/quad-ci. There is no workspace watching this folder...
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/src/Core.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/test/Spec.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
This server does not support foldingRangeProvider
This server does not support foldingRangeProvider
Creating watchers for following 4 folders:
/home/martin/git/quad-ci
/home/martin/git/quad-ci/app
/home/martin/git/quad-ci/src
/home/martin/git/quad-ci/test
Cancelling textDocument/codeAction(120) in hook after-change-functions
Cancelling textDocument/codeAction(134) in hook after-change-functions
Cleaning up watches for folder /home/martin/git/quad-ci. There is no workspace watching this folder...
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/src/Core.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Command "haskell-language-server-wrapper --lsp -d -l /tmp/hls.log" is present on the path.
Found the following clients for /home/martin/git/quad-ci/test/Spec.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
This server does not support foldingRangeProvider
This server does not support foldingRangeProvider
Creating watchers for following 4 folders:
/home/martin/git/quad-ci
/home/martin/git/quad-ci/app
/home/martin/git/quad-ci/src
/home/martin/git/quad-ci/test
Cancelling textDocument/hover(162) in hook after-change-functions
Cancelling textDocument/codeAction(161) in hook after-change-functions
Cancelling textDocument/codeAction(156) in hook after-change-functions