Description
First identified in #6161 (comment), but the move from GHC 9.2.7 to GHC 9.4.5 was not the cause. It was the bump to msys2-20230526
(#6153).
With msys2-20221216
, integration tests 3926-ghci-with-sublibraries
, 4270-files-order
, module-added-multiple-times
behave as expected. With msys2-20230526
(or an upgrade of MSYS2), they fail. For example:
Running: D:\a\stack\stack\_release\bin\stack-2.12.0-windows-x86_64\stack.exe repl
Main.hs: Main module didn't load correctly.
Expected: Hello World!
Actual : Leaving GHCi.
CallStack (from HasCallStack):
error, called at D:\\\\a\stack\stack\test\integration\tests\module-added-multiple-times\Main.hs:11:7 in main:Main
In summary, test/integration/lib/StackTest.hs
depends on process-1.6.16.0
. Function replCommand :: String -> ReaderT ReplConnection IO ()
feeds commands to GHCi down an input pipe and function replGetLine :: ReaderT ReplConnection IO String
captures GHCi’s output from a standard output pipe. What seems to now be happening is that GHCi is behaving as if it has received EOF before receiving any commands and quitting, gracefully, with its usual Leaving GHCi. (Running stack repl
locally with the test files suggests that nothing untoward is happening with the actual tests.) That is, it is like GHCi on Windows used to wait for command input in these tests, and now it quits before the input turns up.