haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.66k stars 355 forks source link

VS Code HLS Plugin doesn't work for projects with multiple libraries #2276

Closed L7R7 closed 2 years ago

L7R7 commented 2 years ago

I have a problem with a project that has more than one library. I'm using hpack for bootstrapping the project. VS Code doesn't work for the source code files in the libraries. VS Code shows me an inline error message (screenshot below), which doesn't seem to appear in the LSP logs.

This might be similar to #233, but I felt it's different enough to create a new issue.

I also don't know whether this is an issue with the VS Code plugin or with HLS itself.

Your environment

I'm using VSCode with the official HLS plugin. haskell-language-server version: 1.4.0.0, GHC 8.10.7

Which OS do you use: Ubuntu 21.04

Which lsp-client do you use: VS Code

Describe your project (alternative: link to the project):

I'm using stack and I have more than one lib. I can't share the actual project, but I have a minimal project to reproduce that: https://github.com/L7R7/haskell-multi-lib

Steps to reproduce

Clone the project, open it in VS Code and open another-src/Lib.hs

Expected behaviour

I would expect HLS to work as usual in projects that have a single library

Actual behaviour

image

The error message reads

Failed to parse result of calling stack Error parsing targets: Directory not found: multi-lib:lib:another-lib Note that to specify options to be passed to GHCi, use the --ghci-options flag

Include debug information

LSP logs: ``` [Info - 4:53:03 PM] Starting the server haskell-language-server version: 1.4.0.0 (GHC: 8.10.7) (PATH: /home/leo/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.4.0-linux-8.10.7) (GIT hash: 253547816ee216c53ee7dacc0ad3cac43e863d30) Couldn't open log file ~/hls.log; falling back to stderr loggingStarting (haskell-language-server)LSP server... with arguments: GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Just "~/hls.log", argsThreads = 0, argsProjectGhcVersion = False} with plugins: [PluginId "pragmas",PluginId "floskell",PluginId "fourmolu",PluginId "tactics",PluginId "ormolu",PluginId "stylish-haskell",PluginId "retrie",PluginId "brittany",PluginId "callHierarchy",PluginId "class",PluginId "haddockComments",PluginId "eval",PluginId "importLens",PluginId "refineImports",PluginId "moduleName",PluginId "hlint",PluginId "splice",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: /home/leo/dev/multi-lib 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 = "/home/leo/dev/multi-lib", cradleOptsProg = CradleAction: Stack} 2021-10-15 16:53:04.047081884 [ThreadId 13] DEBUG hls: Initializing exports map from hiedb 2021-10-15 16:53:04.065842361 [ThreadId 5] INFO hls: Registering ide configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-8309386079607167918) "file:///home/leo/dev/multi-lib"], clientSettings = hashed Nothing} 2021-10-15 16:53:04.081363458 [ThreadId 27] DEBUG hls: Configuration changed: Object (fromList [("haskell",Object (fromList [("checkProject",Bool True),("formattingProvider",String "ormolu"),("indentationRules",Object (fromList [("enabled",Bool True)])),("logFile",String "~/hls.log"),("maxCompletions",Number 40.0),("openDocumentationInHackage",Bool True),("openSourceInHackage",Bool True),("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)])),("refineImports",Object (fromList [("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)]))])),("releasesURL",String ""),("serverExecutablePath",String ""),("serverExtraArgs",String ""),("trace",Object (fromList [("client",String "debug"),("server",String "messages")])),("updateBehavior",String "keep-up-to-date")]))]) 2021-10-15 16:53:04.081928919 [ThreadId 13] DEBUG hls: Done initializing exports map from hiedb (9) 2021-10-15 16:53:04.083554033 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetClientSettings; ] (aborting the previous one took 0.00s) 2021-10-15 16:53:04.083667684 [ThreadId 30] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:04.08405393 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [] 2021-10-15 16:53:04.084329898 [ThreadId 42] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:04.084396625 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetClientSettings; ,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/src/Lib.hs,IsFileOfInterest; /home/leo/dev/multi-lib/src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:04.084528368 [ThreadId 27] DEBUG hls: Opened text document: file:///home/leo/dev/multi-lib/src/Lib.hs 2021-10-15 16:53:04.085115945 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [(NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",Modified {firstOpen = True})] 2021-10-15 16:53:04.085285714 [ThreadId 57] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:04.085347534 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetClientSettings; ,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/src/Lib.hs,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,IsFileOfInterest; /home/leo/dev/multi-lib/src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:04.085503799 [ThreadId 27] DEBUG hls: Opened text document: file:///home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:04.086361041 [ThreadId 117] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:53:04.086434251 [ThreadId 116] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs" 2021-10-15 16:53:04.086982696 [ThreadId 124] INFO hls: Consulting the cradle for "another-src/Lib.hs" Output from setting up the cradle Cradle {cradleRootDir = "/home/leo/dev/multi-lib", cradleOptsProg = CradleAction: Stack} 2021-10-15 16:53:04.321676766 [ThreadId 142] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:53:04.417586619 [ThreadId 135] INFO hie-bios: Error parsing targets: Directory not found: multi-lib:lib:another-lib 2021-10-15 16:53:04.417721514 [ThreadId 135] INFO hie-bios: Note that to specify options to be passed to GHCi, use the --ghci-options flag 2021-10-15 16:53:04.933744322 [ThreadId 169] INFO hie-bios: /home/leo/dev/multi-lib/.stack-work/install/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/snapshots/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d 2021-10-15 16:53:04.946277113 [ThreadId 124] DEBUG hls: Session loading result: Left [CradleError {cradleErrorDependencies = ["multi-lib.cabal","package.yaml","stack.yaml"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to parse result of calling stack","Error parsing targets: Directory not found: multi-lib:lib:another-lib","Note that to specify options to be passed to GHCi, use the --ghci-options flag"]}] 2021-10-15 16:53:04.946735544 [ThreadId 170] INFO hls: Consulting the cradle for "src/Lib.hs" Output from setting up the cradle Cradle {cradleRootDir = "/home/leo/dev/multi-lib", cradleOptsProg = CradleAction: Stack} 2021-10-15 16:53:04.948428717 [ThreadId 216] INFO hls: finish: ModuleName.ghcSession (took 0.63s) 2021-10-15 16:53:04.948531819 [ThreadId 222] DEBUG hls: LOOKUP UP PERSISTENT FOR: GetParsedModule 2021-10-15 16:53:04.948594103 [ThreadId 222] INFO hls: finish: Outline (took 0.86s) 2021-10-15 16:53:04.948584953 [ThreadId 224] DEBUG hls: LOOKUP UP PERSISTENT FOR: GetModSummaryWithoutTimestamps 2021-10-15 16:53:04.948675818 [ThreadId 224] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.63s) 2021-10-15 16:53:04.948772629 [ThreadId 226] DEBUG hls: LOOKUP UP PERSISTENT FOR: GetParsedModuleWithComments 2021-10-15 16:53:04.948823454 [ThreadId 228] INFO hls: finish: codeLens.TypeCheck (took 0.63s) 2021-10-15 16:53:04.948851994 [ThreadId 226] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.63s) 2021-10-15 16:53:04.949120312 [ThreadId 234] DEBUG hls: LOOKUP UP PERSISTENT FOR: MinimalImports 2021-10-15 16:53:04.949177194 [ThreadId 234] INFO hls: finish: (took 0.63s) 2021-10-15 16:53:04.94919798 [ThreadId 237] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:53:04.949370612 [ThreadId 243] DEBUG hls: LOOKUP UP PERSISTENT FOR: RefineImports 2021-10-15 16:53:04.949390095 [ThreadId 244] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:53:04.94943614 [ThreadId 243] INFO hls: finish: RefineImports (took 0.63s) 2021-10-15 16:53:05.58845976 [ThreadId 203] INFO hie-bios: Configuring GHCi with the following packages: multi-lib 2021-10-15 16:53:06.095012028 [ThreadId 250] INFO hie-bios: /home/leo/dev/multi-lib/.stack-work/install/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/snapshots/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d 2021-10-15 16:53:07.154428409 [ThreadId 170] DEBUG hls: Session loading result: Right (ComponentOptions {componentOptions = ["-i","-odir=/home/leo/dev/multi-lib/.stack-work/odir","-hidir=/home/leo/dev/multi-lib/.stack-work/odir","-hide-all-packages","-i/home/leo/dev/multi-lib/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-i/home/leo/dev/multi-lib/src","-i/home/leo/dev/multi-lib/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/autogen","-i/home/leo/dev/multi-lib/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/global-autogen","-stubdir=/home/leo/dev/multi-lib/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build","-package-id=multi-lib-0.1.0.0-FxJDXGlE4ns6L8D8wWxlOl-another-lib","-package-id=base-4.14.3.0","-haddock","-optP-include","-optP/home/leo/dev/multi-lib/.stack-work/ghci/171cfd77/cabal_macros.h","-ghci-script=/tmp/haskell-stack-ghci/4d91fb58/ghci-script","-package-db","/home/leo/dev/multi-lib/.stack-work/install/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb","-package-db","/home/leo/.stack/snapshots/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb","-package-db","/home/leo/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d"], componentRoot = "/home/leo/dev/multi-lib", componentDependencies = ["multi-lib.cabal","package.yaml","stack.yaml"]},"/home/leo/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7") 2021-10-15 16:53:07.194204276 [ThreadId 170] INFO hls: Using interface files cache dir: /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9 2021-10-15 16:53:07.194347831 [ThreadId 170] INFO hls: Making new HscEnv[main] 2021-10-15 16:53:07.200244548 [ThreadId 170] DEBUG hls: New Component Cache HscEnvEq: (([],Just HscEnvEq 17),fromList [("/home/leo/dev/multi-lib/hie.yaml",Just 2021-10-15 14:52:52.128250044 UTC),("multi-lib.cabal",Just 2021-10-15 13:10:51.560860722 UTC),("package.yaml",Just 2021-10-12 12:39:49.827527902 UTC),("stack.yaml",Just 2021-10-12 12:05:32.298827024 UTC)]) 2021-10-15 16:53:07.203582943 [ThreadId 170] DEBUG hls: Known files updated: fromList [(TargetModule Lib,fromList ["/home/leo/dev/multi-lib/src/Lib.hs"]),(TargetFile NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",fromList ["/home/leo/dev/multi-lib/src/Lib.hs"]),(TargetModule Paths_multi_lib,fromList ["/home/leo/dev/multi-lib/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/autogen/Paths_multi_lib.hs"])] 2021-10-15 16:53:07.20393412 [ThreadId 72] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:07.204029344 [ThreadId 170] DEBUG hls: Restarting build session for keys [GhcSessionIO; ,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/src/Lib.hs,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,IsFileOfInterest; /home/leo/dev/multi-lib/src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:07.204836275 [ThreadId 297] DEBUG hls: hlint:getIdeas:file:NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs" 2021-10-15 16:53:07.204961726 [ThreadId 299] INFO hls: Consulting the cradle for "another-src/Lib.hs" Output from setting up the cradle Cradle {cradleRootDir = "/home/leo/dev/multi-lib", cradleOptsProg = CradleAction: Stack} 2021-10-15 16:53:07.447391907 [ThreadId 321] INFO hie-bios: Error parsing targets: Directory not found: multi-lib:lib:another-lib 2021-10-15 16:53:07.447621616 [ThreadId 321] INFO hie-bios: Note that to specify options to be passed to GHCi, use the --ghci-options flag 2021-10-15 16:53:07.898965669 [ThreadId 328] INFO hie-bios: /home/leo/dev/multi-lib/.stack-work/install/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/snapshots/x86_64-linux-tinfo6/a79fc1f08e523b27950a52a165424ef4a39d78127463ee9bc3a427e7ae269e1f/8.10.7/pkgdb:/home/leo/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.7/lib/ghc-8.10.7/package.conf.d 2021-10-15 16:53:07.911599338 [ThreadId 299] DEBUG hls: Session loading result: Left [CradleError {cradleErrorDependencies = ["multi-lib.cabal","package.yaml","stack.yaml"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to parse result of calling stack","Error parsing targets: Directory not found: multi-lib:lib:another-lib","Note that to specify options to be passed to GHCi, use the --ghci-options flag"]}] 2021-10-15 16:53:07.941778231 [ThreadId 473] DEBUG hls: finish: InitialLoad (took 0.74s) 2021-10-15 16:53:34.042503576 [ThreadId 478] DEBUG hls: GhcIde.hover entered (ideLogger) 2021-10-15 16:53:34.042618135 [ThreadId 478] DEBUG hls: Hover request at position 1:2 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:34.042815997 [ThreadId 478] DEBUG hls: LOOKUP UP PERSISTENT FOR: GetHieAst 2021-10-15 16:53:34.042844347 [ThreadId 481] DEBUG hls: LOOKUP UP PERSISTENT FOR: TypeCheck 2021-10-15 16:53:34.042837889 [ThreadId 479] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:53:34.042906755 [ThreadId 481] INFO hls: finish: Wingman.getMetaprogramsAtSpan.TypeCheck (took 0.00s) 2021-10-15 16:53:34.163782373 [ThreadId 495] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:53:34.163918947 [ThreadId 499] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:34.163974998 [ThreadId 501] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:53:34.164238472 [ThreadId 506] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:53:34.164424223 [ThreadId 524] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.16456626 [ThreadId 522] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:53:34.1647009 [ThreadId 520] INFO hls: finish: GhcideCodeActions.GhcSession (took 0.00s) 2021-10-15 16:53:34.164889297 [ThreadId 527] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.164946481 [ThreadId 536] INFO hls: finish: GhcideCodeActions.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:34.16493435 [ThreadId 535] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:34.165041375 [ThreadId 539] INFO hls: finish: GhcideCodeActions.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:53:34.165101283 [ThreadId 542] INFO hls: finish: GhcideCodeActions.GetFileContents (took 0.00s) 2021-10-15 16:53:34.165156712 [ThreadId 543] INFO hls: finish: GhcideCodeActions.TypeCheck (took 0.00s) 2021-10-15 16:53:34.165258875 [ThreadId 545] INFO hls: finish: GhcideCodeActions.GetParsedModule (took 0.00s) 2021-10-15 16:53:34.165409954 [ThreadId 549] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:53:34.165479381 [ThreadId 552] INFO hls: finish: GhcideCodeActions.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:34.165589957 [ThreadId 556] INFO hls: finish: GhcideCodeActions.GetBindings (took 0.00s) 2021-10-15 16:53:34.165613627 [ThreadId 555] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.165673806 [ThreadId 558] INFO hls: finish: GhcideCodeActions.getIdeOptions (took 0.00s) 2021-10-15 16:53:34.165930242 [ThreadId 562] INFO hls: finish: GhcideCodeActions.GetParsedModule (took 0.00s) 2021-10-15 16:53:34.165950782 [ThreadId 560] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.166181688 [ThreadId 564] INFO hls: finish: GhcideCodeActions.GetFileContents (took 0.00s) 2021-10-15 16:53:34.166349587 [ThreadId 566] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.166436948 [ThreadId 568] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:53:34.166691099 [ThreadId 570] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.166722748 [ThreadId 572] INFO hls: finish: GhcideCodeActions.GetParsedModule (took 0.00s) 2021-10-15 16:53:34.166790533 [ThreadId 574] INFO hls: finish: GhcideCodeActions.GetFileContents (took 0.00s) 2021-10-15 16:53:34.167104319 [ThreadId 576] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.167399321 [ThreadId 578] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.167736559 [ThreadId 580] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.16802225 [ThreadId 582] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.168298709 [ThreadId 584] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.168578908 [ThreadId 586] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.168922634 [ThreadId 588] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:34.468024689 [ThreadId 595] DEBUG hls: GhcIde.hover entered (ideLogger) 2021-10-15 16:53:34.468198692 [ThreadId 595] DEBUG hls: Hover request at position 1:2 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:34.468425095 [ThreadId 596] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:53:34.468509921 [ThreadId 598] INFO hls: finish: Wingman.getMetaprogramsAtSpan.TypeCheck (took 0.00s) 2021-10-15 16:53:35.756243975 [ThreadId 605] DEBUG hls: GhcIde.hover entered (ideLogger) 2021-10-15 16:53:35.756453605 [ThreadId 605] DEBUG hls: Hover request at position 6:12 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:35.756678777 [ThreadId 606] INFO hls: finish: Wingman.getMetaprogramsAtSpan.TypeCheck (took 0.00s) 2021-10-15 16:53:35.75670784 [ThreadId 608] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:53:35.829293225 [ThreadId 613] DEBUG hls: DocumentHighlight request at position 6:12 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:35.829489375 [ThreadId 615] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:53:36.079134704 [ThreadId 635] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:53:36.079162125 [ThreadId 637] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:53:36.079214264 [ThreadId 639] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:53:36.079274275 [ThreadId 643] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:53:36.079282531 [ThreadId 641] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:53:36.079310404 [ThreadId 647] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:36.079293822 [ThreadId 645] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.079376841 [ThreadId 649] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:53:36.079469569 [ThreadId 633] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:36.079637887 [ThreadId 651] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.079930383 [ThreadId 653] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.080183367 [ThreadId 655] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.08042435 [ThreadId 657] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.080672449 [ThreadId 659] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.080863887 [ThreadId 661] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.08108463 [ThreadId 663] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.081339078 [ThreadId 665] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.08155489 [ThreadId 667] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.081771755 [ThreadId 669] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.08202993 [ThreadId 671] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:36.082307255 [ThreadId 673] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.006037648 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [(NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs",Modified {firstOpen = True}),(NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",Modified {firstOpen = True})] 2021-10-15 16:53:37.006542472 [ThreadId 260] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:37.006646362 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:37.007087518 [ThreadId 27] DEBUG hls: Modified text document: file:///home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:37.265431187 [ThreadId 786] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:53:37.265644968 [ThreadId 792] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:53:37.265687252 [ThreadId 795] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:37.265703363 [ThreadId 794] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:53:37.265710416 [ThreadId 789] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:53:37.265839025 [ThreadId 799] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:37.265929684 [ThreadId 804] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.266013558 [ThreadId 802] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:53:37.266152142 [ThreadId 810] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.266365864 [ThreadId 817] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:53:37.266376535 [ThreadId 815] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.266595663 [ThreadId 818] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.266796501 [ThreadId 820] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.26701379 [ThreadId 822] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.267231759 [ThreadId 824] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.267452853 [ThreadId 826] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.267764809 [ThreadId 828] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.268011804 [ThreadId 830] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.268277913 [ThreadId 832] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.268668316 [ThreadId 834] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.268915037 [ThreadId 836] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.623601644 [ThreadId 855] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:53:37.623775486 [ThreadId 863] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:53:37.623735873 [ThreadId 861] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:53:37.623798186 [ThreadId 865] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:37.623812925 [ThreadId 857] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:37.623839441 [ThreadId 859] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:53:37.623889458 [ThreadId 867] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.623899339 [ThreadId 869] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:53:37.624133459 [ThreadId 871] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:53:37.624314236 [ThreadId 873] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.624485337 [ThreadId 875] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.62467229 [ThreadId 877] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.624834302 [ThreadId 879] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625035474 [ThreadId 881] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625225453 [ThreadId 883] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625417293 [ThreadId 885] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625597915 [ThreadId 887] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625746026 [ThreadId 889] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.625915719 [ThreadId 891] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.626090037 [ThreadId 893] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.626245327 [ThreadId 895] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.813302223 [ThreadId 902] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:53:37.813428475 [ThreadId 907] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 16:53:37.813908605 [ThreadId 919] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:53:37.814076865 [ThreadId 922] INFO hls: finish: (took 0.00s) 2021-10-15 16:53:37.814289602 [ThreadId 920] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:37.814364722 [ThreadId 923] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 16:53:37.814450016 [ThreadId 927] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 16:53:37.814817549 [ThreadId 938] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:53:37.814772639 [ThreadId 936] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:38.034227573 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [(NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs",Modified {firstOpen = False}),(NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",Modified {firstOpen = True})] 2021-10-15 16:53:38.034683529 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:38.034901372 [ThreadId 679] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:38.034887723 [ThreadId 27] DEBUG hls: Saved text document: file:///home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:53:38.038396186 [ThreadId 1039] INFO hls: Could not identify reverse dependencies for NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:53:38.038529611 [ThreadId 1039] DEBUG hls: finish: ParentTC (took 0.00s) 2021-10-15 16:53:38.138985509 [ThreadId 1053] INFO hls: finish: Outline (took 0.00s) 2021-10-15 16:53:38.296745055 [ThreadId 1072] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:53:38.296859496 [ThreadId 1076] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:53:38.297301506 [ThreadId 1080] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:53:38.297974146 [ThreadId 1083] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:53:38.298083143 [ThreadId 1087] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:53:38.298196917 [ThreadId 1090] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:53:38.298246087 [ThreadId 1095] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.29826495 [ThreadId 1092] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:53:38.299102405 [ThreadId 1098] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.299344845 [ThreadId 1101] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:53:38.299802265 [ThreadId 1102] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.300549635 [ThreadId 1104] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.301131036 [ThreadId 27] DEBUG hls: Watched file events: [FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged},FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged},FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged}] 2021-10-15 16:53:38.301457675 [ThreadId 1106] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.302248164 [ThreadId 1108] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.303397347 [ThreadId 943] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:53:38.303636673 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:53:38.308320412 [ThreadId 1177] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.308993234 [ThreadId 1189] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.309390043 [ThreadId 1200] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.30990784 [ThreadId 1207] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.310352425 [ThreadId 1214] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:53:38.310749269 [ThreadId 1216] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:54:55.671269077 [ThreadId 1223] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:54:55.671574293 [ThreadId 1228] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 16:54:55.671862369 [ThreadId 1237] INFO hls: finish: (took 0.00s) 2021-10-15 16:54:55.672428892 [ThreadId 1244] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 16:54:55.672499341 [ThreadId 1241] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 16:54:55.672697955 [ThreadId 1246] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:54:55.672894199 [ThreadId 1250] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:54:55.672947528 [ThreadId 1249] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:54:55.673267977 [ThreadId 1255] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:56:35.462632623 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [(NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs",OnDisk),(NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",Modified {firstOpen = True})] 2021-10-15 16:56:35.462829412 [ThreadId 1116] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:56:35.462883476 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:56:35.463045321 [ThreadId 27] DEBUG hls: Modified text document: file:///home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:56:35.705205737 [ThreadId 1359] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:56:35.70567491 [ThreadId 1372] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:56:35.705702544 [ThreadId 1368] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:56:35.70584121 [ThreadId 1377] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:56:35.70593509 [ThreadId 1381] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:56:35.705944995 [ThreadId 1383] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:56:35.706020365 [ThreadId 1387] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.706142059 [ThreadId 1392] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:56:35.706289587 [ThreadId 1396] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:56:35.706303935 [ThreadId 1394] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.706582909 [ThreadId 1397] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.706894443 [ThreadId 1399] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.707231009 [ThreadId 1401] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.707494079 [ThreadId 1403] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.707732485 [ThreadId 1405] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.708037331 [ThreadId 1407] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.708395175 [ThreadId 1409] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.708696347 [ThreadId 1411] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.708937017 [ThreadId 1413] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.709168879 [ThreadId 1415] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.709486536 [ThreadId 1417] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.727945219 [ThreadId 1424] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:56:35.728058176 [ThreadId 1429] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 16:56:35.72825508 [ThreadId 1436] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 16:56:35.728347953 [ThreadId 1441] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:35.728340345 [ThreadId 1443] INFO hls: finish: (took 0.00s) 2021-10-15 16:56:35.728489219 [ThreadId 1449] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 16:56:35.728529934 [ThreadId 1453] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:56:35.728612199 [ThreadId 1458] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:56:35.728626413 [ThreadId 1460] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:56:36.025510424 [ThreadId 1466] INFO hls: finish: Outline (took 0.00s) 2021-10-15 16:56:36.084974238 [ThreadId 1485] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:56:36.08497763 [ThreadId 1491] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.085004982 [ThreadId 1493] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:56:36.085074278 [ThreadId 1482] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:56:36.085237711 [ThreadId 1480] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:56:36.085353175 [ThreadId 1495] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:56:36.085476929 [ThreadId 1499] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.085533371 [ThreadId 1497] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:56:36.085512042 [ThreadId 1501] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:56:36.085742497 [ThreadId 1503] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:56:36.085759992 [ThreadId 1505] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.086019728 [ThreadId 1507] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.086361909 [ThreadId 1509] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.086659201 [ThreadId 1511] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.086913197 [ThreadId 1513] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.087166461 [ThreadId 1515] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.087466621 [ThreadId 1517] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.08772 [ThreadId 1519] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.087939812 [ThreadId 1521] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.088181774 [ThreadId 1523] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.088357369 [ThreadId 1525] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.471909985 [ThreadId 27] DEBUG hls: Set files of interest to: fromList [(NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs",Modified {firstOpen = False}),(NormalizedFilePath "/home/leo/dev/multi-lib/src/Lib.hs",Modified {firstOpen = True})] 2021-10-15 16:56:36.47224477 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,IsFileOfInterest; /home/leo/dev/multi-lib/another-src/Lib.hs,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:56:36.472410305 [ThreadId 1260] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:56:36.472613443 [ThreadId 27] DEBUG hls: Saved text document: file:///home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:56:36.47478292 [ThreadId 1627] INFO hls: Could not identify reverse dependencies for NormalizedFilePath "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:56:36.474910909 [ThreadId 1627] DEBUG hls: finish: ParentTC (took 0.00s) 2021-10-15 16:56:36.729531808 [ThreadId 1651] INFO hls: finish: Pragmas.GetParsedModule (took 0.00s) 2021-10-15 16:56:36.729858532 [ThreadId 1655] INFO hls: finish: GhcideCodeActions.getParsedModule (took 0.00s) 2021-10-15 16:56:36.730126204 [ThreadId 1659] INFO hls: finish: splice.codeAction.GitHieAst (took 0.00s) 2021-10-15 16:56:36.730459992 [ThreadId 1663] INFO hls: finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s) 2021-10-15 16:56:36.730654217 [ThreadId 1664] INFO hls: finish: retrie (took 0.00s) 2021-10-15 16:56:36.730821506 [ThreadId 1671] INFO hls: finish: importLens (took 0.00s) 2021-10-15 16:56:36.731047172 [ThreadId 1676] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.731541384 [ThreadId 1674] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:56:36.731682046 [ThreadId 1677] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.732328755 [ThreadId 1684] INFO hls: finish: Pragmas.GetFileContents (took 0.00s) 2021-10-15 16:56:36.732500601 [ThreadId 1679] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.732807758 [ThreadId 1685] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.733293678 [ThreadId 1687] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.733920628 [ThreadId 1689] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.734756756 [ThreadId 1691] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.735193575 [ThreadId 1693] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.735595394 [ThreadId 1695] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.735862609 [ThreadId 1697] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.736145745 [ThreadId 1699] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.736439249 [ThreadId 1701] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.73674217 [ThreadId 1703] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:56:36.753935683 [ThreadId 27] DEBUG hls: Watched file events: [FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged},FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged},FileEvent {_uri = Uri {getUri = "file:///home/leo/dev/multi-lib/another-src/Lib.hs"}, _xtype = FcChanged}] 2021-10-15 16:56:36.754864098 [ThreadId 1531] DEBUG hls: Finishing build session(exception: AsyncCancelled) 2021-10-15 16:56:36.754996665 [ThreadId 27] DEBUG hls: Restarting build session for keys [GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/.cache/ghcide/main-2c4fa0c30edf9ef9c2018a8e218b22efe0108fd9/Paths_multi_lib.hi,GetModificationTime_ {missingFileDiagnostics = True}; /home/leo/dev/multi-lib/another-src/Lib.hs] (aborting the previous one took 0.00s) 2021-10-15 16:58:01.883628091 [ThreadId 1801] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:58:01.883752394 [ThreadId 1806] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 16:58:01.883974548 [ThreadId 1817] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 16:58:01.884101634 [ThreadId 1823] INFO hls: finish: (took 0.00s) 2021-10-15 16:58:01.884140569 [ThreadId 1826] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:58:01.884169574 [ThreadId 1828] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:58:01.884096537 [ThreadId 1824] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 16:58:01.884292916 [ThreadId 1835] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:58:01.884297814 [ThreadId 1834] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:58:05.206758682 [ThreadId 1841] DEBUG hls: GhcIde.hover entered (ideLogger) 2021-10-15 16:58:05.207395768 [ThreadId 1841] DEBUG hls: Hover request at position 2:15 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:58:05.207945268 [ThreadId 1842] INFO hls: finish: Wingman.getMetaprogramsAtSpan.TypeCheck (took 0.00s) 2021-10-15 16:58:05.208667845 [ThreadId 1844] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:58:05.571993749 [ThreadId 1851] DEBUG hls: GhcIde.hover entered (ideLogger) 2021-10-15 16:58:05.572108745 [ThreadId 1851] DEBUG hls: Hover request at position 2:15 in file: /home/leo/dev/multi-lib/another-src/Lib.hs 2021-10-15 16:58:05.572237478 [ThreadId 1854] DEBUG hls: finish: C:GetHieAst (took 0.00s) 2021-10-15 16:58:05.572311756 [ThreadId 1852] INFO hls: finish: Wingman.getMetaprogramsAtSpan.TypeCheck (took 0.00s) 2021-10-15 16:58:42.382264749 [ThreadId 1861] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 16:58:42.382446943 [ThreadId 1866] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 16:58:42.382640555 [ThreadId 1870] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 16:58:42.382625857 [ThreadId 1868] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 16:58:42.382799487 [ThreadId 1874] INFO hls: finish: (took 0.00s) 2021-10-15 16:58:42.382766594 [ThreadId 1872] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 16:58:42.382825651 [ThreadId 1876] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) 2021-10-15 16:58:42.382987152 [ThreadId 1878] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 16:58:42.383411079 [ThreadId 1880] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 17:04:35.959359337 [ThreadId 1887] DEBUG hls: src/Ide/Plugin/Eval/CodeLens.hs:192:15 "fp" "/home/leo/dev/multi-lib/another-src/Lib.hs" 2021-10-15 17:04:35.959439879 [ThreadId 1892] INFO hls: finish: codeLens.TypeCheck (took 0.00s) 2021-10-15 17:04:35.959570459 [ThreadId 1894] INFO hls: finish: RefineImports (took 0.00s) 2021-10-15 17:04:35.959650932 [ThreadId 1896] INFO hls: finish: Wingman.getIdeDynflags.GetModSummaryWithoutTimestamps (took 0.00s) 2021-10-15 17:04:35.959706417 [ThreadId 1898] INFO hls: finish: codeLens.GetBindings (took 0.00s) 2021-10-15 17:04:35.959740252 [ThreadId 1900] INFO hls: finish: ModuleName.ghcSession (took 0.00s) 2021-10-15 17:04:35.959772383 [ThreadId 1902] INFO hls: finish: (took 0.00s) 2021-10-15 17:04:35.959833077 [ThreadId 1904] INFO hls: finish: eval.GetParsedModuleWithComments (took 0.00s) 2021-10-15 17:04:35.959862732 [ThreadId 1906] INFO hls: finish: codeLens.GetGlobalBindingTypeSigs (took 0.00s) ```
fendor commented 2 years ago

IIRC, Stack does not support multiple libraries, and HLS decides due to the existence of stack.yaml to use stack for building. I am pretty sure that at least stack repl fails for internal libraries.

Workaround: use cabal, add cabal.project and maybe execute cabal build and delete .stack-work to make sure HLS chooses cabal for building the project.

jneira commented 2 years ago

thanks for the bug report, this is a known issue tracked in #114 so I'm gonna close this one, there you can read more about this issue which is blocked upstream on a stack fix or the new way to load projects