Closed fendor closed 5 years ago
Reproduce by having the following hie.yaml
cradle: multi: - path: ./test/dispatcher/ config: cradle: cabal: component: "test:dispatcher-test" - path: ./test/functional/ config: cradle: cabal: component: "test:func-test" - path: ./test/unit/ config: cradle: cabal: component: "test:unit-test" - path: ./hie-plugin-api/ config: cradle: cabal: component: "lib:hie-plugin-api" - path: ./app/MainHie.hs config: cradle: cabal: component: "exe:hie" - path: ./app/HieWrapper.hs config: cradle: cabal: component: "exe:hie-wrapper" - path: ./ config: cradle: cabal: component: "lib:haskell-ide-engine" - path: ./submodules/ config: cradle: none:
And opening ./test/unit/HaRePluginSpec.hs produces these logs:
./test/unit/HaRePluginSpec.hs
Expected behaviour: Produce correct diagnostics and respond on hover-requests
Actual behaviour: No diagnostics, no responses on hover-requests.
hspec-discover needs to be on the Path.
hspec-discover
Reproduce by having the following hie.yaml
And opening
./test/unit/HaRePluginSpec.hs
produces these logs:Logs
``` 2019-10-14 18:55:29.657268005 [ThreadId 4] - Using plain GHC version 2019-10-14 18:55:29.724390977 [ThreadId 4] - Run entered for HIE(hie-8.6.4) Version 1.0.0.0 x86_64 ghc-8.6.4 2019-10-14 18:55:29.724483804 [ThreadId 4] - Current directory:/home/baldr/Documents/haskell/haskell-ide-engine 2019-10-14 18:55:29.730382424 [ThreadId 9] - Using plain GHC version Using hie version: Version 1.0.0.0 x86_64 ghc-8.6.4 2019-10-14 18:55:29.796683982 [ThreadId 11] - New cradle: /home/baldr/Documents/haskell/haskell-ide-engine/test/unit/HaRePluginSpec.hs 2019-10-14 18:55:29.797401735 [ThreadId 11] - Found cradle: Cradle {cradleRootDir = "/home/baldr/Documents/haskell/haskell-ide-engine", cradleOptsProg = CradleAction: multi} Using hoogle db at: /home/baldr/.hoogle/default-haskell-5.0.17.hoo 2019-10-14 19:01:06.970440154 [ThreadId 19] - GhcException on cradle initialisation: "could not execute: hspec-discover" 2019-10-14 19:01:06.971118641 [ThreadId 11] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"could not execute: hspec-discover\"", ideInfo = Null} with mid: Nothing 2019-10-14 19:01:06.973467676 [ThreadId 11] - New cradle: /home/baldr/Documents/haskell/haskell-ide-engine/test/unit/HaRePluginSpec.hs 2019-10-14 19:01:06.97524332 [ThreadId 11] - Found cradle: Cradle {cradleRootDir = "/home/baldr/Documents/haskell/haskell-ide-engine", cradleOptsProg = CradleAction: multi} 2019-10-14 19:03:56.233147569 [ThreadId 52] - GhcException on cradle initialisation: "could not execute: hspec-discover" 2019-10-14 19:03:56.23327124 [ThreadId 11] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"could not execute: hspec-discover\"", ideInfo = Null} with mid: Nothing 2019-10-14 19:03:56.236806262 [ThreadId 11] - New cradle: /home/baldr/Documents/haskell/haskell-ide-engine/test/unit/HaRePluginSpec.hs 2019-10-14 19:03:56.238109923 [ThreadId 11] - Found cradle: Cradle {cradleRootDir = "/home/baldr/Documents/haskell/haskell-ide-engine", cradleOptsProg = CradleAction: multi} ```Expected behaviour: Produce correct diagnostics and respond on hover-requests
Actual behaviour: No diagnostics, no responses on hover-requests.