-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
build tool: stackcan-workaroundcomponent: hie-biostype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
To reproduce:
$ stack new bug- Create
.hie.yamlwith the three targets:
cradle:
stack:
- path: "./src"
component: "bug:lib"
- path: "./app"
component: "bug:exe:bug-exe"
- path: "./test"
component: "bug:test:bug-test"
- Create a bunch of new modules in the library.
- Import them in the tests. It should work at the moment.
- Reload/restart HLS? I'm not sure about this step, something goes wrong here.
- The test module should now fail to find one of the library modules, and adding new ones won't work either. It doesn't seem to work after another reload too.
The logs seem to tell me that it is using the wrong .cabal file:
"Making new HscEnv[main]"
(([],Just HscEnvEq 4),fromList [("bug.cabal",Just 2020-06-06 22:16:45.8126357 UTC),("package.yaml",Just 2020-06-06 22:04:03.9856616 UTC),("stack.yaml",Just 2020-06-06 22:04:04.6931537 UTC)])
2020-06-06 18:18:41.2528917 [ThreadId 125] - finish: FileStoreTC (took 6.83s)
2020-06-06 18:18:41.3349849 [ThreadId 344] - finish: InitialLoad (took 0.07s)
The file is from 2020-06-06 22:16:45.8126357 UTC but the current time is 18:18:41.2528917.
I'm on Stack LTS 15.15, commit 2310e10 of HLS, Ubuntu 20.04 (WSL 1).
captainsalt and Congee
Metadata
Metadata
Assignees
Labels
build tool: stackcan-workaroundcomponent: hie-biostype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..