Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS crashes in vscode with Prelude.head: empty list #2118

Closed
tscholak opened this issue Aug 20, 2021 · 21 comments · Fixed by #2123
Closed

HLS crashes in vscode with Prelude.head: empty list #2118

tscholak opened this issue Aug 20, 2021 · 21 comments · Fixed by #2123
Labels
os: nixos type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@tscholak
Copy link
Contributor

tscholak commented Aug 20, 2021

This is not a duplicate of #2117 as the issue occurs on a different platform (macOS instead of NixOS) and manifests differently.

The HLS crashes five times in a row while working on this file:
https://github.com/hasktorch/hasktorch/blob/744dc4aff70719c9149807e40dacce59fd77484c/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs
The problem goes away when I comment everything below the decode function.

I have observed this issue with ghc 8.10.4 and hls 1.0, ghc 8.10.5 and hls 1.2, and now ghc 9.0.1 and hls 1.3.

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 1.3.0.0 (GHC: 9.0.1) (PATH: /nix/store/wcygg534z7l88pkgapwnmafs9mz47da0-haskell-language-server-exe-haskell-language-server-1.3.0.0/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:		3.4.0.0
stack:		2.7.3
ghc:		9.0.1

Which OS do you use:
MacOS
Which lsp-client do you use:
vscode
Describe your project (alternative: link to the project):
https://github.com/hasktorch/hasktorch/tree/generation-2
Contents of hie.yaml:
https://github.com/hasktorch/hasktorch/blob/generation-2/hie.yaml

Steps to reproduce

$ nix develop
$ code .

Expected behaviour

HLS should not crash or become unresponsive.

Actual behaviour

HLS crashes or becomes unresponsive.

Include debug information

Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:

HLS processes all files and exits normally.

Paste the logs from the lsp-client, e.g. for VS Code

LSP logs:
haskell-language-server version: 1.3.0.0 (GHC: 9.0.1) (PATH: /nix/store/wcygg534z7l88pkgapwnmafs9mz47da0-haskell-language-server-exe-haskell-language-server-1.3.0.0/bin/haskell-language-server)
Starting (haskell-language-server)LSP server...
  with arguments: GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
  with plugins: [PluginId "pragmas",PluginId "floskell",PluginId "ormolu",PluginId "retrie",PluginId "callHierarchy",PluginId "haddockComments",PluginId "eval",PluginId "importLens",PluginId "moduleName",PluginId "hlint",PluginId "ghcide-hover-and-symbols",PluginId "ghcide-code-actions-imports-exports",PluginId "ghcide-code-actions-type-signatures",PluginId "ghcide-code-actions-bindings",PluginId "ghcide-code-actions-fill-holes",PluginId "ghcide-completions",PluginId "ghcide-type-lenses",PluginId "ghcide-core"]
  in directory: /Users/torsten.scholak/Projects/thirdParty/hasktorch
 Starting LSP server...
If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!
Started LSP server in 0.00s
setInitialDynFlags cradle: Cradle {cradleRootDir = "/Users/torsten.scholak/Projects/thirdParty/hasktorch", cradleOptsProg = CradleAction: Cabal}
Currently, HLS supports GHC 9 only partially. See [issue #297](https://github.com/haskell/haskell-language-server/issues/297) for more detail.
2021-08-20 19:33:15.070065 [ThreadId 9] DEBUG hls:	Initializing exports map from hiedb
2021-08-20 19:33:15.568587 [ThreadId 5] INFO hls:	Registering ide configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri 3025941427988373460 "file:///Users/torsten.scholak/Projects/thirdParty/hasktorch"], clientSettings = hashed Nothing}
2021-08-20 19:33:15.643099 [ThreadId 27] DEBUG hls:	Configuration changed: Object (fromList [("haskell",Object (fromList [("diagnosticsOnChange",Bool True),("formatOnImportOn",Bool True),("formattingProvider",String "ormolu"),("indentationRules",Object (fromList [("enabled",Bool True)])),("logFile",String ""),("plugin",Object (fromList [("class",Object (fromList [("globalOn",Bool True)])),("eval",Object (fromList [("globalOn",Bool True)])),("ghcide-completions",Object (fromList [("config",Object (fromList [("autoExtendOn",Bool True),("snippetsOn",Bool True)]))])),("ghcide-type-lenses",Object (fromList [("config",Object (fromList [("mode",Bool True)])),("globalOn",Bool True)])),("haddockComments",Object (fromList [("globalOn",Bool True)])),("hlint",Object (fromList [("codeActionsOn",Bool True),("config",Object (fromList [("flags",Array [])])),("diagnosticsOn",Bool True)])),("importLens",Object (fromList [("codeActionsOn",Bool True),("codeLensOn",Bool True)])),("moduleName",Object (fromList [("globalOn",Bool True)])),("pragmas",Object (fromList [("codeActionsOn",Bool True),("completionOn",Bool True)])),("retrie",Object (fromList [("globalOn",Bool True)])),("splice",Object (fromList [("globalOn",Bool True)])),("tactics",Object (fromList [("config",Object (fromList [("auto_gas",Number 4.0),("hole_severity",Null),("max_use_ctor_actions",Number 5.0),("proofstate_styling",Bool True),("timeout_duration",Number 2.0)])),("globalOn",Bool True)]))])),("releasesURL",String ""),("serverExecutablePath",String ""),("trace",Object (fromList [("client",String "error"),("server",String "messages")])),("updateBehavior",String "keep-up-to-date")]))])
2021-08-20 19:33:15.645161 [ThreadId 30] DEBUG hls:	Finishing build session(exception: AsyncCancelled)
2021-08-20 19:33:15.645753 [ThreadId 27] DEBUG hls:	Restarting build session for keys [GetClientSettings; ] (aborting the previous one took 0.00s)
2021-08-20 19:33:15.647629 [ThreadId 27] DEBUG hls:	Set files of interest to: fromList []
2021-08-20 19:33:15.648167 [ThreadId 41] DEBUG hls:	Finishing build session(exception: AsyncCancelled)
2021-08-20 19:33:15.648299 [ThreadId 27] DEBUG hls:	Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs,IsFileOfInterest; /Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs,GetClientSettings; ] (aborting the previous one took 0.00s)
2021-08-20 19:33:15.648471 [ThreadId 27] DEBUG hls:	Opened text document: file:///Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs
2021-08-20 19:33:15.650327 [ThreadId 125] DEBUG hls:	hlint:getIdeas:file:NormalizedFilePath "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:15.651755 [ThreadId 127] INFO hls:	Consulting the cradle for "experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
Output from setting up the cradle Cradle {cradleRootDir = "/Users/torsten.scholak/Projects/thirdParty/hasktorch", cradleOptsProg = CradleAction: Cabal}
> Build profile: -w ghc-9.0.1 -O1
> In order, the following will be built (use -v for more details):
>  - hasktorch-gradually-typed-0.2.0.0 (first run)
2021-08-20 19:33:16.132411 [ThreadId 9] DEBUG hls:	Done initializing exports map from hiedb (24887)
2021-08-20 19:33:16.524753 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:16.790338 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:16.802426 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:16.913361 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
> Preprocessing library for hasktorch-gradually-typed-0.2.0.0..
2021-08-20 19:33:17.170706 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:17.170827 [ThreadId 127] DEBUG hls:	Session loading result: Right (ComponentOptions {componentOptions = ["-fbuilding-cabal-package","-O0","-outputdir","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-odir","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-hidir","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-stubdir","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-i","-i/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-isrc","-i/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build/autogen","-i/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build/global-autogen","-I/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build/autogen","-I/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build/global-autogen","-I/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build","-optP-include","-optP/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/build/autogen/cabal_macros.h","-this-unit-id","hasktorch-gradually-typed-0.2.0.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","/Users/torsten.scholak/.cabal/store/ghc-9.0.1/package.db","-package-db","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/packagedb/ghc-9.0.1","-package-db","/Users/torsten.scholak/.cache/hie-bios/dist-hasktorch-0342ef1337cc832e0323bd6ee3ac9d5e/build/x86_64-osx/ghc-9.0.1/hasktorch-gradually-typed-0.2.0.0/package.conf.inplace","-package-id","base-4.15.0.0","-package-id","containers-0.6.4.1","-package-id","exceptions-0.10.4","-package-id","finite-typelits-0.1.4.2-1dLKVitEZFWGBZgUMG5E4G","-package-id","free-5.1.7-7yKGIhcwgcS8SVBxXnMiB1","-package-id","generic-lens-2.2.0.0-BWomQImqnr72MBJHu3OVVq","-package-id","generics-sop-0.5.1.1-6a9fyHHEUWeGsTJGYyUZUT","-package-id","ghc-typelits-extra-0.4.3-28m2Tmf2vbx84MhFetwx3j","-package-id","ghc-typelits-knownnat-0.7.6-D5nS7iwD4PG7QktaszFeXX","-package-id","ghc-typelits-natnormalise-0.7.6-AjwJBCUWTfyFXJvu9mkx8v","-package-id","hasktorch-0.2.0.0-inplace","-package-id","hedgehog-1.0.5-300l1UK7WiWFHagDHFkXCs","-package-id","indexed-0.1.3-CKyh2YdeFAhFQphvQbjKDq","-package-id","indexed-extras-0.2-47l6GF1DGb8KG1FtSvLg4D","-package-id","indexed-list-literals-0.2.1.3-Bv46zhUC93R7rMV4csTAic","-package-id","lens-5.0.1-42rnNYIVKthIrXVzKJjm7D","-package-id","libtorch-ffi-1.9.0.0-inplace","-package-id","logict-0.7.0.3-HL2vhK670CaECk1RdONeLh","-package-id","megaparsec-9.1.0-DBn1hQinEoxCjxFNK947bZ","-package-id","mmorph-1.1.5-6XgAVHPGzECDm1vs0OocPx","-package-id","mtl-2.2.2","-package-id","normaldistribution-1.1.0.3-BNqAddtYRQnH4EaypioVUL","-package-id","parsers-0.12.10-3oj44n6lTQi9JHjJuqXytx","-package-id","pipes-4.3.16-CByT1AOcPux6BCfM9SuwSk","-package-id","pipes-concurrency-2.0.12-L0R4luS2X1yCcEMCRvI5Z7","-package-id","pipes-group-1.0.12-8E2QFKMhFzk5AN8oKOrN75","-package-id","random-1.2.0-6UzZwPIj89x7kKR4PhPZ8O","-package-id","singletons-3.0-Jt8unaXUKj46TY8PMZwo6X","-package-id","singletons-base-3.0-AxQRVN3bXOiGkfNxPA0eXM","-package-id","singletons-th-3.0-AoOnZm4xuYF3qS2DK2h9ii","-package-id","stm-2.5.0.0","-package-id","template-haskell-2.17.0.0","-package-id","text-1.2.4.1","-package-id","tknzrs-0.1.0.0-713af866","-package-id","transformers-0.5.6.2","-package-id","type-errors-pretty-0.0.1.2-H4vWkZ6CiZCH1Bx0vT3faN","-package-id","typlvl-rwrt-rls-1.0-c9b4862f","-package-id","vector-0.12.3.0-EqxQKEyaqr2AsJGS1A4pm1","-package-id","vector-sized-1.4.4-4FyUbrhSTpXBvhsrfKxRpg","-XHaskell2010","Torch.GraduallyTyped","Torch.GraduallyTyped.Prelude","Torch.GraduallyTyped.Prelude.List","Torch.GraduallyTyped.Prelude.Maybe","Torch.GraduallyTyped.Prelude.TypeLits","Torch.GraduallyTyped.Prelude.Bool","Torch.GraduallyTyped.Unify","Torch.GraduallyTyped.Scalar","Torch.GraduallyTyped.Tensor","Torch.GraduallyTyped.Tensor.Type","Torch.GraduallyTyped.Tensor.Creation","Torch.GraduallyTyped.Tensor.Indexing","Torch.GraduallyTyped.Tensor.IndexingSlicingJoining","Torch.GraduallyTyped.Tensor.Other","Torch.GraduallyTyped.Tensor.MathOperations","Torch.GraduallyTyped.Tensor.MathOperations.Pointwise","Torch.GraduallyTyped.Tensor.MathOperations.Reduction","Torch.GraduallyTyped.Tensor.MathOperations.Comparison","Torch.GraduallyTyped.Tensor.MathOperations.Spectral","Torch.GraduallyTyped.Tensor.MathOperations.Other","Torch.GraduallyTyped.Tensor.MathOperations.BlasLapack","Torch.GraduallyTyped.RequiresGradient","Torch.GraduallyTyped.DType","Torch.GraduallyTyped.Device","Torch.GraduallyTyped.Index","Torch.GraduallyTyped.Index.Type","Torch.GraduallyTyped.Index.Class","Torch.GraduallyTyped.Shape","Torch.GraduallyTyped.Shape.Type","Torch.GraduallyTyped.Shape.Class","Torch.GraduallyTyped.Layout","Torch.GraduallyTyped.Autograd","Torch.GraduallyTyped.Random","Torch.GraduallyTyped.Optim","Torch.GraduallyTyped.LearningRateSchedules","Torch.GraduallyTyped.NN","Torch.GraduallyTyped.NN.Type","Torch.GraduallyTyped.NN.Class","Torch.GraduallyTyped.NN.Initialization","Torch.GraduallyTyped.NN.Linear","Torch.GraduallyTyped.NN.Transformer","Torch.GraduallyTyped.NN.Transformer.Type","Torch.GraduallyTyped.NN.Transformer.GMultiHeadAttention","Torch.GraduallyTyped.NN.Transformer.GFeedForwardNetwork","Torch.GraduallyTyped.NN.Transformer.GSelfAttention","Torch.GraduallyTyped.NN.Transformer.GCrossAttention","Torch.GraduallyTyped.NN.Transformer.GBlock","Torch.GraduallyTyped.NN.Transformer.GStack","Torch.GraduallyTyped.NN.Transformer.GTransformer","Torch.GraduallyTyped.NN.Transformer.GLMHead","Torch.GraduallyTyped.NN.Transformer.GEncoderOnly","Torch.GraduallyTyped.NN.Transformer.GEncoderDecoder","Torch.GraduallyTyped.NN.Transformer.GPooler","Torch.GraduallyTyped.NN.Transformer.T5.Common","Torch.GraduallyTyped.NN.Transformer.T5.Small","Torch.GraduallyTyped.NN.Transformer.T5.Base","Torch.GraduallyTyped.NN.Transformer.T5.Large","Torch.GraduallyTyped.NN.Transformer.T5.ThreeB","Torch.GraduallyTyped.NN.Transformer.T5.ElevenB","Torch.GraduallyTyped.NN.Transformer.T5.Generation","Torch.GraduallyTyped.NN.Transformer.T5","Torch.GraduallyTyped.NN.Transformer.BART.Common","Torch.GraduallyTyped.NN.Transformer.BART.Base","Torch.GraduallyTyped.NN.Transformer.BART","Torch.GraduallyTyped.NN.Transformer.BERT.Common","Torch.GraduallyTyped.NN.Transformer.BERT.BaseUncased","Torch.GraduallyTyped.NN.Transformer.BERT","Torch.GraduallyTyped.NN.Transformer.RoBERTa.Common","Torch.GraduallyTyped.NN.Transformer.RoBERTa.Base","Torch.GraduallyTyped.NN.Transformer.RoBERTa","Torch.GraduallyTyped.NN.Transformer.Pegasus.Common","Torch.GraduallyTyped.NN.Transformer.Pegasus.XSum","Torch.GraduallyTyped.NN.Transformer.Pegasus","Torch.GraduallyTyped.NN.Transformer.Generation","Torch.GraduallyTyped.NN.Dropout","Torch.GraduallyTyped.NN.Activation","Torch.GraduallyTyped.NN.Normalization","Torch.GraduallyTyped.NN.Sparse","Torch.GraduallyTyped.NN.Loss","Torch.GraduallyTyped.NN.Training","Torch.GraduallyTyped.NN.Functional","Torch.GraduallyTyped.NN.Functional.Dropout","Torch.GraduallyTyped.NN.Functional.Activation","Torch.GraduallyTyped.NN.Functional.Linear","Torch.GraduallyTyped.NN.Functional.NonLinearActivation","Torch.GraduallyTyped.NN.Functional.Normalization","Torch.GraduallyTyped.NN.Functional.Sparse","Torch.GraduallyTyped.NN.Functional.Loss","Torch.GraduallyTyped.Internal.TensorOptions","Torch.GraduallyTyped.Internal.Void","Torch.GraduallyTyped.Internal.Vector","Torch.Language","Torch.Language.SpiderSQL","Torch.Data.Parser","Control.Monad.Fresh","-Wall","-fplugin","GHC.TypeLits.Normalise","-fplugin","GHC.TypeLits.KnownNat.Solver","-fplugin","GHC.TypeLits.Extra.Solver","-fconstraint-solver-iterations=0","-hide-all-packages"], componentRoot = "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed", componentDependencies = ["experimental/gradually-typed/hasktorch-gradually-typed.cabal","cabal.project","cabal.project.local"]},"/nix/store/gfyfznxlch18bpa1mnzw17zdx8pgsqcr-ghc-shell-for-packages-ghc-9.0.1-env/lib/ghc-9.0.1")
2021-08-20 19:33:17.264663 [ThreadId 127] INFO hls:	Using interface files cache dir: /Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7
2021-08-20 19:33:17.265322 [ThreadId 127] INFO hls:	Making new HscEnv[hasktorch-gradually-typed-0.2.0.0-inplace]
2021-08-20 19:33:17.277681 [ThreadId 127] DEBUG hls:	New Component Cache HscEnvEq: (([],Just HscEnvEq 34),fromList [("/Users/torsten.scholak/Projects/thirdParty/hasktorch/hie.yaml",Just 2021-08-18 13:37:57.029496539 UTC),("cabal.project",Just 2021-08-19 23:44:52.686378146 UTC),("cabal.project.local",Nothing),("experimental/gradually-typed/hasktorch-gradually-typed.cabal",Just 2021-08-19 23:44:45.607654213 UTC)])
2021-08-20 19:33:17.775275 [ThreadId 127] DEBUG hls:	Known files updated: fromList [(TargetModule Torch.GraduallyTyped.NN.Sparse,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Sparse.hs"]),(TargetModule Torch.GraduallyTyped.Prelude.Bool,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude/Bool.hs"]),(TargetModule Torch.GraduallyTyped.Random,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Random.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.Pegasus,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Pegasus.hs"]),(TargetModule Torch.GraduallyTyped.NN.Training,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Training.hs"]),(TargetModule Torch.GraduallyTyped.NN.Loss,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Loss.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.Type,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Type.hs"]),(TargetModule Torch.GraduallyTyped.Optim,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Optim.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.Comparison,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Comparison.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.Type,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Type.hs"]),(TargetModule Torch.GraduallyTyped.Layout,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Layout.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Sparse,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Sparse.hs"]),(TargetModule Torch.GraduallyTyped.Autograd,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Autograd.hs"]),(TargetModule Torch.GraduallyTyped.Shape.Type,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Shape/Type.hs"]),(TargetModule Torch.GraduallyTyped.Internal.Vector,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Internal/Vector.hs"]),(TargetModule Torch.GraduallyTyped.DType,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/DType.hs"]),(TargetModule Torch.GraduallyTyped.Shape,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Shape.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.ThreeB,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/ThreeB.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Linear,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Linear.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.Large,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/Large.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.RoBERTa,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/RoBERTa.hs"]),(TargetModule Torch.GraduallyTyped.Scalar,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Scalar.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GCrossAttention,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GCrossAttention.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.Common,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/Common.hs"]),(TargetModule Torch.GraduallyTyped.LearningRateSchedules,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/LearningRateSchedules.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.Pegasus.Common,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Pegasus/Common.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.BlasLapack,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/BlasLapack.hs"]),(TargetModule Torch.GraduallyTyped.NN.Linear,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Linear.hs"]),(TargetModule Torch.Language,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/Language.hs"]),(TargetModule Torch.GraduallyTyped.Index.Type,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Index/Type.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.Generation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.Other,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Other.hs"]),(TargetModule Torch.GraduallyTyped.Device,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Device.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BART,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BART.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BART.Common,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BART/Common.hs"]),(TargetModule Control.Monad.Fresh,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Control/Monad/Fresh.hs"]),(TargetModule Torch.GraduallyTyped,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped.hs"]),(TargetModule Torch.GraduallyTyped.Prelude.TypeLits,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude/TypeLits.hs"]),(TargetModule Torch.GraduallyTyped.NN.Type,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Type.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.Reduction,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Reduction.hs"]),(TargetModule Torch.GraduallyTyped.Tensor,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor.hs"]),(TargetModule Torch.GraduallyTyped.NN,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN.hs"]),(TargetModule Torch.GraduallyTyped.NN.Class,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Class.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.Generation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/Generation.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GStack,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GStack.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.Pegasus.XSum,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Pegasus/XSum.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BART.Base,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BART/Base.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GFeedForwardNetwork,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GFeedForwardNetwork.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Dropout,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Dropout.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GEncoderOnly,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GEncoderOnly.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.Other,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Other.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Normalization,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Normalization.hs"]),(TargetModule Torch.GraduallyTyped.NN.Activation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Activation.hs"]),(TargetModule Torch.GraduallyTyped.NN.Initialization,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Initialization.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GLMHead,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GLMHead.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GSelfAttention,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GSelfAttention.hs"]),(TargetModule Torch.GraduallyTyped.Prelude,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.NonLinearActivation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/NonLinearActivation.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.RoBERTa.Common,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/RoBERTa/Common.hs"]),(TargetModule Torch.GraduallyTyped.Internal.Void,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Internal/Void.hs"]),(TargetModule Torch.GraduallyTyped.Index.Class,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Index/Class.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GMultiHeadAttention,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GMultiHeadAttention.hs"]),(TargetModule Torch.GraduallyTyped.Index,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Index.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.Spectral,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Spectral.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Activation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Activation.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BERT,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BERT.hs"]),(TargetModule Torch.GraduallyTyped.NN.Normalization,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Normalization.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BERT.Common,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BERT/Common.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.ElevenB,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/ElevenB.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.Small,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/Small.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.IndexingSlicingJoining,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/IndexingSlicingJoining.hs"]),(TargetModule Torch.GraduallyTyped.Prelude.List,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude/List.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.Creation,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Creation.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GPooler,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GPooler.hs"]),(TargetModule Torch.GraduallyTyped.Prelude.Maybe,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude/Maybe.hs"]),(TargetModule Torch.GraduallyTyped.Unify,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Unify.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.MathOperations.Pointwise,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Pointwise.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GEncoderDecoder,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GEncoderDecoder.hs"]),(TargetFile NormalizedFilePath "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs",fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"]),(TargetModule Torch.GraduallyTyped.Internal.TensorOptions,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Internal/TensorOptions.hs"]),(TargetModule Torch.GraduallyTyped.Tensor.Indexing,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Indexing.hs"]),(TargetModule Torch.GraduallyTyped.RequiresGradient,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/RequiresGradient.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GTransformer,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GTransformer.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.GBlock,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GBlock.hs"]),(TargetModule Torch.GraduallyTyped.NN.Dropout,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Dropout.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.BERT.BaseUncased,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BERT/BaseUncased.hs"]),(TargetModule Torch.Language.SpiderSQL,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/Language/SpiderSQL.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.T5.Base,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/T5/Base.hs"]),(TargetModule Torch.GraduallyTyped.Shape.Class,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Shape/Class.hs"]),(TargetModule Torch.GraduallyTyped.NN.Functional.Loss,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Functional/Loss.hs"]),(TargetModule Torch.Data.Parser,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/Data/Parser.hs"]),(TargetModule Torch.GraduallyTyped.NN.Transformer.RoBERTa.Base,fromList ["/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/RoBERTa/Base.hs"])]
2021-08-20 19:33:17.79174 [ThreadId 127] DEBUG hls:	Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs,IsFileOfInterest; /Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs,GhcSessionIO; ] (aborting the previous one took 0.00s)
2021-08-20 19:33:17.792002 [ThreadId 60] DEBUG hls:	Finishing build session(exception: AsyncCancelled)
2021-08-20 19:33:17.801691 [ThreadId 263] DEBUG hls:	hlint:getIdeas:file:NormalizedFilePath "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:17.815742 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:17.837733 [ThreadId 425] INFO hls:	finish: ModuleName.ghcSession (took 0.04s)
2021-08-20 19:33:17.83777 [ThreadId 423] INFO hls:	finish: ModuleName.ghcSession (took 0.04s)
2021-08-20 19:33:17.837765 [ThreadId 426] INFO hls:	finish: ModuleName.ghcSession (took 0.04s)
2021-08-20 19:33:17.837837 [ThreadId 424] INFO hls:	finish: ModuleName.ghcSession (took 0.04s)
2021-08-20 19:33:17.837828 [ThreadId 427] INFO hls:	finish: ModuleName.ghcSession (took 0.04s)
2021-08-20 19:33:17.837816 [ThreadId 430] INFO hls:	finish: ModuleName.ghcSession (took 0.02s)

<no location info>: warning: [-Wmissed-extra-shared-lib]
    dlopen(libtokenizers_haskell.dylib, 5): image not found
    It's OK if you don't want to use symbols from it directly.
    (the package DLL is loaded by the system linker
     which manages dependencies by itself).
2021-08-20 19:33:18.48685 [ThreadId 443] INFO hls:	finish: ModuleName.ghcSession (took 0.00s)
2021-08-20 19:33:18.486517 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:18.487115 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"
2021-08-20 19:33:18.487494 [ThreadId 443] INFO hls:	finish: ModuleName.ghcSession (took 0.00s)
2021-08-20 19:33:18.488213 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs"

<no location info>: warning: [-Wmissed-extra-shared-lib]
    dlopen(libstdc++.dylib, 5): image not found
    It's OK if you don't want to use symbols from it directly.
    (the package DLL is loaded by the system linker
     which manages dependencies by itself).

<no location info>: warning: [-Wmissed-extra-shared-lib]
    dlopen(libstdc++.dylib, 5): image not found
    It's OK if you don't want to use symbols from it directly.
    (the package DLL is loaded by the system linker
     which manages dependencies by itself).
2021-08-20 19:33:19.464232 [ThreadId 437] INFO hls:	finish: ModuleName.ghcSession (took 0.00s)
2021-08-20 19:33:19.470608 [ThreadId 436] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.470738 [ThreadId 436] INFO hls:	finish: Pragmas.GetParsedModule (took 1.31s)
2021-08-20 19:33:19.470767 [ThreadId 447] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.47084 [ThreadId 443] INFO hls:	finish: Pragmas.GetParsedModule (took 1.67s)
2021-08-20 19:33:19.470849 [ThreadId 436] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.470887 [ThreadId 447] INFO hls:	finish: GhcideCodeActions.getParsedModule (took 1.67s)
2021-08-20 19:33:19.471037 [ThreadId 443] INFO hls:	finish: Outline (took 1.67s)
2021-08-20 19:33:19.471078 [ThreadId 447] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.67s)
2021-08-20 19:33:19.471125 [ThreadId 446] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.67s)
2021-08-20 19:33:19.471271 [ThreadId 436] INFO hls:	finish: Pragmas.GetFileContents (took 0.00s)
2021-08-20 19:33:19.471774 [ThreadId 447] INFO hls:	finish: GhcideCodeActions.getParsedModule (took 1.31s)
2021-08-20 19:33:19.471859 [ThreadId 443] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.67s)
2021-08-20 19:33:19.471942 [ThreadId 446] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.66s)
2021-08-20 19:33:19.471973 [ThreadId 436] INFO hls:	finish: HaddockComments.GetAnnotatedParsedSource (took 1.67s)
2021-08-20 19:33:19.472091 [ThreadId 447] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.472207 [ThreadId 446] INFO hls:	finish: Outline (took 1.67s)
2021-08-20 19:33:19.472231 [ThreadId 436] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.67s)
2021-08-20 19:33:19.472239 [ThreadId 447] INFO hls:	finish: ModuleName.GetParsedModule (took 0.00s)
2021-08-20 19:33:19.472296 [ThreadId 446] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.472337 [ThreadId 436] INFO hls:	finish: HaddockComments.GetAnnotatedParsedSource (took 1.31s)
2021-08-20 19:33:19.472118 [ThreadId 443] INFO hls:	finish: eval.GetParsedModuleWithComments (took 0.98s)
2021-08-20 19:33:19.472502 [ThreadId 446] INFO hls:	finish: ModuleName.GetParsedModule (took 1.63s)
2021-08-20 19:33:19.472509 [ThreadId 447] INFO hls:	finish: eval.GetParsedModuleWithComments (took 0.98s)
2021-08-20 19:33:19.472543 [ThreadId 436] INFO hls:	finish: eval.GetParsedModuleWithComments (took 1.67s)
2021-08-20 19:33:19.472584 [ThreadId 446] INFO hls:	finish: importLens (took 1.67s)
2021-08-20 19:33:19.472601 [ThreadId 436] INFO hls:	finish: importLens (took 0.98s)
2021-08-20 19:33:19.472733 [ThreadId 436] INFO hls:	finish: Outline (took 1.31s)
2021-08-20 19:33:19.472976 [ThreadId 443] INFO hls:	finish: ModuleName.GetParsedModule (took 0.98s)
2021-08-20 19:33:19.473006 [ThreadId 436] INFO hls:	finish: eval.GetParsedModuleWithComments (took 0.99s)
2021-08-20 19:33:19.473058 [ThreadId 443] INFO hls:	finish: ModuleName.GetParsedModule (took 0.98s)
2021-08-20 19:33:19.472556 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.472886 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.471294 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.473014 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.472939 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.471921 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.47457 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.474461 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.47444 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.474511 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.474607 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.474546 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.471214 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.475069 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.475142 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.475229 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.479663 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.479669 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "excluded comments" "[]"
2021-08-20 19:33:19.483242 [ThreadId 446] INFO hls:	finish: Pragmas.GetFileContents (took 0.00s)
2021-08-20 19:33:19.485327 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.487107 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.01s"
2021-08-20 19:33:19.487141 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.01s"
2021-08-20 19:33:19.486916 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.48703 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.487065 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.488804 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.01s"
2021-08-20 19:33:19.488931 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.00s"
2021-08-20 19:33:19.488829 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.488866 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList [(Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 0, _character = 26}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE DataKinds #-}\"}),(Range {_start = Position {_line = 1, _character = 0}, _end = Position {_line = 1, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE FlexibleContexts #-}\"}),(Range {_start = Position {_line = 2, _character = 0}, _end = Position {_line = 2, _character = 22}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE GADTs #-}\"}),(Range {_start = Position {_line = 3, _character = 0}, _end = Position {_line = 3, _character = 38}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PartialTypeSignatures #-}\"}),(Range {_start = Position {_line = 4, _character = 0}, _end = Position {_line = 4, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE PatternSynonyms #-}\"}),(Range {_start = Position {_line = 5, _character = 0}, _end = Position {_line = 5, _character = 27}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RankNTypes #-}\"}),(Range {_start = Position {_line = 6, _character = 0}, _end = Position {_line = 6, _character = 32}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE RecordWildCards #-}\"}),(Range {_start = Position {_line = 7, _character = 0}, _end = Position {_line = 7, _character = 36}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE ScopedTypeVariables #-}\"}),(Range {_start = Position {_line = 8, _character = 0}, _end = Position {_line = 8, _character = 33}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeApplications #-}\"}),(Range {_start = Position {_line = 9, _character = 0}, _end = Position {_line = 9, _character = 29}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeFamilies #-}\"}),(Range {_start = Position {_line = 10, _character = 0}, _end = Position {_line = 10, _character = 30}},RawBlockComment {getRawBlockComment = \"{-# LANGUAGE TypeOperators #-}\"})]}"
2021-08-20 19:33:19.496068 [ThreadId 556] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "1.01s"
2021-08-20 19:33:19.496141 [ThreadId 207] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "2.33s"
2021-08-20 19:33:19.496172 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.01s"
2021-08-20 19:33:19.497703 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.01s"
2021-08-20 19:33:19.497891 [ThreadId 144] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "2.97s"
2021-08-20 19:33:19.497925 [ThreadId 162] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "2.71s"
2021-08-20 19:33:19.497823 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.498189 [ThreadId 177] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "2.70s"
2021-08-20 19:33:19.497995 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.498274 [ThreadId 549] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "1.01s"
2021-08-20 19:33:19.498107 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "Tests" "0 tests in 11 sections 0 setups 0 lenses."
2021-08-20 19:33:19.49835 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.00s"
2021-08-20 19:33:19.498403 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.00s"
2021-08-20 19:33:19.49848 [ThreadId 192] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "2.59s"
2021-08-20 19:33:19.498458 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "tests" "0.00s"
2021-08-20 19:33:19.49851 [ThreadId 269] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "1.68s"
2021-08-20 19:33:19.498556 [ThreadId 563] DEBUG hls:	src/Ide/Plugin/Eval/CodeLens.hs:192:15 "codeLens" "1.01s"
2021-08-20 19:33:20.30474 [ThreadId 1608] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Scalar.hie"
2021-08-20 19:33:20.304811 [ThreadId 1608] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Scalar.hs
2021-08-20 19:33:20.799509 [ThreadId 1627] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Prelude.hie"
2021-08-20 19:33:20.799586 [ThreadId 1627] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Prelude.hs
2021-08-20 19:33:20.837144 [ThreadId 1686] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Index/Type.hie"
2021-08-20 19:33:20.837231 [ThreadId 1686] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Index/Type.hs
2021-08-20 19:33:20.860814 [ThreadId 1691] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/RequiresGradient.hie"
2021-08-20 19:33:20.860904 [ThreadId 1691] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/RequiresGradient.hs
2021-08-20 19:33:20.872765 [ThreadId 1695] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Layout.hie"
2021-08-20 19:33:20.872884 [ThreadId 1695] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Layout.hs
2021-08-20 19:33:20.87562 [ThreadId 1698] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Device.hie"
2021-08-20 19:33:20.875714 [ThreadId 1698] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Device.hs
2021-08-20 19:33:20.916573 [ThreadId 1701] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/DType.hie"
2021-08-20 19:33:20.916691 [ThreadId 1701] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/DType.hs
2021-08-20 19:33:21.00468 [ThreadId 1704] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Shape/Type.hie"
2021-08-20 19:33:21.004767 [ThreadId 1704] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Shape/Type.hs
2021-08-20 19:33:21.285991 [ThreadId 1770] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Shape/Class.hie"
2021-08-20 19:33:21.286092 [ThreadId 1770] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Shape/Class.hs
2021-08-20 19:33:21.997429 [ThreadId 1798] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Tensor/Type.hie"
2021-08-20 19:33:21.997528 [ThreadId 1798] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Type.hs
2021-08-20 19:33:22.071061 [ThreadId 1955] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Random.hie"
2021-08-20 19:33:22.071159 [ThreadId 1955] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Random.hs
2021-08-20 19:33:22.101826 [ThreadId 1989] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Tensor/MathOperations/Comparison.hie"
2021-08-20 19:33:22.10201 [ThreadId 1989] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/MathOperations/Comparison.hs
2021-08-20 19:33:22.16855 [ThreadId 1995] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Tensor/Creation.hie"
2021-08-20 19:33:22.168645 [ThreadId 1995] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/Creation.hs
2021-08-20 19:33:22.187677 [ThreadId 2002] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/Tensor/IndexingSlicingJoining.hie"
2021-08-20 19:33:22.187766 [ThreadId 2002] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/Tensor/IndexingSlicingJoining.hs
2021-08-20 19:33:22.783405 [ThreadId 2089] DEBUG hls:	SUCCEEDED LOADING HIE FILE FOR:"/Users/torsten.scholak/.cache/ghcide/hasktorch-gradually-typed-0.2.0.0-inplace-ad13d4d751279dd5fe5eb75e2dcbb5695e2f54b7/Torch/GraduallyTyped/NN/Class.hie"
2021-08-20 19:33:22.783486 [ThreadId 2089] DEBUG hls:	Re-indexing hie file for/Users/torsten.scholak/Projects/thirdParty/hasktorch/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Class.hs
2021-08-20 19:33:22.918091 [ThreadId 2618] INFO hls:	finish: codeLens.TypeCheck (took 5.12s)
2021-08-20 19:33:22.918225 [ThreadId 2619] INFO hls:	finish: codeLens.TypeCheck (took 5.12s)
2021-08-20 19:33:22.918283 [ThreadId 2621] INFO hls:	finish: codeLens.TypeCheck (took 5.12s)
2021-08-20 19:33:22.918292 [ThreadId 2626] INFO hls:	finish: codeLens.TypeCheck (took 5.10s)
2021-08-20 19:33:22.9183 [ThreadId 2624] INFO hls:	finish: codeLens.TypeCheck (took 5.12s)
2021-08-20 19:33:22.918316 [ThreadId 2628] INFO hls:	finish: codeLens.TypeCheck (took 4.43s)
2021-08-20 19:33:22.91831 [ThreadId 2625] INFO hls:	finish: codeLens.TypeCheck (took 5.12s)
2021-08-20 19:33:22.918326 [ThreadId 2630] INFO hls:	finish: codeLens.TypeCheck (took 3.45s)
2021-08-20 19:33:22.918378 [ThreadId 2629] INFO hls:	finish: codeLens.TypeCheck (took 3.45s)
2021-08-20 19:33:22.918353 [ThreadId 2627] INFO hls:	finish: retrie (took 4.76s)
2021-08-20 19:33:22.918372 [ThreadId 2620] INFO hls:	finish: retrie (took 5.12s)
2021-08-20 19:33:22.918479 [ThreadId 2623] INFO hls:	finish: MinimalImports (took 3.45s)
2021-08-20 19:33:22.918495 [ThreadId 2618] INFO hls:	finish:  (took 4.43s)
2021-08-20 19:33:22.918502 [ThreadId 2619] INFO hls:	finish:  (took 5.12s)
2021-08-20 19:33:22.91852 [ThreadId 2621] INFO hls:	finish:  (took 5.10s)
2021-08-20 19:33:22.918564 [ThreadId 2626] INFO hls:	finish:  (took 5.12s)
2021-08-20 19:33:22.91858 [ThreadId 2624] INFO hls:	finish:  (took 5.12s)
2021-08-20 19:33:22.918611 [ThreadId 2628] INFO hls:	finish:  (took 4.43s)
2021-08-20 19:33:22.918626 [ThreadId 2625] INFO hls:	finish:  (took 5.12s)
2021-08-20 19:33:22.918716 [ThreadId 2629] INFO hls:	finish: MinimalImports (took 3.45s)
2021-08-20 19:33:22.918761 [ThreadId 2630] INFO hls:	finish:  (took 4.43s)
2021-08-20 19:33:22.918763 [ThreadId 2620] INFO hls:	finish:  (took 5.12s)
2021-08-20 19:33:22.938376 [ThreadId 2665] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938435 [ThreadId 2666] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938488 [ThreadId 2670] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938509 [ThreadId 2669] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938556 [ThreadId 2671] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938544 [ThreadId 2668] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938574 [ThreadId 2672] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938582 [ThreadId 2667] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.93859 [ThreadId 2673] INFO hls:	finish: codeLens.GetBindings (took 0.02s)
2021-08-20 19:33:22.938733 [ThreadId 2682] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938735 [ThreadId 2683] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938781 [ThreadId 2684] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938842 [ThreadId 2685] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938876 [ThreadId 2688] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938955 [ThreadId 2686] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938968 [ThreadId 2687] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938975 [ThreadId 2689] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.938983 [ThreadId 2690] INFO hls:	finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:22.969279 [ThreadId 2717] DEBUG hls:	finish: InitialLoad (took 5.14s)
2021-08-20 19:33:23.174656 [ThreadId 2730] INFO hls:	finish: Pragmas.GetParsedModule (took 0.00s)
2021-08-20 19:33:23.174675 [ThreadId 2734] INFO hls:	finish: GhcideCodeActions.GetFileContents (took 0.00s)
2021-08-20 19:33:23.174752 [ThreadId 2740] INFO hls:	finish: importLens (took 0.00s)
2021-08-20 19:33:23.174777 [ThreadId 2742] INFO hls:	finish: retrie (took 0.00s)
2021-08-20 19:33:23.174801 [ThreadId 2732] INFO hls:	finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s)
2021-08-20 19:33:23.174821 [ThreadId 2738] INFO hls:	finish: GhcideCodeActions.GhcSession (took 0.00s)
2021-08-20 19:33:23.174944 [ThreadId 2744] INFO hls:	finish: Pragmas.GetFileContents (took 0.00s)
2021-08-20 19:33:23.174914 [ThreadId 2736] INFO hls:	finish: GhcideCodeActions.GetGlobalBindingTypeSigs (took 0.00s)
2021-08-20 19:33:23.175011 [ThreadId 2746] INFO hls:	finish: GhcideCodeActions.GetAnnotatedParsedSource (took 0.00s)
2021-08-20 19:33:23.175043 [ThreadId 2748] INFO hls:	finish: MinimalImports (took 0.00s)
2021-08-20 19:33:23.175112 [ThreadId 2751] INFO hls:	finish: GhcideCodeActions.TypeCheck (took 0.00s)
2021-08-20 19:33:23.175188 [ThreadId 2753] INFO hls:	finish: GhcideCodeActions.GetBindings (took 0.00s)
2021-08-20 19:33:23.175335 [ThreadId 2755] INFO hls:	finish: GhcideCodeActions.getIdeOptions (took 0.00s)
2021-08-20 19:33:23.175475 [ThreadId 2757] INFO hls:	finish: GhcideCodeActions.GetParsedModule (took 0.00s)
2021-08-20 19:33:23.175894 [ThreadId 2759] INFO hls:	finish: GhcideCodeActions.GetParsedModule (took 0.00s)
2021-08-20 19:33:23.175988 [ThreadId 2761] INFO hls:	finish: GhcideCodeActions.GetAnnotatedParsedSource (took 0.00s)
2021-08-20 19:33:23.176186 [ThreadId 2763] INFO hls:	finish: GhcideCodeActions.GetFileContents (took 0.00s)
2021-08-20 19:33:23.850961 [ThreadId 2765] INFO hls:	finish: GhcideCodeActions.GetAnnotatedParsedSource (took 0.00s)
2021-08-20 19:33:23.851418 [ThreadId 2767] INFO hls:	finish: GhcideCodeActions.GetParsedModule (took 0.00s)
2021-08-20 19:33:23.851478 [ThreadId 2769] INFO hls:	finish: GhcideCodeActions.GetFileContents (took 0.00s)
2021-08-20 19:33:23.852485 [ThreadId 2771] INFO hls:	finish: GhcideCodeActions.TypeCheck (took 0.00s)
2021-08-20 19:33:23.852536 [ThreadId 2773] INFO hls:	finish: GhcideCodeActions.GetHieAst (took 0.00s)
2021-08-20 19:33:23.853339 [ThreadId 2775] INFO hls:	finish: GhcideCodeActions.getParsedModule (took 0.00s)
haskell-language-server: Prelude.head: empty list
[Info  - 7:33:24 PM] Connection to server got closed. Server will restart.
[Error - 7:33:24 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:247:58221)
    at Object.dispose (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:78088)
    at E.handleConnectionClosed (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:78300)
    at E.handleConnectionClosed (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:247:11275)
    at t (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:76393)
    at invoke (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:155272)
    at o.fire (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:156033)
    at J (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:247:47583)
    at invoke (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:155272)
    at o.fire (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:1:156033)
    at fireClose (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:247:37656)
    at Socket.<anonymous> (/Users/torsten.scholak/.vscode/extensions/haskell.haskell-1.6.0/dist/extension.js:247:39236)
    at Socket.emit (events.js:327:22)
    at Pipe.<anonymous> (net.js:673:12)
@tscholak
Copy link
Contributor Author

tscholak commented Aug 20, 2021

Update: the problem (haskell-language-server: Prelude.head: empty list) is also gone if I comment the type signatures of sedtOutputToInput and prepNext in https://github.com/hasktorch/hasktorch/blob/744dc4aff70719c9149807e40dacce59fd77484c/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs but leave their bodies.

@tscholak
Copy link
Contributor Author

Cleaning up the imports made the problem (haskell-language-server: Prelude.head: empty list) also go away: hasktorch/hasktorch@0d1a39a

@tscholak
Copy link
Contributor Author

Here's the minimum diff that makes it crash again:

diff --git a/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs b/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs
index 4b57c7f7..2d4b359b 100644
--- a/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs
+++ b/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/Generation.hs
@@ -12,9 +12,9 @@

 module Torch.GraduallyTyped.NN.Transformer.Generation where

-import Control.Lens (Lens)
+import Control.Monad.State ( MonadState, MonadState(..) )
+import Control.Lens (Lens, Traversal, Lens', (^.), (%~))
 import Control.Monad.Catch (MonadThrow)
-import Control.Monad.State (MonadState (..), get, put)
 import Data.Function (fix)
 import Foreign.ForeignPtr (ForeignPtr)
 import Torch.GraduallyTyped.DType (DType (..), DataType (..))

@tscholak
Copy link
Contributor Author

@jneira jneira added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. os: nixos type: setup labels Aug 21, 2021
@jneira
Copy link
Member

jneira commented Aug 21, 2021

wow many thanks for reducing the repro case at its minimum, could be related with template haskell, as importing Lens' triggers the bug?

@tscholak
Copy link
Contributor Author

Hi @jneira! 🤔 Aren't Lens and Lens' defined in the same file, and isn't Lens' just a specialized type synonym for Lens with a~ b and s~ t?
I have looked around for issues due to TH, but that usually manifests as some weird linking problem. Here I've stumbled on something which looks like a programming error; it's head applied to an empty list after all, and there are just 22 instances of head in the hls code base. One of those has to be it 😀

@tscholak
Copy link
Contributor Author

Is there a way to get a stack trace from hls?

@tscholak
Copy link
Contributor Author

tscholak commented Aug 21, 2021

I just confirmed that the issue is adding (^.) to the imports from Control.Lens.

Edit: no problem with view, (>$), .~, and a bunch of others I tried...
Edit 2: also no issue adding all of Control.Lens with import Control.Lens.
Edit 3: also no issue with import Control.Lens hiding ((^.))
Edit 4: adding import Control.Lens ((^.)) on its own seems to be fine, it's the combination of (^.) and (%~) that brings trouble...
Edit 5: in the other file, Generation.hs, it's the combination of (^.) and Lens that triggers the Prelude.head: empty list error. (%~) (Lens) is the only necessary import in Main.hs (Generation.hs) from Control.Lens.

@tscholak
Copy link
Contributor Author

I'm currently rebuilding hls with profiling...

@tscholak tscholak changed the title HLS crashes in vscode HLS crashes in vscode with Prelude.head: empty list Aug 21, 2021
@tscholak
Copy link
Contributor Author

building hls with profiling is turning out to be cumbersome:

haskell-language-server-lib-haskell-language-server> unpacking sources
haskell-language-server-lib-haskell-language-server> unpacking source archive /nix/store/zfqccmrcf7pl4wrg4k80b0bdb8hzk2nd-source
haskell-language-server-lib-haskell-language-server> source root is source
haskell-language-server-lib-haskell-language-server> patching sources
haskell-language-server-lib-haskell-language-server> configuring
haskell-language-server-lib-haskell-language-server> Configure flags:
haskell-language-server-lib-haskell-language-server> --prefix=/nix/store/1p3rrlskvkyg9fc723f8ya7lj4zyn6wn-haskell-language-server-lib-haskell-language-server-1.3.0.0 lib:haskell-language-server --package-db=clear --package-db=/nix/store/s5hjqjbpakafdabj95nzdy2rhhqqn30p-haskell-language-server-lib-haskell-language-server-1.3.0.0-config/lib/ghc-9.0.1/package.conf.d --flags=-all-formatters --flags=-all-plugins --flags=-brittany --flags=callhierarchy --flags=-class --flags=eval --flags=floskell --flags=-fourmolu --flags=haddockcomments --flags=hlint --flags=importlens --flags=modulename --flags=ormolu --flags=-pedantic --flags=pragmas --flags=-refineimports --flags=retrie --flags=-splice --flags=-stylishhaskell --flags=-tactic --exact-configuration --dependency=extra=extra-1.7.9-7klE0bwYbrT8RttUpWUbox --dependency=async=async-2.2.3-78V81j5En18Hi61iFIOcYo --dependency=base16-bytestring=base16-bytestring-1.0.1.0-9T7blXVSHq0A7MBalfYmrY --dependency=cryptohash-sha1=cryptohash-sha1-0.11.100.1-76A50UqL08yHXaRzujd3cE --dependency=data-default=data-default-0.7.1.1-1iumOtCWSlyJvvL98DXmZi --dependency=ghcide=ghcide-1.4.1.0-4bpIWp62XPoBvyGiPBPGC9 --dependency=gitrev=gitrev-1.3.1-3S5hdXPxjE4SlzdPOZm45 --dependency=lsp=lsp-1.2.0.1-Fm6kmRpemoO52DJGkCm3JA --dependency=hie-bios=hie-bios-0.7.1-1EZpMCfz1vW2ze3vmgaDqs --dependency=hiedb=hiedb-0.4.0.0-50Wsrfv4VLW3z8vx8EHzhH --dependency=hls-plugin-api=hls-plugin-api-1.2.0.1-2D88xlPk2cy7Wrhe4QC1EE --dependency=hslogger=hslogger-1.3.1.0-EOjwxAtqfsiHT1txf5ZBS1 --dependency=optparse-applicative=optparse-applicative-0.16.1.0-3Ne7bcYmVcq7zshLgt3P6 --dependency=optparse-simple=optparse-simple-0.1.1.4-6qRygIM8K5o7lMWEJIo1nh --dependency=hls-graph=hls-graph-1.4.0.0-2Zb3AzpVYCcJHpKIlHYmi0 --dependency=safe-exceptions=safe-exceptions-0.1.7.2-BLlW7OrlhKeFUbm8SODJeT --dependency=sqlite-simple=sqlite-simple-0.4.18.0-EMZhlOfkarLHhI5BQIv96O --dependency=unordered-containers=unordered-containers-0.2.14.0-Kg7qmkpOcrOE72DYzOZTTH --dependency=aeson-pretty=aeson-pretty-0.8.8-4YR42GHOxZLDTYF5XmpiKN --dependency=rts=rts --dependency=ghc-heap=ghc-heap-9.0.1 --dependency=ghc-prim=ghc-prim-0.7.0 --dependency=integer-gmp=integer-gmp-1.1 --dependency=base=base-4.15.0.0 --dependency=deepseq=deepseq-1.4.5.0 --dependency=array=array-0.5.4.0 --dependency=ghc-boot-th=ghc-boot-th-9.0.1 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.17.0.0 --dependency=ghc-bignum=ghc-bignum-1.0 --dependency=exceptions=exceptions-0.10.4 --dependency=stm=stm-2.5.0.0 --dependency=ghc-boot=ghc-boot-9.0.1 --dependency=ghc=ghc-9.0.1 --dependency=Cabal=Cabal-3.4.0.0 --dependency=array=array-0.5.4.0 --dependency=binary=binary-0.8.8.0 --dependency=bytestring=bytestring-0.10.12.1 --dependency=containers=containers-0.6.4.1 --dependency=directory=directory-1.3.6.1 --dependency=filepath=filepath-1.4.2.1 --dependency=ghc-boot=ghc-boot-9.0.1 --dependency=ghc-compact=ghc-compact-0.1.0.0 --dependency=ghc-prim=ghc-prim-0.7.0 --dependency=hpc=hpc-0.6.1.0 --dependency=mtl=mtl-2.2.2 --dependency=parsec=parsec-3.1.14.0 --dependency=process=process-1.6.11.0 --dependency=text=text-1.2.4.1 --dependency=time=time-1.9.3 --dependency=transformers=transformers-0.5.6.2 --dependency=unix=unix-2.7.2.2 --dependency=xhtml=xhtml-3000.2.2.1 --dependency=terminfo=terminfo-0.4.1.4 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ld=ld --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --enable-library-profiling --enable-executable-profiling --enable-static --enable-shared --disable-coverage --enable-library-for-ghci --profiling-detail=default --ghc-options=-Wall --ghc-options=-Wredundant-constraints --ghc-options=-Wno-name-shadowing --ghc-options=-Wno-unticked-promoted-constructors --ghc-options=-dynamic
haskell-language-server-lib-haskell-language-server> Configuring library for haskell-language-server-1.3.0.0..
haskell-language-server-lib-haskell-language-server> Warning: The flag --enable-executable-profiling is deprecated. Please use
haskell-language-server-lib-haskell-language-server> --enable-profiling instead.
haskell-language-server-lib-haskell-language-server> building
haskell-language-server-lib-haskell-language-server> Preprocessing library for haskell-language-server-1.3.0.0..
haskell-language-server-lib-haskell-language-server> Building library for haskell-language-server-1.3.0.0..
haskell-language-server-lib-haskell-language-server> [1 of 4] Compiling Paths_haskell_language_server ( dist/build/autogen/Paths_haskell_language_server.hs, dist/build/Paths_haskell_language_server.o, dist/build/Paths_haskell_language_server.dyn_o )
haskell-language-server-lib-haskell-language-server> [2 of 4] Compiling Ide.Version      ( src/Ide/Version.hs, dist/build/Ide/Version.o, dist/build/Ide/Version.dyn_o )
haskell-language-server-lib-haskell-language-server> [3 of 4] Compiling Ide.Arguments    ( src/Ide/Arguments.hs, dist/build/Ide/Arguments.o, dist/build/Ide/Arguments.dyn_o )
haskell-language-server-lib-haskell-language-server> [4 of 4] Compiling Ide.Main         ( src/Ide/Main.hs, dist/build/Ide/Main.o, dist/build/Ide/Main.dyn_o )
haskell-language-server-lib-haskell-language-server> [1 of 4] Compiling Paths_haskell_language_server ( dist/build/autogen/Paths_haskell_language_server.hs, dist/build/Paths_haskell_language_server.p_o )
haskell-language-server-lib-haskell-language-server> dist/build/autogen/Paths_haskell_language_server.hs:11:1: error:
haskell-language-server-lib-haskell-language-server>     Could not find module ‘Control.Exception’
haskell-language-server-lib-haskell-language-server>     Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.15.0.0’?
haskell-language-server-lib-haskell-language-server>     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
haskell-language-server-lib-haskell-language-server>    |
haskell-language-server-lib-haskell-language-server> 11 | import qualified Control.Exception as Exception
haskell-language-server-lib-haskell-language-server>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
haskell-language-server-lib-haskell-language-server> dist/build/autogen/Paths_haskell_language_server.hs:12:1: error:
haskell-language-server-lib-haskell-language-server>     Could not find module ‘Data.Version’
haskell-language-server-lib-haskell-language-server>     Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.15.0.0’?
haskell-language-server-lib-haskell-language-server>     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
haskell-language-server-lib-haskell-language-server>    |
haskell-language-server-lib-haskell-language-server> 12 | import Data.Version (Version(..))
haskell-language-server-lib-haskell-language-server>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
haskell-language-server-lib-haskell-language-server> dist/build/autogen/Paths_haskell_language_server.hs:13:1: error:
haskell-language-server-lib-haskell-language-server>     Could not find module ‘System.Environment’
haskell-language-server-lib-haskell-language-server>     Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.15.0.0’?
haskell-language-server-lib-haskell-language-server>     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
haskell-language-server-lib-haskell-language-server>    |
haskell-language-server-lib-haskell-language-server> 13 | import System.Environment (getEnv)
haskell-language-server-lib-haskell-language-server>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
haskell-language-server-lib-haskell-language-server> dist/build/autogen/Paths_haskell_language_server.hs:14:1: error:
haskell-language-server-lib-haskell-language-server>     Could not find module ‘Prelude’
haskell-language-server-lib-haskell-language-server>     Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.15.0.0’?
haskell-language-server-lib-haskell-language-server>     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
haskell-language-server-lib-haskell-language-server>    |
haskell-language-server-lib-haskell-language-server> 14 | import Prelude
haskell-language-server-lib-haskell-language-server>    | ^^^^^^^^^^^^^^

@pepeiborra
Copy link
Collaborator

A contribution adding a failing test to the ghcide test suite would be very welcome. Even better if it removes one or more of the head call sites

@tscholak
Copy link
Contributor Author

First I have to figure out which one bites us here, and setting up profiling is a challenge yet to overcome. It could even be in a third-party library.

@pepeiborra
Copy link
Collaborator

A lot of the head call sites in the code actions module can be easily replaced by better pattern matching. That will probably be quicker than building a profiled binary.

To increase the chances of your profiled build, try turning off dynamic linking

@tscholak
Copy link
Contributor Author

thanks for the suggestion to deactivate dynamic linking.

I was able to build hls successfully with profiling with dynamic linking turned off.

Unfortunately, hls does not work without it on macOS. I'm seeing errors like:

Unexpected usage error
dlopen(libtokenizers_haskell.dylib, 5): image not found
CallStack (from -prof):
  Development.IDE.GHC.Error.catchSrcErrors (src/Development/IDE/GHC/Error.hs:(174,1)-(180,109))
  Development.IDE.Core.Preprocessor.preprocessor (src/Development/IDE/Core/Preprocessor.hs:(41,1)-(84,33))
  Development.IDE.Core.Compile.getModSummaryFromImports (src/Development/IDE/Core/Compile.hs:(723,1)-(795,51))
  Development.IDE.Core.Rules.getModSummaryRule (src/Development/IDE/Core/Rules.hs:(810,1)-(838,48))
  Control.Monad.Extra.maybeM (src/Control/Monad/Extra.hs:78:1-30)
  Control.Monad.Extra.firstJustM (src/Control/Monad/Extra.hs:(273,1)-(274,66))
  General.Wait.fromLater (src/General/Wait.hs:(25,1)-(27,27))
  General.Wait.firstJustWaitUnordered (src/General/Wait.hs:(64,1)-(87,58))
  General.Wait.runWait (src/General/Wait.hs:(21,1)-(22,18))
  Control.Concurrent.Extra.withLock (src/Control/Concurrent/Extra.hs:110:1-38)
  Development.Shake.Internal.Core.Database.runLocked (src/Development/Shake/Internal/Core/Database.hs:29:1-50)
  Development.Shake.Internal.Core.Monad.captureRAW (src/Development/Shake/Internal/Core/Monad.hs:229:1-23)
  Development.Shake.Internal.Core.Build.applyKeyValue (src/Development/Shake/Internal/Core/Build.hs:(146,1)-(178,19))
  Development.Shake.Internal.Core.Types.globalBuild (src/Development/Shake/Internal/Core/Types.hs:438:6-16)
  Control.Exception.Extra.catch_ (src/Control/Exception/Extra.hs:113:1-32)
  Development.Shake.Internal.Core.Monad.runRAW (src/Development/Shake/Internal/Core/Monad.hs:(86,1)-(98,50))
  Development.Shake.Internal.Core.Types.runAction (src/Development/Shake/Internal/Core/Types.hs:(69,1)-(77,65))
  General.Thread.newThreadFinally (src/General/Thread.hs:(29,1)-(35,23))
  Control.Concurrent.Extra.modifyVar (src/Control/Concurrent/Extra.hs:157:1-36)
  General.Pool.addPool (src/General/Pool.hs:(110,1)-(112,77))
  General.Pool.runPool (src/General/Pool.hs:(146,1)-(169,125))
  General.Cleanup.withCleanup (src/General/Cleanup.hs:(29,1)-(31,25))
  Development.Shake.Internal.Core.Run.run (src/Development/Shake/Internal/Core/Run.hs:(104,1)-(188,16))
  Development.Shake.Database.shakeRunDatabase (src/Development/Shake/Database.hs:(138,1)-(151,101))
  Development.IDE.Graph.Database.shakeRunDatabaseForKeys (src/Development/IDE/Graph/Database.hs:(33,1)-(36,47))
  Control.Concurrent.Async.asyncWithUnmask (Control/Concurrent/Async.hs:278:1-75)
  Development.IDE.Core.Shake.newSession (src/Development/IDE/Core/Shake.hs:(649,1)-(702,27))
  Development.IDE.Core.Shake.shakeOpen (src/Development/IDE/Core/Shake.hs:(492,1)-(545,19))
  Development.IDE.Core.Service.initialise (src/Development/IDE/Core/Service.hs:(49,1)-(66,20))
  Development.IDE.Core.Tracing.otTracedHandler (src/Development/IDE/Core/Tracing.hs:(62,1)-(71,36))
  Development.IDE.Core.FileStore.setFileModified (src/Development/IDE/Core/FileStore.hs:(263,1)-(276,32))
  Control.Monad.Extra.whenJust (src/Control/Monad/Extra.hs:37:1-36)
  Development.IDE.LSP.Notifications.whenUriFile (src/Development/IDE/LSP/Notifications.hs:43:1-84)
  Ide.Types.mkPluginNotificationHandler (src/Ide/Types.hs:(342,1)-(345,26))
  Development.IDE.LSP.Notifications.descriptor (src/Development/IDE/LSP/Notifications.hs:(46,1)-(122,5))
  Data.Dependent.Map.map (src/Data/Dependent/Map.hs:(832,1)-(835,56))
  Development.IDE.Core.Tracing.otTracedProvider (src/Development/IDE/Core/Tracing.hs:(108,1)-(114,19))
  Development.IDE.Plugin.HLS.asGhcIdePlugin (src/Development/IDE/Plugin/HLS.hs:(48,1)-(63,26))
  Language.LSP.Server.Core.transmuteHandlers (src/Language/LSP/Server/Core.hs:165:1-112)
  Language.LSP.Server.Processing.initializeRequestHandler (src/Language/LSP/Server/Processing.hs:(78,1)-(131,63))
  System.IO.Temp.withTempDirectory (System/IO/Temp.hs:(113,1)-(116,58))
  System.IO.Temp.withSystemTempDirectory (System/IO/Temp.hs:88:1-135)
  Language.LSP.VFS.initVFS (src/Language/LSP/VFS.hs:96:1-88)
  Language.LSP.Server.Control.runServerWith (src/Language/LSP/Server/Control.hs:(82,1)-(94,10))
  Language.LSP.Server.Control.runServerWithHandles (src/Language/LSP/Server/Control.hs:(56,1)-(71,51))
  Control.Concurrent.Async.async (Control/Concurrent/Async.hs:264:1-35)
  UnliftIO.Internals.Async.async (src/UnliftIO/Internals/Async.hs:46:1-47)
  Development.IDE.LSP.LanguageServer.runLanguageServer (src/Development/IDE/LSP/LanguageServer.hs:(54,1)-(180,77))
  Development.IDE.Main.defaultMain (src/Development/IDE/Main.hs:(207,1)-(361,17))
  Ide.Main.runLspMode (src/Ide/Main.hs:(85,1)-(109,7))
  Ide.Main.defaultMain (src/Ide/Main.hs:(36,1)-(69,75))
  Main.main (exe/Main.hs:(13,1)-(21,46))
pragmas
No quick fixes available

@tscholak
Copy link
Contributor Author

tscholak commented Aug 21, 2021

quick update: after resolving #2117, I was able to build and use hls with profiling on linux.

Unfortunately, -with-rtsopts=-xc, the log in vscode's output tab is flooded with stack traces immediately after startup. I can't distinguish non-fatal errors from fatal errors anymore. I also can't scroll. A lot of UI glitches.

extension-output-haskell.haskell-#1: tokenization, wrapping and folding have been turned off for this large file in order to reduce memory usage and void freezing or crashing.

I think there's an async timeout that is being triggered all the time, and that is responsible for all the traces I'm seeing:

*** Exception (reporting due to +RTS -xc): (THUNK_STATIC), stack trace: 
  System.Time.Extra.sleep,
  called from Development.IDE.Core.Debouncer.newAsyncDebouncer,
  called from Development.IDE.Graph.Internal.Rules.addRule,
  called from Development.IDE.Core.Shake.defineEarlyCutoff,
  called from Development.IDE.Core.Rules.getModIfaceFromDiskRule,
  called from Control.Monad.Extra.maybeM,
  called from Control.Monad.Extra.firstJustM,
  called from General.Wait.fromLater,
  called from General.Wait.firstJustWaitUnordered,
  called from General.Wait.runWait,
  called from Control.Concurrent.Extra.withLock,
  called from Development.Shake.Internal.Core.Database.runLocked,
  called from Development.Shake.Internal.Core.Monad.captureRAW,
  called from Development.Shake.Internal.Core.Build.applyKeyValue,
  called from Development.Shake.Internal.Core.Types.globalBuild,
  called from Control.Exception.Extra.catch_,
  called from Development.Shake.Internal.Core.Monad.runRAW,
  called from Development.Shake.Internal.Core.Types.runAction,
  called from General.Thread.newThreadFinally,
  called from Control.Concurrent.Extra.modifyVar,
  called from General.Pool.addPool,
  called from General.Pool.runPool,
  called from General.Cleanup.withCleanup,
  called from Development.Shake.Internal.Core.Run.run,
  called from Development.Shake.Database.shakeRunDatabase,
  called from Development.IDE.Graph.Database.shakeRunDatabaseForKeys,
  called from Control.Concurrent.Async.asyncWithUnmask,
  called from Development.IDE.Core.Shake.newSession,
  called from Development.IDE.Core.Shake.shakeOpen,
  called from Development.IDE.Core.Service.initialise,
  called from Development.IDE.Core.Tracing.otTracedHandler,
  called from Development.IDE.Core.FileStore.setSomethingModified,
  called from Ide.Types.mkPluginNotificationHandler,
  called from Development.IDE.LSP.Notifications.descriptor,
  called from Data.Dependent.Map.map,
  called from Development.IDE.Core.Tracing.otTracedProvider,
  called from Development.IDE.Plugin.HLS.asGhcIdePlugin,
  called from Language.LSP.Server.Core.transmuteHandlers,
  called from Language.LSP.Server.Processing.initializeRequestHandler,
  called from System.IO.Temp.withTempDirectory,
  called from System.IO.Temp.withSystemTempDirectory,
  called from Language.LSP.VFS.initVFS,
  called from Language.LSP.Server.Control.runServerWith,
  called from Language.LSP.Server.Control.runServerWithHandles,
  called from Control.Concurrent.Async.async,
  called from UnliftIO.Internals.Async.async,
  called from Development.IDE.LSP.LanguageServer.runLanguageServer,
  called from Development.IDE.Main.defaultMain,
  called from Ide.Main.runLspMode,
  called from Ide.Main.defaultMain,
  called from Main.main

@tscholak
Copy link
Contributor Author

I found out that the vscode logs are being streamed to ~/.config/Code/logs. The logs with stack traces are between 50-100MB large.
I've been running a search for Prelude.head in these folders, but I can only find references to Prelude.head in log files created when stack traces were turned off.

@tscholak
Copy link
Contributor Author

tscholak commented Aug 21, 2021

OK, that's enough time wasted with profiling. Let me know if anyone wants a dump of all that data. It seems that in hls, exceptions are being thrown all the time which makes this sort of analysis utterly useless.

Here is one that I'm seeing over and over again:

*** Exception (reporting due to +RTS -xc): (THUNK), stack trace:
  Development.IDE.Session.loadSessionWithOptions,
  called from Development.IDE.Core.Rules.loadGhcSession,
  called from General.Wait.firstJustWaitUnordered,
  called from General.Wait.runWait,
  called from Control.Concurrent.Extra.withLock,
  called from Development.Shake.Internal.Core.Database.runLocked,
  called from Development.Shake.Internal.Core.Monad.captureRAW,
  called from Development.Shake.Internal.Core.Build.applyKeyValue,
  called from Development.Shake.Internal.Core.Types.globalBuild,
  called from Development.Shake.Internal.Core.Pool.addPoolWait,
  called from Development.Shake.Internal.Core.Action.parallel,
  called from Control.Exception.Extra.catch_,
  called from Development.Shake.Internal.Core.Monad.runRAW,
  called from Development.Shake.Internal.Core.Types.runAction,
  called from General.Thread.newThreadFinally,
  called from Control.Concurrent.Extra.modifyVar,
  called from General.Pool.addPool,
  called from General.Pool.runPool,
  called from General.Cleanup.withCleanup,
  called from Development.Shake.Internal.Core.Run.run,
  called from Development.Shake.Database.shakeRunDatabase,
  called from Development.IDE.Graph.Database.shakeRunDatabaseForKeys,
  called from Control.Concurrent.Async.asyncWithUnmask,
  called from Development.IDE.Core.Shake.newSession,
  called from Development.IDE.Core.Shake.shakeOpen,
  called from Development.IDE.Core.Service.initialise,
  called from Development.IDE.Core.Tracing.otTracedHandler,
  called from Development.IDE.Core.FileStore.setFileModified,
  called from Control.Monad.Extra.whenJust,
  called from Development.IDE.LSP.Notifications.whenUriFile,
  called from Ide.Types.mkPluginNotificationHandler,
  called from Development.IDE.LSP.Notifications.descriptor,
  called from Data.Dependent.Map.map,
  called from Development.IDE.Core.Tracing.otTracedProvider,
  called from Development.IDE.Plugin.HLS.asGhcIdePlugin,
  called from Language.LSP.Server.Core.transmuteHandlers,
  called from Language.LSP.Server.Processing.initializeRequestHandler,
  called from System.IO.Temp.withTempDirectory,
  called from System.IO.Temp.withSystemTempDirectory,
  called from Language.LSP.VFS.initVFS,
  called from Language.LSP.Server.Control.runServerWith,
  called from Language.LSP.Server.Control.runServerWithHandles,
  called from Control.Concurrent.Async.async,
  called from UnliftIO.Internals.Async.async,
  called from Development.IDE.LSP.LanguageServer.runLanguageServer,
  called from Development.IDE.Main.defaultMain,
  called from Ide.Main.runLspMode,
  called from Ide.Main.defaultMain,
  called from Main.main

@tscholak
Copy link
Contributor Author

I did find something eventually:

*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace: 
  GHC.List.CAF
  --> evaluated by: Ide.Types.mkPluginHandler,
  called from Data.Dependent.Map.unionWithKey,
  called from Development.IDE.Plugin.CodeAction.iePluginDescriptor,
  called from Development.IDE.Plugin.HLS.GhcIde.descriptors,
  called from Data.Dependent.Map.map,
  called from UnliftIO.Exception.catch,
  called from UnliftIO.Exception.catchAny,
  called from Development.IDE.Core.Tracing.otTracedProvider,
  called from UnliftIO.Internals.Async.runFlat,
  called from Development.IDE.Plugin.HLS.asGhcIdePlugin,
  called from Language.LSP.Server.Core.transmuteHandlers,
  called from Language.LSP.Server.Processing.initializeRequestHandler,
  called from System.IO.Temp.withTempDirectory,
  called from System.IO.Temp.withSystemTempDirectory,
  called from Language.LSP.VFS.initVFS,
  called from Language.LSP.Server.Control.runServerWith,
  called from Language.LSP.Server.Control.runServerWithHandles,
  called from Control.Concurrent.Async.async,
  called from UnliftIO.Internals.Async.async,
  called from Development.IDE.LSP.LanguageServer.runLanguageServer,
  called from Development.IDE.Main.defaultMain,
  called from Ide.Main.runLspMode,
  called from Ide.Main.defaultMain,
  called from Main.main
haskell-language-server: Prelude.head: empty list

@jhrcek
Copy link
Collaborator

jhrcek commented Aug 22, 2021

Seeing that ^. is involved, I suspect this might be the same issue as what I found in #2025 (comment)

where the issue is coming from here:

wrapOperatorInParens x = if isAlpha (head x) then x else "(" <> x <> ")"

Basically there's logic that is trying to un-qualify the symbol. It does that by findind the last '.' in the symbol name and calls head on what follows. But in the case of '^.' there's nothing following the last dot, thus the error.
Can you please verify that by putting the Debug.Trace.trace "it's this head!" in front of that head call and checking if it gets triggered in your case?

@tscholak
Copy link
Contributor Author

Wow, déjà vu.

the error will be triggered whenever you have unused import of something that ends with '.' BUT there are some other things imported from that module that you're using.

You went through the same steps and identified the same cause as I did 🙌🏻

Let me see if I can verify that the problems have the same root.

@tscholak
Copy link
Contributor Author

update: I have verified that this issue, #2118, is a duplicate of #2025. I have also verified that

wrapOperatorInParens x = if isAlpha (head x) then x else "(" <> x <> ")"
is where hls crashes. My initial attempt at fixing the bug is successful, #2123, but I have no clue if the fix exhibits the correct behavior. Please help.

@mergify mergify bot closed this as completed in #2123 Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: nixos type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants