Prebuilt dynamic binary won't work with stack-based project(s) on Linux
Your environment
Which OS do you use: Ubuntu 20.04.2 LTS
Which LSP client (editor/plugin) do you use: VSCode + vscode-haskell
Describe your project (alternative: link to the project): plain project created by stack new + extra dependency for boot library (e.g. transformers)
Stack version: Version 2.7.5, Git revision ba147e6f59b2da75b1beb98b1888cce97f7032b1 x86_64 hpack-0.34.4
Steps to reproduce
-
Enable
vscode-haskellPrelease v2.1.3 and make sure it downloads the latest dynamic binary.- Alternatively, you can build HLS manually with
cabal-install+ GHC 9.0.2 installed via GHCup and specify the HLS path to it.
- Alternatively, you can build HLS manually with
-
stack new dummy-project --resolver lts-19.5. -
Add
transformersto thedependenciessection ofpackage.yaml:3.name: dummy-project version: 0.1.0.0 github: "githubuser/dummy-project" license: BSD3 author: "Author name here" maintainer: "[email protected]" copyright: "2022 Author name here" extra-source-files: - README.md - ChangeLog.md description: Please see the README on GitHub at <https://github.com/githubuser/dummy-project#readme> dependencies: - base >= 4.7 && < 5 - transformers library: source-dirs: src executables: dummy-project-exe: main: Main.hs source-dirs: app ghc-options: - -threaded - -rtsopts - -with-rtsopts=-N dependencies: - dummy-project tests: dummy-project-test: main: Spec.hs source-dirs: test ghc-options: - -threaded - -rtsopts - -with-rtsopts=-N dependencies: - dummy-project -
open
src/Main.hs
Expected behaviour
HLS should just work.
Actual behaviour
Line 1 is highlighted with the following linking error:
[{
"resource": "/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/autogen/Paths_dummy_project.hs",
"owner": "Haskell (dummy-project)",
"severity": 8,
"message": "Unexpected usage error\n/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2/transformers-0.5.6.2/libHStransformers-0.5.6.2-ghc9.0.2.so: undefined symbol: base_DataziFunctorziClasses_zdfRead1Either6_closure\n",
"source": "typecheck",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 1
}]
The error vanishes when one compiles HLS manually with stack.
Include debug information
Here is the debug output of Haskell section of Output tab in VSCode (with verbose tracing configuration):
Tool versions found on the $PATH cabal: 3.6.2.0 stack: 2.7.5 ghc: 9.0.2
Consulting the cradle to get project GHC version... Project GHC version: 9.0.2 haskell-language-server exe candidates: ["haskell-language-server-9.0.2","haskell-language-server"] Launching haskell-language-server exe at:/tmp/ghcup-ghc-9.0.2_cabal-3.6.2.0_hls-1.7.0.0_stack-2.7.5/haskell-language-server-9.0.2 2022-04-27T00:06:10.610255Z | Info | No log file specified; using stderr. 2022-04-27T00:06:10.611125Z | Info | haskell-language-server version: 1.7.0.0 (GHC: 9.0.2) (PATH: /home/konn/.ghcup/bin/haskell-language-server-9.0.2~1.7.0.0) 2022-04-27T00:06:10.612200Z | Info | Directory: /home/konn/dummy-project 2022-04-27T00:06:10.612535Z | Info | Starting (haskell-language-server) LSP server... GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False} PluginIds: [ pragmas , floskell , fourmolu , tactics , ormolu , rename , retrie , brittany , callHierarchy , class , haddockComments , eval , importLens , qualifyImportedNames , refineImports , moduleName , hlint , splice , alternateNumberFormat , selectionRange , changeTypeSignature , ghcide-hover-and-symbols , ghcide-code-actions-imports-exports , ghcide-code-actions-type-signatures , ghcide-code-actions-bindings , ghcide-code-actions-fill-holes , ghcide-completions , ghcide-type-lenses , ghcide-core , LSPRecorderCallback ] 2022-04-27T00:06:10.616860Z | Info | Logging heap statistics every 60.00s 2022-04-27T00:06:10.636268Z | Info | Staring LSP server... If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option! 2022-04-27T00:06:10.643774Z | Info | Started LSP server in 0.01s 2022-04-27T00:06:12.430560Z | Debug | Setting initial dynflags... 2022-04-27T00:06:12.430969Z | Debug | shouldRunSubset: True 2022-04-27T00:06:12.431131Z | Warning | Currently, HLS supports GHC 9 only partially. See issue #297 for more detail. 2022-04-27T00:06:12.431429Z | Debug | Initializing exports map from hiedb 2022-04-27T00:06:12.432543Z | Info | Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri 4066485585288568776 "file:///home/konn/dummy-project"], clientSettings = hashed Nothing} 2022-04-27T00:06:12.440667Z | Debug | Done initializing exports map from hiedb. Size: 9 2022-04-27T00:06:12.474091Z | Debug | Shake session initialized 2022-04-27T00:06:12.475493Z | Debug | Configuration changed: Object (fromList [("haskell",Object (fromList [("checkProject",Bool True),("formattingProvider",String "fourmolu"),("ghcupExecutablePath",String ""),("hlint",Object (fromList [("executablePath",String "/Users/hiromi/.local/bin/hlint"),("logLevel",String "info")])),("indentationRules",Object (fromList [("enabled",Bool True)])),("logFile",String ""),("manageHLS",String "GHCup"),("maxCompletions",Number 40.0),("metadataURL",String ""),("openDocumentationInHackage",Bool True),("openSourceInHackage",Bool True),("plugin",Object (fromList [("class",Object (fromList [("globalOn",Bool True)])),("eval",Object (fromList [("config",Object (fromList [("diff",Bool True),("exception",Bool False)])),("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)])),("refineImports",Object (fromList [("globalOn",Bool True)])),("rename",Object (fromList [("config",Object (fromList [("crossModule",Bool False)])),("globalOn",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)]))])),("promptBeforeDownloads",String "true"),("releasesDownloadStoragePath",String ""),("releasesURL",String ""),("serverEnvironment",Object (fromList [])),("serverExecutablePath",String ""),("serverExtraArgs",String ""),("toolchain",Object (fromList [])),("trace",Object (fromList [("client",String "debug"),("server",String "messages")])),("upgradeGHCup",Bool True)]))]) 2022-04-27T00:06:12.477552Z | Debug | Finished build session AsyncCancelled 2022-04-27T00:06:12.477740Z | Debug | Restarting build session due to config change Action Queue: [] Keys: [GetClientSettings; ] Aborting previous build session took 0.00s 2022-04-27T00:06:12.479030Z | Debug | Set files of interest to: fromList [(NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs",Modified {firstOpen = True})] 2022-04-27T00:06:12.479890Z | Debug | Finished build session AsyncCancelled 2022-04-27T00:06:12.479925Z | Debug | Restarting build session due to /home/konn/dummy-project/src/Lib.hs (modified) Action Queue: [] Keys: [ IsFileOfInterest; /home/konn/dummy-project/src/Lib.hs , GetModificationTime; /home/konn/dummy-project/src/Lib.hs , GetClientSettings; ] Aborting previous build session took 0.00s 2022-04-27T00:06:12.480400Z | Debug | Opened text document: file:///home/konn/dummy-project/src/Lib.hs 2022-04-27T00:06:12.481360Z | Debug | Getting hlint ideas for NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs" 2022-04-27T00:06:12.482442Z | Info | Cradle path: src/Lib.hs 2022-04-27T00:06:12.482739Z | Warning | No cradle found for src/Lib.hs. Proceeding with implicit cradle. You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error. [Info - 9:06:12] haskell-language-server version: 1.7.0.0 (GHC: 9.0.2) (PATH: /home/konn/.ghcup/bin/haskell-language-server-9.0.2~1.7.0.0) [Info - 9:06:12] Directory: /home/konn/dummy-project 2022-04-27T00:06:12.490598Z | Debug | Cradle: Cradle {cradleRootDir = "/home/konn/dummy-project", cradleOptsProg = CradleAction: Stack} [Info - 9:06:12] Starting (haskell-language-server) LSP server... GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False} PluginIds: [ pragmas , floskell , fourmolu , tactics , ormolu , rename , retrie , brittany , callHierarchy , class , haddockComments , eval , importLens , qualifyImportedNames , refineImports , moduleName , hlint , splice , alternateNumberFormat , selectionRange , changeTypeSignature , ghcide-hover-and-symbols , ghcide-code-actions-imports-exports , ghcide-code-actions-type-signatures , ghcide-code-actions-bindings , ghcide-code-actions-fill-holes , ghcide-completions , ghcide-type-lenses , ghcide-core , LSPRecorderCallback ] [Info - 9:06:12] Logging heap statistics every 60.00s [Info - 9:06:12] Staring LSP server... If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option! [Info - 9:06:12] Started LSP server in 0.01s Setting initial dynflags... shouldRunSubset: True [Warn - 9:06:12] Currently, HLS supports GHC 9 only partially. See issue #297 for more detail. 2022-04-27T00:06:12.503937Z | Debug | Finished: Hlint.GetFileContents Took: 0.00s Initializing exports map from hiedb [Info - 9:06:12] Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri 4066485585288568776 "file:///home/konn/dummy-project"], clientSettings = hashed Nothing} Done initializing exports map from hiedb. Size: 9 Shake session initialized Configuration changed: Object (fromList [("haskell",Object (fromList [("checkProject",Bool True),("formattingProvider",String "fourmolu"),("ghcupExecutablePath",String ""),("hlint",Object (fromList [("executablePath",String "/Users/hiromi/.local/bin/hlint"),("logLevel",String "info")])),("indentationRules",Object (fromList [("enabled",Bool True)])),("logFile",String ""),("manageHLS",String "GHCup"),("maxCompletions",Number 40.0),("metadataURL",String ""),("openDocumentationInHackage",Bool True),("openSourceInHackage",Bool True),("plugin",Object (fromList [("class",Object (fromList [("globalOn",Bool True)])),("eval",Object (fromList [("config",Object (fromList [("diff",Bool True),("exception",Bool False)])),("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)])),("refineImports",Object (fromList [("globalOn",Bool True)])),("rename",Object (fromList [("config",Object (fromList [("crossModule",Bool False)])),("globalOn",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)]))])),("promptBeforeDownloads",String "true"),("releasesDownloadStoragePath",String ""),("releasesURL",String ""),("serverEnvironment",Object (fromList [])),("serverExecutablePath",String ""),("serverExtraArgs",String ""),("toolchain",Object (fromList [])),("trace",Object (fromList [("client",String "debug"),("server",String "messages")])),("upgradeGHCup",Bool True)]))]) Finished build session AsyncCancelled Restarting build session due to config change Action Queue: [] Keys: [GetClientSettings; ] Aborting previous build session took 0.00s Set files of interest to: fromList [(NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs",Modified {firstOpen = True})] Finished build session AsyncCancelled Restarting build session due to /home/konn/dummy-project/src/Lib.hs (modified) Action Queue: [] Keys: [ IsFileOfInterest; /home/konn/dummy-project/src/Lib.hs , GetModificationTime; /home/konn/dummy-project/src/Lib.hs , GetClientSettings; ] Aborting previous build session took 0.00s Opened text document: file:///home/konn/dummy-project/src/Lib.hs Getting hlint ideas for NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs" [Info - 9:06:12] Cradle path: src/Lib.hs [Warn - 9:06:12] No cradle found for src/Lib.hs. Proceeding with implicit cradle. You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error. Cradle: Cradle {cradleRootDir = "/home/konn/dummy-project", cradleOptsProg = CradleAction: Stack} Finished: Hlint.GetFileContents Took: 0.00s 2022-04-27T00:06:12.745510Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" 2022-04-27T00:06:12.764144Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" 2022-04-27T00:06:12.779299Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "fp" "/home/konn/dummy-project/src/Lib.hs" 2022-04-27 09:06:13.359884596 [ThreadId 93] INFO hie-bios: Building all executables for `dummy-project' once. After a successful build of all of them, only specified executables will be rebuilt. 2022-04-27 09:06:13.362356803 [ThreadId 93] INFO hie-bios: dummy-project> initial-build-steps (lib + exe) 2022-04-27 09:06:13.599257582 [ThreadId 93] INFO hie-bios: Configuring GHCi with the following packages: dummy-project 2022-04-27 09:06:14.512874355 [ThreadId 194] INFO hie-bios: /home/konn/dummy-project/.stack-work/install/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb:/home/konn/.stack/snapshots/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb:/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2/package.conf.d 2022-04-27T00:06:16.327933Z | Debug | Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/konn/dummy-project/.stack-work/odir","-hidir=/home/konn/dummy-project/.stack-work/odir","-hide-all-packages","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build","-i/home/konn/dummy-project/src","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/autogen","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/global-autogen","-stubdir=/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build","-I/usr/lib/x86_64-linux-gnu/openmpi/include","-L/usr/lib/x86_64-linux-gnu/openmpi/lib","-package-id=base-4.15.1.0","-package-id=transformers-0.5.6.2","-optP-include","-optP/home/konn/dummy-project/.stack-work/ghci/f9fdb90f/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/ab27a6ad/ghci-script","-package-db","/home/konn/dummy-project/.stack-work/install/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb","-package-db","/home/konn/.stack/snapshots/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb","-package-db","/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2/package.conf.d"], componentRoot = "/home/konn/dummy-project", componentDependencies = ["dummy-project.cabal","package.yaml","stack.yaml"]},"/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2") Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/konn/dummy-project/.stack-work/odir","-hidir=/home/konn/dummy-project/.stack-work/odir","-hide-all-packages","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build","-i/home/konn/dummy-project/src","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/autogen","-i/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/global-autogen","-stubdir=/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build","-I/usr/lib/x86_64-linux-gnu/openmpi/include","-L/usr/lib/x86_64-linux-gnu/openmpi/lib","-package-id=base-4.15.1.0","-package-id=transformers-0.5.6.2","-optP-include","-optP/home/konn/dummy-project/.stack-work/ghci/f9fdb90f/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/ab27a6ad/ghci-script","-package-db","/home/konn/dummy-project/.stack-work/install/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb","-package-db","/home/konn/.stack/snapshots/x86_64-linux-tinfo6/07a700646c8970fe278d1759c1015e4ba6cc25225b322258ad133885193f4054/9.0.2/pkgdb","-package-db","/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2/package.conf.d"], componentRoot = "/home/konn/dummy-project", componentDependencies = ["dummy-project.cabal","package.yaml","stack.yaml"]},"/home/konn/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/lib/ghc-9.0.2") 2022-04-27T00:06:16.435541Z | Info | Interface files cache directory: /home/konn/.cache/ghcide/main-d4a07533468b45e3108340ffe6df978005720138 2022-04-27T00:06:16.436493Z | Info | Making new HscEnv. In-place unit ids: [main] [Info - 9:06:16] Interface files cache directory: /home/konn/.cache/ghcide/main-d4a07533468b45e3108340ffe6df978005720138 [Info - 9:06:16] Making new HscEnv. In-place unit ids: [main] 2022-04-27T00:06:16.456777Z | Debug | New component cache HscEnvEq: (([],Just HscEnvEq 39),fromList [("dummy-project.cabal",Just 2022-04-26 23:57:14.093131913 UTC),("package.yaml",Just 2022-04-26 23:57:12.849079113 UTC),("stack.yaml",Just 2022-04-26 23:56:07.010286098 UTC)]) New component cache HscEnvEq: (([],Just HscEnvEq 39),fromList [("dummy-project.cabal",Just 2022-04-26 23:57:14.093131913 UTC),("package.yaml",Just 2022-04-26 23:57:12.849079113 UTC),("stack.yaml",Just 2022-04-26 23:56:07.010286098 UTC)]) 2022-04-27T00:06:16.462554Z | Debug | Known files updated: fromList [(TargetFile NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs",fromList ["/home/konn/dummy-project/src/Lib.hs"]),(TargetModule Lib,fromList ["/home/konn/dummy-project/src/Lib.hs"]),(TargetModule Paths_dummy_project,fromList ["/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/autogen/Paths_dummy_project.hs"])] Known files updated: fromList [(TargetFile NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs",fromList ["/home/konn/dummy-project/src/Lib.hs"]),(TargetModule Lib,fromList ["/home/konn/dummy-project/src/Lib.hs"]),(TargetModule Paths_dummy_project,fromList ["/home/konn/dummy-project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/autogen/Paths_dummy_project.hs"])] 2022-04-27T00:06:16.463975Z | Debug | Finished build session AsyncCancelled Finished build session AsyncCancelled 2022-04-27T00:06:16.463990Z | Debug | Restarting build session due to new component Action Queue: [ eval.GetParsedModuleWithComments , ModuleName.ghcSession , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , , ModuleName.ghcSession , codeLens.GhcSession , , eval.GetParsedModuleWithComments , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , RefineImports , codeLens.GhcSession , GhcideCodeActions.getParsedModule , Hlint.GetModSummary , changeSignature.GetParsedModule , splice.codeAction.GitHieAst , AlternateNumberFormat.CollectLiterals , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , importLens , RefineImports , retrie , Pragmas.GhcSession , QualifyImportedNames.TypeCheck , RefineImports , Outline , HaddockComments.GetAnnotatedParsedSource , eval.GetParsedModuleWithComments , ModuleName.ghcSession , , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , RefineImports , codeLens.GhcSession ] Keys: [ IsFileOfInterest; /home/konn/dummy-project/src/Lib.hs , GetKnownTargets; , GhcSessionIO; ] Aborting previous build session took 0.00s Restarting build session due to new component Action Queue: [ eval.GetParsedModuleWithComments , ModuleName.ghcSession , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , , ModuleName.ghcSession , codeLens.GhcSession , , eval.GetParsedModuleWithComments , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , RefineImports , codeLens.GhcSession , GhcideCodeActions.getParsedModule , Hlint.GetModSummary , changeSignature.GetParsedModule , splice.codeAction.GitHieAst , AlternateNumberFormat.CollectLiterals , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , importLens , RefineImports , retrie , Pragmas.GhcSession , QualifyImportedNames.TypeCheck , RefineImports , Outline , HaddockComments.GetAnnotatedParsedSource , eval.GetParsedModuleWithComments , ModuleName.ghcSession , , Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps , RefineImports , codeLens.GhcSession ] Keys: [ IsFileOfInterest; /home/konn/dummy-project/src/Lib.hs , GetKnownTargets; , GhcSessionIO; ] Aborting previous build session took 0.00s 2022-04-27T00:06:16.465665Z | Debug | Getting hlint ideas for NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs" Getting hlint ideas for NormalizedFilePath "/home/konn/dummy-project/src/Lib.hs" 2022-04-27T00:06:16.469216Z | Debug | Finished: ModuleName.ghcSession Took: 0.00s 2022-04-27T00:06:16.469236Z | Debug | Finished: ModuleName.ghcSession Took: 0.00s 2022-04-27T00:06:16.469239Z | Debug | Finished: ModuleName.ghcSession Took: 0.00s 2022-04-27T00:06:16.469311Z | Debug | Finished: codeLens.GhcSession Took: 0.00s 2022-04-27T00:06:16.469295Z | Debug | Finished: codeLens.GhcSession Took: 0.00s 2022-04-27T00:06:16.469502Z | Debug | Finished: codeLens.GhcSession Took: 0.00s 2022-04-27T00:06:16.469506Z | Debug | Finished: Pragmas.GhcSession Took: 0.00s 2022-04-27T00:06:16.469770Z | Debug | Finished: Pragmas.GetFileContents Took: 0.00s 2022-04-27T00:06:16.471232Z | Debug | Finished: Hlint.GetModSummary Took: 0.01s 2022-04-27T00:06:16.471322Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s Finished: ModuleName.ghcSession Took: 0.00s Finished: ModuleName.ghcSession Took: 0.00s Finished: ModuleName.ghcSession Took: 0.00s Finished: codeLens.GhcSession Took: 0.00s Finished: codeLens.GhcSession Took: 0.00s Finished: codeLens.GhcSession Took: 0.00s Finished: Pragmas.GhcSession Took: 0.00s Finished: Pragmas.GetFileContents Took: 0.00s Finished: Hlint.GetModSummary Took: 0.01s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.471333Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.471363Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.471713Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.472222Z | Debug | Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.472232Z | Debug | Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.472253Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.472257Z | Debug | Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.472276Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.01s 2022-04-27T00:06:16.472287Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" 2022-04-27T00:06:16.472458Z | Debug | Finished: splice.codeAction.GitHieAst Took: 0.01s 2022-04-27T00:06:16.472463Z | Debug | Finished: ModuleName.GetParsedModule Took: 0.00s Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.472482Z | Debug | Finished: ModuleName.GetParsedModule Took: 0.00s 2022-04-27T00:06:16.472483Z | Debug | Finished: importLens Took: 0.01s 2022-04-27T00:06:16.472492Z | Debug | Finished: RefineImports Took: 0.01s 2022-04-27T00:06:16.472492Z | Debug | Finished: Pragmas.GetParsedModule Took: 0.00s Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.472569Z | Debug | Finished: HaddockComments.GetAnnotatedParsedSource Took: 0.01s 2022-04-27T00:06:16.472570Z | Debug | Finished: GhcideCodeActions.getParsedModule Took: 0.01s 2022-04-27T00:06:16.472626Z | Debug | Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s 2022-04-27T00:06:16.472679Z | Debug | Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" 2022-04-27T00:06:16.472675Z | Debug | Finished: Outline Took: 0.01s 2022-04-27T00:06:16.472719Z | Debug | Finished: ModuleName.GetParsedModule Took: 0.00s Finished: eval.GetParsedModuleWithComments Took: 0.01s 2022-04-27T00:06:16.473556Z | Debug | Finished: changeSignature.GetParsedModule Took: 0.01s 2022-04-27T00:06:16.474000Z | Debug | Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s 2022-04-27T00:06:16.474685Z | Debug | Finished: AlternateNumberFormat.CollectLiterals Took: 0.01s 2022-04-27T00:06:16.474863Z | Debug | Finished: AlternateNumberFormat.GhcSession Took: 0.00s src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" 2022-04-27T00:06:16.475028Z | Debug | Finished: AlternateNumberFormat.GetFileContents Took: 0.00s src/Ide/Plugin/Eval/CodeLens.hs:127:15 "comments" "Comments {lineComments = fromList [], blockComments = fromList []}" Finished: splice.codeAction.GitHieAst Took: 0.01s Finished: ModuleName.GetParsedModule Took: 0.00s Finished: ModuleName.GetParsedModule Took: 0.00s Finished: importLens Took: 0.01s Finished: RefineImports Took: 0.01s Finished: Pragmas.GetParsedModule Took: 0.00s Finished: HaddockComments.GetAnnotatedParsedSource Took: 0.01s Finished: GhcideCodeActions.getParsedModule Took: 0.01s Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s Finished: Outline Took: 0.01s Finished: ModuleName.GetParsedModule Took: 0.00s Finished: changeSignature.GetParsedModule Took: 0.01s Finished: Wingman.codeLensProvider.GetAnnotatedParsedSource Took: 0.00s Finished: AlternateNumberFormat.CollectLiterals Took: 0.01s Finished: AlternateNumberFormat.GhcSession Took: 0.00s Finished: AlternateNumberFormat.GetFileContents Took: 0.00s 2022-04-27T00:06:16.479786Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." 2022-04-27T00:06:16.480586Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." 2022-04-27T00:06:16.480831Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." 2022-04-27T00:06:16.488255Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" 2022-04-27T00:06:16.488478Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." 2022-04-27T00:06:16.488729Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" 2022-04-27T00:06:16.489014Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.72s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "Tests" "0 tests in 0 sections 0 setups 0 lenses." 2022-04-27T00:06:16.489234Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.71s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" 2022-04-27T00:06:16.489427Z | Debug | src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.74s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "tests" "0.01s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.72s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.71s" src/Ide/Plugin/Eval/CodeLens.hs:127:15 "codeLens" "3.74s" 2022-04-27T00:06:16.501527Z | Debug | Finished: codeLens.TypeCheck Took: 0.03s 2022-04-27T00:06:16.501587Z | Debug | Finished: codeLens.TypeCheck Took: 0.03s 2022-04-27T00:06:16.501608Z | Debug | Finished: codeLens.TypeCheck Took: 0.03s 2022-04-27T00:06:16.501658Z | Debug | Finished: QualifyImportedNames.TypeCheck Took: 0.04s 2022-04-27T00:06:16.501929Z | Debug | LOOKUP UP PERSISTENT FOR: RefineImports 2022-04-27T00:06:16.501955Z | Debug | LOOKUP UP PERSISTENT FOR: MinimalImports 2022-04-27T00:06:16.502077Z | Debug | LOOKUP UP PERSISTENT FOR: RefineImports 2022-04-27T00:06:16.502084Z | Debug | LOOKUP UP PERSISTENT FOR: MinimalImports 2022-04-27T00:06:16.502096Z | Debug | LOOKUP UP PERSISTENT FOR: GetHieAst 2022-04-27T00:06:16.502122Z | Debug | LOOKUP UP PERSISTENT FOR: MinimalImports 2022-04-27T00:06:16.502190Z | Debug | LOOKUP UP PERSISTENT FOR: TypeCheck 2022-04-27T00:06:16.502211Z | Debug | LOOKUP UP PERSISTENT FOR: RefineImports 2022-04-27T00:06:16.502378Z | Debug | LOOKUP UP PERSISTENT FOR: GetBindings 2022-04-27T00:06:16.502392Z | Debug | Finished: codeLens.GetBindings Took: 0.00s 2022-04-27T00:06:16.502415Z | Debug | LOOKUP UP PERSISTENT FOR: GetBindings 2022-04-27T00:06:16.502423Z | Debug | Finished: codeLens.GetBindings Took: 0.00s 2022-04-27T00:06:16.502429Z | Debug | LOOKUP UP PERSISTENT FOR: GetBindings 2022-04-27T00:06:16.502484Z | Debug | Finished: codeLens.GetBindings Took: 0.00s 2022-04-27T00:06:16.502733Z | Debug | Finished: RefineImports Took: 0.04s 2022-04-27T00:06:16.502797Z | Debug | Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s 2022-04-27T00:06:16.502806Z | Debug | Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s 2022-04-27T00:06:16.502828Z | Debug | Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s 2022-04-27T00:06:16.503010Z | Debug | Finished: Took: 0.04s 2022-04-27T00:06:16.503185Z | Debug | Finished: RefineImports Took: 0.04s Finished: codeLens.TypeCheck Took: 0.03s 2022-04-27T00:06:16.503364Z | Debug | Finished: Took: 0.04s 2022-04-27T00:06:16.503835Z | Debug | LOADING HIE FILE FOR /home/konn/dummy-project/src/Lib.hs 2022-04-27T00:06:16.503918Z | Debug | Finished: Took: 0.04s 2022-04-27T00:06:16.504117Z | Debug | Finished: retrie Took: 0.04s 2022-04-27T00:06:16.504310Z | Debug | Finished: RefineImports Took: 0.04s 2022-04-27T00:06:16.504561Z | Debug | Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s 2022-04-27T00:06:16.504728Z | Debug | Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s Finished: codeLens.TypeCheck Took: 0.03s 2022-04-27T00:06:16.505189Z | Debug | Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s Finished: codeLens.TypeCheck Took: 0.03s Finished: QualifyImportedNames.TypeCheck Took: 0.04s LOOKUP UP PERSISTENT FOR: RefineImports LOOKUP UP PERSISTENT FOR: MinimalImports LOOKUP UP PERSISTENT FOR: RefineImports LOOKUP UP PERSISTENT FOR: MinimalImports LOOKUP UP PERSISTENT FOR: GetHieAst LOOKUP UP PERSISTENT FOR: MinimalImports LOOKUP UP PERSISTENT FOR: TypeCheck LOOKUP UP PERSISTENT FOR: RefineImports LOOKUP UP PERSISTENT FOR: GetBindings Finished: codeLens.GetBindings Took: 0.00s LOOKUP UP PERSISTENT FOR: GetBindings Finished: codeLens.GetBindings Took: 0.00s LOOKUP UP PERSISTENT FOR: GetBindings Finished: codeLens.GetBindings Took: 0.00s Finished: RefineImports Took: 0.04s Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s Finished: codeLens.GetGlobalBindingTypeSigs Took: 0.00s Finished: Took: 0.04s Finished: RefineImports Took: 0.04s Finished: Took: 0.04s LOADING HIE FILE FOR /home/konn/dummy-project/src/Lib.hs Finished: Took: 0.04s Finished: retrie Took: 0.04s Finished: RefineImports Took: 0.04s Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s Finished: Wingman.codeLensProvider.GetBindings Took: 0.03s 2022-04-27T00:06:16.521619Z | Debug | SUCCEEDED LOADING HIE FILE FOR /home/konn/.cache/ghcide/main-ae1131e51a19af5991ae65526108c19be7b615c5/Lib.hie 2022-04-27T00:06:16.521913Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.05s SUCCEEDED LOADING HIE FILE FOR /home/konn/.cache/ghcide/main-ae1131e51a19af5991ae65526108c19be7b615c5/Lib.hie Finished: Wingman.judgementForHole.GetHieAst Took: 0.05s 2022-04-27T00:06:16.522585Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.523172Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.523705Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.524147Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.524503Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.524933Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.525356Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.525713Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.526132Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.526431Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.526781Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.527104Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.527431Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.527762Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.528127Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.528476Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.528830Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.529144Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.529459Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.529783Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.530098Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.530421Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.530817Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.531175Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.547695Z | Debug | Finished: InitialLoad Took: 0.08s Finished: InitialLoad Took: 0.08s 2022-04-27T00:06:16.778283Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.778536Z | Debug | Finished: Pragmas.GhcSession Took: 0.00s 2022-04-27T00:06:16.778564Z | Debug | Finished: importLens Took: 0.00s 2022-04-27T00:06:16.778649Z | Debug | Finished: Hlint.GetFileContents Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.778655Z | Debug | Finished: retrie Took: 0.00s 2022-04-27T00:06:16.778711Z | Debug | Finished: QualifyImportedNames.TypeCheck Took: 0.00s Finished: Pragmas.GhcSession Took: 0.00s 2022-04-27T00:06:16.778872Z | Debug | Finished: Pragmas.GetFileContents Took: 0.00s 2022-04-27T00:06:16.778924Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: importLens Took: 0.00s 2022-04-27T00:06:16.778939Z | Debug | Finished: HaddockComments.GetAnnotatedParsedSource Took: 0.00s 2022-04-27T00:06:16.779007Z | Debug | Finished: Hlint.GetModSummary Took: 0.00s 2022-04-27T00:06:16.779012Z | Debug | Finished: splice.codeAction.GitHieAst Took: 0.00s Finished: Hlint.GetFileContents Took: 0.00s 2022-04-27T00:06:16.779056Z | Debug | Finished: Pragmas.GetParsedModule Took: 0.00s 2022-04-27T00:06:16.779056Z | Debug | Finished: RefineImports Took: 0.00s Finished: retrie Took: 0.00s 2022-04-27T00:06:16.779086Z | Debug | Finished: AlternateNumberFormat.CollectLiterals Took: 0.00s 2022-04-27T00:06:16.779161Z | Debug | Finished: GhcideCodeActions.getParsedModule Took: 0.00s Finished: QualifyImportedNames.TypeCheck Took: 0.00s 2022-04-27T00:06:16.779448Z | Debug | Finished: AlternateNumberFormat.GhcSession Took: 0.00s 2022-04-27T00:06:16.779568Z | Debug | Finished: changeSignature.GetParsedModule Took: 0.00s Finished: Pragmas.GetFileContents Took: 0.00s 2022-04-27T00:06:16.779716Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.779723Z | Debug | Finished: AlternateNumberFormat.GetFileContents Took: 0.00s 2022-04-27T00:06:16.780240Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.781288Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: HaddockComments.GetAnnotatedParsedSource Took: 0.00s 2022-04-27T00:06:16.781895Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.782399Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.782875Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Hlint.GetModSummary Took: 0.00s 2022-04-27T00:06:16.783337Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.783776Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: splice.codeAction.GitHieAst Took: 0.00s 2022-04-27T00:06:16.784208Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Pragmas.GetParsedModule Took: 0.00s 2022-04-27T00:06:16.784730Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: RefineImports Took: 0.00s 2022-04-27T00:06:16.785179Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: AlternateNumberFormat.CollectLiterals Took: 0.00s Finished: GhcideCodeActions.getParsedModule Took: 0.00s 2022-04-27T00:06:16.785653Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: AlternateNumberFormat.GhcSession Took: 0.00s 2022-04-27T00:06:16.786053Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: changeSignature.GetParsedModule Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.786620Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: AlternateNumberFormat.GetFileContents Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.787066Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.787495Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.787913Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.788365Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.788827Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.789321Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.789837Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:06:16.790237Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.790696Z | Debug | Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s 2022-04-27T00:06:16.791190Z | Debug | Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s Finished: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps Took: 0.00s Finished: Wingman.judgementForHole.GetHieAst Took: 0.00s 2022-04-27T00:07:10.674561Z | Info | Live bytes: 0.00MB Heap size: 0.00MB [Info - 9:07:10] Live bytes: 0.00MB Heap size: 0.00MB
</details>
This is unfortunate. Multiple versions of certain configurations of GHC 9.0.2 were released, due to issues with missing profiling libraries. See https://downloads.haskell.org/ghc/9.0.2/ which has both ghc-9.0.2a-x86_64-fedora27-linux.tar.lz with thr profiling libraries and ghc-9.0.2-x86_64-fedora27-linux.tar.lz without profiling libraries.
However, as these are distinct builds, they are incompatible with each other. Furthermore, GHCup doesn't have a concept of revisions, so the bindists distributed and built in CI were built against 9.0.2a, while stack is probably using the original GHC 9.0.2.
See also https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/351 and https://gitlab.haskell.org/ghc/ghc/-/issues/21423#note_423952
As a workaround, we could make a HLS release linked against the original 9.0.2 build and modify the install script to automatically detect the correct variant to use.
Ah, I was aware of the missing profiling library in GHC 9.0.2, but am not aware the release of the corrected version. I'm curious whether stack will re-install GHC 9.0.2-a if I nuke the current GHC 9.0.2 environment (without profiling). If that is the case, I can just reinstall ghc 9.0.2 for stack as a workaround.
I think you can also configure stack to download the 9.0.2a version manually if it doesn't automatically do so: https://docs.haskellstack.org/en/stable/yaml_configuration/#setup-info-locations
Note that if you do this, please delete the cached/installed libraries for GHC 9.0.2 in .stack-work or you will get segfaults when trying to run anything.
think you can also configure stack to download the 9.0.2a version manually if it doesn't automatically do so: https://docs.haskellstack.org/en/stable/yaml_configuration/#setup-info-locations
Aha, that makes sense! It seems that stack won't use 9.0.2a in my environment, so I will try that feature.
I confirmed that specifying setup-info properly in ~/.stack/config.yaml (and compiling everything from the ground up) works with the prebuilt dynamic binary!
I would remain this issue open (as no permanent workaround is implemented). Perhaps it might be still good to document this situation
I've opened up https://github.com/commercialhaskell/stackage-content/pull/102 to get stack to pull down the 9.0.2a release. Which should help with this issue.
I confirmed that specifying
setup-infoproperly in~/.stack/config.yaml(and compiling everything from the ground up) works with the prebuilt dynamic binary!I would remain this issue open (as no permanent workaround is implemented). Perhaps it might be still good to document this situation
It's documented here https://github.com/haskell/vscode-haskell#ghc-abis-dont-match at least... but yes, should also be documented in HLS
This was a problem with 9.0.2, which isn't supported any more