I'm working on a project that gets all it's dependencies via nix. So when I'm on the nix shell, I have access to both ghcid and cabal executables and I can also run ghcid -c "cabal new-repl test:test" without any issues, which also allows me to get feedback for modules under both src/ and test/
The project is running on GHC 6.8.5 and I've installed HLS via the nix expression that I maintain here.
I have enabled full debug logging for HLS and can see what's going on when I load up a file on Emacs. (I'm using spacemacs and lsp-mode)
My primary issue is that, I can never get a response from HLS for any module under test/ and some modules under src/. I've pasted both logs coming from a failing and a succeeding module. I'm aware that this is probably not enough information for replication. But it would be great if someone can point me towards methods on figuring out what's wrong with my setup.
This is what I get in the log when I load a module under test/:
2020-07-13 17:01:25.036996 [ThreadId 30] - Set files of interest to: [NormalizedFilePath "/<prjdir>/<haskell-prj>/src/A/S/Cr/S/Co.hs",NormalizedFilePath "/<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs",NormalizedFilePath "/<prjdir>/<haskell-prj>/src/A/S/C/T/Co.hs"]
2020-07-13 17:01:25.043302 [ThreadId 1515279] - Finishing build session(exception: AsyncCancelled)
2020-07-13 17:01:25.043847 [ThreadId 30] - Restarting build session (aborting the previous one took 0.00s)
2020-07-13 17:01:25.047997 [ThreadId 30] - Opened text document: file:///<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs
2020-07-13 17:01:25.121748 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs"},"range":{"start":{"line":1162,"character":13},"end":{"line":1162,"character":13}},"context":{"diagnostics":[]}},"id":488}
2020-07-13 17:01:25.18165 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"token":"1017287"},"method":"window/workDoneProgress/create","id":31}
2020-07-13 17:01:25.182121 [ThreadId 5] - ---> {"jsonrpc":"2.0","id":31,"result":null}
2020-07-13 17:01:25.18272 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","title":"Processing"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:25.182808 [ThreadId 5] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":31,\"result\":null}\n"
2020-07-13 17:01:25.286291 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:25.690021 [ThreadId 1527271] - finish: CodeAction (took 0.57s)
2020-07-13 17:01:25.690814 [ThreadId 1527276] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-13 17:01:25.690936 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":488}
2020-07-13 17:01:27.099659 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:27.628167 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"491/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:27.737071 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:27.837219 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:27.937821 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.240722 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.445879 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"491/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.553113 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.681791 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"481/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.7874 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"485/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.893644 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"483/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:28.997564 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:29.106079 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"490/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:29.332451 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"489/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:29.437755 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:29.544554 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:29.869463 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:30.198104 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:30.410917 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"489/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:30.62385 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"490/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:30.836266 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"491/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:31.465134 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"488/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:31.569731 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:32.843967 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"439/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:32.949125 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"400/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:33.161022 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"401/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:33.262999 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"399/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:33.364133 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"397/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:33.466559 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"394/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:34.2343 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"398/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:34.445979 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"399/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:34.653115 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"398/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:34.973129 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"399/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:36.878385 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"396/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:36.983614 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"398/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.087837 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"393/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.194542 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"398/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.299633 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"399/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.51179 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"390/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.719929 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"392/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.821044 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"388/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:37.921697 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"391/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.12633 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"393/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.226837 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"392/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.437187 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"393/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.597459 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"388/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.804391 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"390/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:38.918132 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"395/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.021914 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"396/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.318934 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"472/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.423597 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"480/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.530618 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"484/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.633181 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"489/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:39.842527 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"488/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:40.15594 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"489/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:40.333779 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"491/497"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:01:40.46777 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":"1017287"},"method":"$/progress"}
2020-07-13 17:02:21.138282 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs"},"range":{"start":{"line":1162,"character":13},"end":{"line":1162,"character":13}},"context":{"diagnostics":[]}},"id":489}
2020-07-13 17:02:21.138812 [ThreadId 1527276] - finish: CodeAction (took 0.00s)
2020-07-13 17:02:21.138965 [ThreadId 1527276] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-13 17:02:21.13911 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":489}
2020-07-13 17:02:26.347494 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs"},"range":{"start":{"line":1162,"character":13},"end":{"line":1162,"character":13}},"context":{"diagnostics":[]}},"id":490}
2020-07-13 17:02:26.347882 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/hover","params":{"textDocument":{"uri":"file:///<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs"},"position":{"line":1162,"character":13}},"id":491}
2020-07-13 17:02:26.347979 [ThreadId 1527276] - finish: CodeAction (took 0.00s)
2020-07-13 17:02:26.348123 [ThreadId 1527276] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-13 17:02:26.3482 [ThreadId 1537740] - GhcIde.hover entered (ideLogger)
2020-07-13 17:02:26.34827 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":490}
2020-07-13 17:02:26.348396 [ThreadId 1537740] - Hover request at position 1163:14 in file: /<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs
And this is what I get when I load a module under src/ which succeeds on ie. hover requests.
2020-07-13 17:15:44.155455 [ThreadId 30] - Set files of interest to: [NormalizedFilePath "<prjdir>/<haskell-prj>/src/A/S/C/S/Co.hs",NormalizedFilePath "<prjdir>/<haskell-prj>/test/A/T/S/C/Co.hs",NormalizedFilePath "<prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs",NormalizedFilePath "<prjdir>/<haskell-prj>/src/A/S/C/T/C.hs"]
2020-07-13 17:15:44.155706 [ThreadId 1548761] - Finishing build session(exception: AsyncCancelled)
2020-07-13 17:15:44.155762 [ThreadId 30] - Restarting build session (aborting the previous one took 0.00s)
2020-07-13 17:15:44.155958 [ThreadId 30] - Opened text document: file://<prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs
2020-07-13 17:15:44.258319 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"token":"1039650"},"method":"window/workDoneProgress/create","id":34}
2020-07-13 17:15:44.25842 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","title":"Processing"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:44.359603 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:44.370965 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs"},"range":{"start":{"line":59,"character":18},"end":{"line":59,"character":18}},"context":{"diagnostics":[]}},"id":519}
2020-07-13 17:15:44.37126 [ThreadId 1559039] - finish: CodeAction (took 0.00s)
2020-07-13 17:15:44.371405 [ThreadId 1565198] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-13 17:15:44.3715 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":519}
2020-07-13 17:15:44.379589 [ThreadId 5] - ---> {"jsonrpc":"2.0","id":34,"result":null}
2020-07-13 17:15:44.37969 [ThreadId 5] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":34,\"result\":null}\n"
2020-07-13 17:15:44.464658 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"488/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:44.667345 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"491/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:44.885693 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:44.988492 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.094724 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"496/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.30913 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"490/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.615297 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.726105 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.826881 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:45.933861 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"490/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:46.04088 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:46.899575 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:47.006204 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:48.137887 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:48.345491 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:48.553497 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"496/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:50.455175 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:50.557635 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"496/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:50.976425 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:51.084896 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:51.391202 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"492/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:51.65789 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"493/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:51.858551 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:52.493959 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"494/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:52.818963 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"495/497"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:15:52.862033 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":"1039650"},"method":"$/progress"}
2020-07-13 17:16:05.590005 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs"},"range":{"start":{"line":60,"character":19},"end":{"line":60,"character":19}},"context":{"diagnostics":[]}},"id":520}
2020-07-13 17:16:05.590299 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/hover","params":{"textDocument":{"uri":"file://<prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs"},"position":{"line":60,"character":19}},"id":521}
2020-07-13 17:16:05.590542 [ThreadId 1565198] - finish: CodeAction (took 0.00s)
2020-07-13 17:16:05.59069 [ThreadId 1565198] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-13 17:16:05.590775 [ThreadId 1569174] - GhcIde.hover entered (ideLogger)
2020-07-13 17:16:05.590832 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":520}
2020-07-13 17:16:05.590959 [ThreadId 1569174] - Hover request at position 61:20 in file: <prjdir>/<haskell-prj>/src/A/S/C/A/Co.hs
2020-07-13 17:16:05.591159 [ThreadId 1565198] - finish: C:GetHieFile (took 0.00s)
2020-07-13 17:16:05.591511 [ThreadId 1569177] - finish: C:GetDocMap (took 0.00s)
2020-07-13 17:16:05.592652 [ThreadId 7] - <--2--{"result":{"contents":{"kind":"markdown","value":"\n```haskell\......"},"range":{"start":{"line":60,"character":13},"end":{"line":60,"character":39}}},"jsonrpc":"2.0","id":521}
An additional note, I've just noticed this error on the *hie::stderr* buffer in emacs (which was not being printed in the hie.log file.)
Can't find interface-file declaration for data constructor SumType_SomeOption
Probable cause: bug in .hi-boot file, or inconsistent .hi file
Use -ddump-if-trace to get an idea of which file caused the error
Hi, thanks for the detailed report, it would be useful to se the log of project initialization. Are you using a explicit hie.yaml file?, could you share it if that is the case?
The output of executing haskell-language-server in a shell within the project root directory could be useful too.
I'll try to come up with a way to get the project's initialization log (cleaning up identifiers/path names and such), but in the meanwhile here's the hie.yaml file:
cradle:
multi:
- path: "./"
config:
cradle:
cabal:
# Library
- path: "./src"
component: "<project>:lib:<project>"
# Executables
- path: "./execs"
component: "<project>:exe:<project>"
- path: "./execs"
component: "<project>:exe:<executable1>"
- path: "./execs"
component: "<project>:exe:<executable2>"
- path: "./execs"
component: "<project>:exe:<executable3>"
# Tests
- path: "./test"
component: "<project>:test:test"
# Benchmarks
- path: "./benchmarks/bench"
component: "<project>:bench:bench"
- path: "./benchmarks/some-bench"
component: "<project>:bench:some-bench"
And here is the output of haskell-language-server execution in the shell:
ghcide version: 0.2.0.0 (GHC: 8.6.5) (PATH: /nix/store/vmhjbm4rw3jl1910s02z71j6kxj9m79y-haskell-language-server-0.2.0.0/bin/haskell-language-server)
(haskell-language-server)Ghcide setup tester in <project-root>.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in <project-root>
Found 310 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
[INFO] Consulting the cradle for "<project-root>/test/<some random module path>.hs"
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (test:test) (configuration changed)
> Configuring test suite 'test' for <project>-0.0.0..
> Preprocessing test suite 'test' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main]
[INFO] Consulting the cradle for "<project-root>/benchmarks/bench/Main.hs"
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (lib) (configuration changed)
> - <project>-0.0.0 (bench:bench) (configuration changed)
> Configuring library for <project>-0.0.0..
> Preprocessing library for <project>-0.0.0..
> Building library for <project>-0.0.0..
> Configuring benchmark 'bench' for <project>-0.0.0..
> Preprocessing benchmark 'bench' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main,main]
[INFO] Consulting the cradle for "<project-root>/execs/executable1/Main.hs"
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (lib) (configuration changed)
> - <project>-0.0.0 (exe:<project>) (configuration changed)
> Configuring library for <project>-0.0.0..
> Preprocessing library for <project>-0.0.0..
> Building library for <project>-0.0.0..
> Configuring executable '<project>' for <project>-0.0.0..
> Preprocessing executable '<project>' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main,main,main]
[INFO] Consulting the cradle for "<project-root>/execs/executable3/Main.hs"
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (lib) (configuration changed)
> - <project>-0.0.0 (exe:<project>) (configuration changed)
> Configuring library for <project>-0.0.0..
> Preprocessing library for <project>-0.0.0..
> Building library for <project>-0.0.0..
> Configuring executable '<project>' for <project>-0.0.0..
> Preprocessing executable '<project>' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main,main,main,main]
[INFO] Consulting the cradle for "<project-root>/execs/executable2/Main.hs"
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (lib) (configuration changed)
> - <project>-0.0.0 (exe:<project>) (configuration changed)
> Configuring library for <project>-0.0.0..
> Preprocessing library for <project>-0.0.0..
> Building library for <project>-0.0.0..
> Configuring executable '<project>' for <project>-0.0.0..
> Preprocessing executable '<project>' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main,main,main,main,main]
[INFO] Consulting the cradle for "<project-root>/scripts/some_random_script.hs"
File:
<project-root>/scripts/some_random_script.hs
Hidden: no
Range: 1:0-2:0
Source: cradle
Severity: DsError
Message:
Multi Cradle: No prefixes matched
pwd: <project-root>
filepath:
<project-root>/scripts/some_random_script.hs
prefixes:
("./src",Cabal {component = Just "<project>:lib:<project>"})
("./execs",Cabal {component = Just "<project>:exe:<project>"})
("./execs",Cabal {component = Just "<project>:exe:executable2"})
("./execs",Cabal {component = Just "<project>:exe:executable1"})
("./execs",Cabal {component = Just "<project>:exe:executable3"})
("./test",Cabal {component = Just "<project>:test:test"})
("./benchmarks/bench",Cabal {component = Just "<project>:bench:bench"})
("./benchmarks/some-bench",Cabal {component = Just "<project>:bench:some-bench"})
[INFO] Consulting the cradle for "<project-root>/benchmarks/some-bench/Main.hs"
File: <project-root>/execs/executable1/Main.hs
Hidden: no
Range: 25:17-25:41
Source: not found
Severity: DsError
Message:
Could not load module ‘Control.Concurrent.Async’
It is a member of the hidden package ‘async-2.2.2’.
Perhaps you need to add ‘async’ to the build-depends in your .cabal file.
> Resolving dependencies...
> Build profile: -w ghc-8.6.5 -O1
> In order, the following will be built (use -v for more details):
> - <project>-0.0.0 (lib) (configuration changed)
> - <project>-0.0.0 (bench:some-bench) (configuration changed)
> Configuring library for <project>-0.0.0..
> Preprocessing library for <project>-0.0.0..
> Building library for <project>-0.0.0..
> Configuring benchmark 'some-bench' for <project>-0.0.0..
> Preprocessing benchmark 'some-bench' for <project>-0.0.0..
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Using interface files cache dir: <homedir>/.cache/ghcide/main-<somehash>
[INFO] Making new HscEnv[main,main,main,main,main,main]
...
some number of Warnings like `defined but not used: ...`
...
Files that failed:
* <project-root>/execs/executable1/Main.hs
* <project-root>/scripts/some_random_script.hs
Completed (308 files worked, 2 files failed)
async-2.2.2 was added as a dependency of that executable, but not for the whole project.
And below is the hie.log output of the project initialization. The only errors that I come across are the ones with hi-boot errors that I've mentioned in the first issue post:
2020-07-14 11:09:01.75486 [ThreadId 5] -
haskell-lsp:Starting up server ...
2020-07-14 11:09:01.755865 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"initialize","params":{"processId":null,"rootPath":"<project-root>","clientInfo":{"name":"emacs","version":"GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Version 10.15.5 (Build 19F101))\n of 2020-07-08"},"rootUri":"file://<project-root>","capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":false},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"snippetSupport":true,"documentationFormat":["markdown"]},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":true}},"window":{"workDoneProgress":true}},"initializationOptions":null,"workDoneToken":"1"},"id":1}
2020-07-14 11:09:01.756767 [ThreadId 5] - haskell-lsp:initializeRequestHandler: setting current dir to project root:<project-root>
2020-07-14 11:09:01.828006 [ThreadId 5] - Warning: Client does not support watched files. Falling back to OS polling
2020-07-14 11:09:01.828714 [ThreadId 7] - <--2--{"result":{"capabilities":{"typeDefinitionProvider":true,"foldingRangeProvider":false,"textDocumentSync":{"openClose":true,"change":2,"save":{}},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}},"implementationProvider":true,"documentRangeFormattingProvider":true,"documentHighlightProvider":true,"executeCommandProvider":{"commands":["86608:ghcide:typesignature.add","86608:pragmas:addPragma"]},"renameProvider":true,"colorProvider":false,"definitionProvider":true,"hoverProvider":true,"codeActionProvider":true,"completionProvider":{"triggerCharacters":["."],"resolveProvider":false},"codeLensProvider":{},"documentSymbolProvider":true,"documentFormattingProvider":true}},"jsonrpc":"2.0","id":1}
2020-07-14 11:09:01.942683 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}}
2020-07-14 11:09:01.942803 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"languageServerHaskell":{"hlintOn":true,"liquidOn":false}}}}
2020-07-14 11:09:01.944075 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs","languageId":"haskell","version":0,"text":"...target_file_source..."}}}
2020-07-14 11:09:01.945689 [ThreadId 30] - Set files of interest to: [NormalizedFilePath "<project-root>/test/test_module_that_fails.hs"]
2020-07-14 11:09:01.945952 [ThreadId 29] - Finishing build session(exception: AsyncCancelled)
2020-07-14 11:09:01.94598 [ThreadId 30] - Restarting build session (aborting the previous one took 0.00s)
2020-07-14 11:09:01.94609 [ThreadId 30] - Opened text document: file://<project-root>/test/test_module_that_fails.hs
2020-07-14 11:09:01.94785 [ThreadId 88] - Consulting the cradle for "<project-root>/test/test_module_that_fails.hs"
2020-07-14 11:09:01.948514 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"token":0},"method":"window/workDoneProgress/create","id":0}
2020-07-14 11:09:01.948626 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","cancellable":false,"title":"Setting up project <project>"},"token":0},"method":"$/progress"}
2020-07-14 11:09:01.958646 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":2}
2020-07-14 11:09:02.001403 [ThreadId 5] - ---> {"jsonrpc":"2.0","id":0,"result":null}
2020-07-14 11:09:02.001509 [ThreadId 5] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":0,\"result\":null}\n"
2020-07-14 11:09:02.048965 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"token":"7"},"method":"window/workDoneProgress/create","id":1}
2020-07-14 11:09:02.049111 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","title":"Processing"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:02.049407 [ThreadId 5] - ---> {"jsonrpc":"2.0","id":1,"result":null}
2020-07-14 11:09:02.049487 [ThreadId 5] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":null}\n"
2020-07-14 11:09:02.157815 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"1/2"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:02.423824 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":2}}
2020-07-14 11:09:02.423957 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":3}
2020-07-14 11:09:02.423968 [ThreadId 30] - Cancelled request IdInt 2
2020-07-14 11:09:02.424173 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":2}
2020-07-14 11:09:11.769327 [ThreadId 88] - Session loading result: Right (ComponentOptions {componentOptions = [...long text that would require much effort to obfuscate...], componentRoot = "<project-root>", componentDependencies = ["<project>.cabal","cabal.project","cabal.project.local"]})
2020-07-14 11:09:11.769424 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":0},"method":"$/progress"}
2020-07-14 11:09:11.913596 [ThreadId 88] - Using interface files cache dir: <homedir>/.cache/ghcide/main-5dbbb6a2d3c469165a491dabcdef7d8b1b0fb2ed
2020-07-14 11:09:11.915228 [ThreadId 88] - Making new HscEnv[main]
2020-07-14 11:09:11.949678 [ThreadId 88] - New Component Cache HscEnvEq: (([],Just HscEnvEq 8),fromList [("<project-root>/hie.yaml",Just 2020-07-14 08:07:18.717566544 UTC),("<project>.cabal",Just 2020-07-09 12:09:37.446177272 UTC),("cabal.project",Nothing),("cabal.project.local",Just 2020-07-03 11:13:05.310958078 UTC)])
2020-07-14 11:09:13.32211 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"4/5"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:13.323236 [ThreadId 134] - finish: CodeAction (took 11.37s)
2020-07-14 11:09:13.32358 [ThreadId 134] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:13.424758 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"4/6"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:13.840613 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"80/308"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:13.941271 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"34/308"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:14.041661 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"16/308"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:14.345306 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"16/310"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:14.446477 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"12/310"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:14.54728 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"9/312"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:14.647935 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"9/313"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:15.560236 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"14/313"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:15.667489 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"15/314"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:16.689348 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"34/330"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:16.790055 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"38/330"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:16.890642 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"39/330"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:16.991008 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"41/330"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:17.091587 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"42/330"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:17.197281 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"61/343"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:17.764321 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"68/346"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:17.871693 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"78/347"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:17.980387 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"84/349"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:18.495494 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"87/350"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:18.81448 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"84/350"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:19.709765 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"86/350"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:19.811753 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"87/350"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.121703 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"97/358"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.228398 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"98/358"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.330381 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"100/359"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.786987 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"99/359"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.888578 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"103/360"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:20.990963 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"104/362"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:21.09282 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"105/362"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:21.671494 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"107/363"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:22.399591 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"111/364"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:22.969817 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"117/369"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:23.070684 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"118/369"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:23.175007 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"122/370"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:23.854359 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"124/371"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:23.959963 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"127/372"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:24.061098 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"130/373"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:26.367616 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"132/374"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:26.581463 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"133/374"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:27.044693 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"134/374"},"token":"7"},"method":"$/progress"}
<HI-BOOT ERRORS>
2020-07-14 11:09:27.083933 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-module1>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":43,"character":39},"end":{"line":43,"character":68}},"source":"typecheck","message":""},{"severity":1,"range":{"start":{"line":44,"character":45},"end":{"line":44,"character":77}},"source":"typecheck","message":""}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:27.084117 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-module2>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":43,"character":39},"end":{"line":43,"character":68}},"source":"typecheck","message":""},{"severity":1,"range":{"start":{"line":44,"character":45},"end":{"line":44,"character":77}},"source":"typecheck","message":""}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:27.084593 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-module3>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":50,"character":44},"end":{"line":50,"character":73}},"source":"typecheck","message":""},{"severity":1,"range":{"start":{"line":51,"character":50},"end":{"line":51,"character":82}},"source":"typecheck","message":""}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:27.118735 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":3}}
</HI-BOOT ERRORS>
2020-07-14 11:09:27.118907 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":4}
2020-07-14 11:09:27.118973 [ThreadId 30] - Cancelled request IdInt 3
2020-07-14 11:09:27.119087 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":3}
2020-07-14 11:09:27.145046 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"143/378"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:28.553013 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"149/382"},"token":"7"},"method":"$/progress"}
<ANOTHER HI-BOOT ERROR>
2020-07-14 11:09:28.650574 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":4}}
2020-07-14 11:09:28.650704 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":5}
2020-07-14 11:09:28.650764 [ThreadId 30] - Cancelled request IdInt 4
2020-07-14 11:09:28.650881 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":4}
2020-07-14 11:09:28.660382 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"150/382"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:28.770107 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"156/386"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:28.876309 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"158/386"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:28.938674 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-other-module-4>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"typecheck","message":"Program error: Cannot continue after interface file error"}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:28.977672 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":5}}
2020-07-14 11:09:28.977949 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":6}
2020-07-14 11:09:28.977955 [ThreadId 30] - Cancelled request IdInt 5
2020-07-14 11:09:28.97803 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"168/393"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:28.978213 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":5}
2020-07-14 11:09:29.078919 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"175/394"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:29.391762 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"173/394"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:29.799008 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"174/394"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:29.902864 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"175/394"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:30.110944 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"181/399"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:30.433784 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"182/399"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:30.744676 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"183/399"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:31.278387 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"185/400"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:31.479711 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"186/400"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:33.000232 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"187/400"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:35.358638 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"194/404"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:35.570954 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"197/405"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:35.87667 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"198/405"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:35.978496 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"209/412"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:36.085406 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"210/412"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:36.287816 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"213/413"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:36.808452 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"214/413"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:36.908875 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"215/414"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.017062 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"214/414"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.230031 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"225/423"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.54954 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"226/423"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.650398 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"230/426"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.75438 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"231/426"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:37.856113 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"233/426"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.292479 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"237/428"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.394204 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"246/433"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.500197 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"252/435"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.50571 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-other-module-5>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"typecheck","message":"Program error: Cannot continue after interface file error"}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:38.552346 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":6}}
2020-07-14 11:09:38.552493 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":7}
2020-07-14 11:09:38.552748 [ThreadId 30] - Cancelled request IdInt 6
2020-07-14 11:09:38.552899 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":6}
2020-07-14 11:09:38.604581 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"255/435"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.708465 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"258/437"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:38.809559 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"259/438"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:39.28311 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"257/438"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:39.385003 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"260/439"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:39.487797 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"261/439"},"token":"7"},"method":"$/progress"}
<ANOTHER HI-BOOT ERROR>
2020-07-14 11:09:39.589138 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"266/441"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:39.589956 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":7}}
2020-07-14 11:09:39.590109 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":8}
2020-07-14 11:09:39.590129 [ThreadId 30] - Cancelled request IdInt 7
2020-07-14 11:09:39.590372 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":7}
2020-07-14 11:09:42.749108 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"273/447"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:42.860377 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"277/447"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:42.967386 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"280/448"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.071317 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"282/448"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.172444 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"285/450"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.273359 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"286/450"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.674527 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"294/457"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.777459 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"293/457"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:43.878963 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"301/461"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:44.344488 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"303/461"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:44.363319 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-other-module>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"typecheck","message":"Program error: Cannot continue after interface file error"}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:44.403748 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":8}}
2020-07-14 11:09:44.403893 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":9}
2020-07-14 11:09:44.403941 [ThreadId 30] - Cancelled request IdInt 8
2020-07-14 11:09:44.404092 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":8}
2020-07-14 11:09:44.451371 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"309/461"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:44.662121 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"311/461"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:44.763249 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"317/464"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:44.867538 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"320/465"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:45.234217 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"358/468"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:45.345267 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"360/470"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:45.448105 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"367/470"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:45.762736 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"420/472"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:45.863814 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"427/475"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:46.075999 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"436/481"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:46.178911 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"443/481"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:46.280114 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"445/482"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:46.381969 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"450/484"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:46.737498 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"uri":"file://<project-root>/src/<some-other-module>.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"typecheck","message":"Program error: Cannot continue after interface file error"}]},"method":"textDocument/publishDiagnostics"}
2020-07-14 11:09:46.776125 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":9}}
2020-07-14 11:09:46.776289 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"textDocument":{"uri":"file://<project-root>/test/test_module_that_fails.hs"},"range":{"start":{"line":45,"character":19},"end":{"line":45,"character":19}},"context":{"diagnostics":[]}},"id":10}
2020-07-14 11:09:46.776358 [ThreadId 30] - Cancelled request IdInt 9
2020-07-14 11:09:46.776548 [ThreadId 7] - <--2--{"error":{"code":-32800,"message":""},"jsonrpc":"2.0","id":9}
2020-07-14 11:09:46.807929 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"456/484"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:48.175974 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"458/485"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:48.504523 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"459/485"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:48.608534 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"464/488"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:48.710957 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"466/488"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:50.524839 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"470/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:50.625522 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"471/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:50.728874 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"473/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:50.83003 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"471/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:50.935103 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"472/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.258587 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"474/491"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.557327 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"476/493"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.660086 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"477/493"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.7644 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"480/495"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.871096 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"486/495"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:51.973115 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"488/496"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:52.394434 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"report","message":"490/497"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:52.553758 [ThreadId 7] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":"7"},"method":"$/progress"}
2020-07-14 11:09:52.553977 [ThreadId 12470] - finish: InitialLoad (took 39.23s)
2020-07-14 11:09:54.92315 [ThreadId 12474] - finish: CodeAction:PackageExports (took 2.37s)
2020-07-14 11:09:54.923381 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.923538 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.923687 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.923847 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.924005 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.924157 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.92431 [ThreadId 12474] - finish: CodeAction (took 0.00s)
2020-07-14 11:09:54.92439 [ThreadId 12474] - finish: CodeAction:PackageExports (took 0.00s)
2020-07-14 11:09:54.92453 [ThreadId 7] - <--2--{"result":[],"jsonrpc":"2.0","id":10}
2020-07-14 11:10:09.053322 [ThreadId 5] - ---> {"jsonrpc":"2.0","method":"shutdown","params":{},"id":11}
2020-07-14 11:10:09.053485 [ThreadId 7] - <--2--{"result":null,"jsonrpc":"2.0","id":11}
Hi!
It looks like your hie.yaml definition is ambiguous:
# Executables
- path: "./execs"
component: "<project>:exe:<project>"
- path: "./execs"
component: "<project>:exe:<executable1>"
- path: "./execs"
component: "<project>:exe:<executable2>"
- path: "./execs"
component: "<project>:exe:<executable3>"
This way, any executable located in ./execs is loaded by the component <project>:exe:<project> since we can not know when you actually want to load different executables. The mapping from filepath to component should be unique. (Which we should definitely add to the README and maybe even check in hie-bios.).
I guess, that the async not found error is caused by <project>:exe:<project> not having a dependency on async, but one of your other executables does!
@fendor thanks! I've totally missed that part. Now from the shell execution of haskell-language-server I just have one module that fails, and that's in a path where I want to ignore. looks like setting config: {cradle: { none: } } for those folders do not work.
The issues I'm seeing with hi-boot are still there though. These errors are coming from a file where Data.Singletons.TH is used:
import Data.Singletons
import Data.Singletons.TH
$( singletons
[d|
data SomeSumType
= SomeSumType_Variant1
| SomeSumType_Variant2
| SomeSumType_Variant3
|]
)
looks like setting config: {cradle: { none: } } for those folders do not work.
Yes it does, the message is just wrong: https://github.com/haskell/haskell-language-server/blob/master/exe/Main.hs#L272
It basically says, in cli mode, report it as an error.
I think TH still gives us headaches, but I cant say more about it.
I think we can close this one, @korayal thanks for your report, do you mind to open another issue for the th related error?
Most helpful comment
Yes it does, the message is just wrong: https://github.com/haskell/haskell-language-server/blob/master/exe/Main.hs#L272
It basically says, in cli mode, report it as an error.
I think TH still gives us headaches, but I cant say more about it.