<div dir="auto">I'd recommend trying to manually run the generated test executable inside the .stack-work directory and see if it also hangs.<div dir="auto"><br></div><div dir="auto">The warning about the index is not a big, and there's no issue with that format changing </div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018, 4:50 PM Olaf Klinke <<a href="mailto:olf@aatal-apotheke.de">olf@aatal-apotheke.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear cafe, <br>
<br>
I recently upgraded (with some trouble) to stack-1.7.1 from 1.4.0. I have an older project using lts-9.2 that builds just fine when using the new stack, but it hangs on `stack test`. The difference is shown below. I suspect it is something that needs to be upgraded alongside stack. Maybe Cabal? Upgrading stack was troublesome because of different index formats, which is why using the other stack causes the rebuilds of my extra-deps, I suppose. When using stack --verbosity debug I see messages of the form<br>
<br>
Error while decoding $HOME/.stack/indices/Hackage/01-index.cache<br>
...<br>
(this might not be an error, when switching between stack versions)<br>
<br>
Any help welcome.<br>
Olaf<br>
<br>
$> /usr/bin/stack-1.7.1 test<br>
Populated index cache.<br>
$MYPACKAGE: unregistering (missing dependencies: glpk-hs)<br>
gasp-1.0.1.0: unregistering (old configure information not found)<br>
glpk-hs-0.5: unregistering (missing dependencies: gasp)<br>
gasp-1.0.1.0: configure<br>
gasp-1.0.1.0: build<br>
gasp-1.0.1.0: copy/register<br>
glpk-hs-0.5: configure<br>
glpk-hs-0.5: build<br>
glpk-hs-0.5: copy/register<br>
$MYPACKAGE: configure (lib + exe + test) <br>
Configuring $MYPACKAGE...<br>
$MYPACKAGE: build (lib + exe + test) <br>
Preprocessing library $MYPACKAGE...<br>
<<< some more output ... >>><br>
Registering $MYPACKAGE...<br>
$MYPACKAGE: test (suite: $PACKAGENAME-test)<br>
<<< with --verbosity debug >>><br>
[debug] Run process within $PACKAGEDIR/: $PACKAGEDIR/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/$PACKAGENAME-testStub/$PACKAGENAME-testStub<br>
@(src/Stack/Build/Execute.hs:1711:27)<br>
Progress 1/2: $MYPACKAGE<br>
<<< Hangs from here on, does not consume CPU cycles >>><br>
<br>
$> /usr/bin/stack-1.4.0 test<br>
Populated index cache.<br>
$MYPACKAGE: unregistering (missing dependencies: glpk-hs)<br>
gasp-1.0.1.0: unregistering (old configure information not found)<br>
glpk-hs-0.5: unregistering (missing dependencies: gasp)<br>
gasp-1.0.1.0: configure<br>
gasp-1.0.1.0: build<br>
gasp-1.0.1.0: copy/register<br>
glpk-hs-0.5: configure<br>
glpk-hs-0.5: build<br>
glpk-hs-0.5: copy/register<br>
$MYPACKAGE: configure (lib + exe + test) <br>
Configuring $MYPACKAGE...<br>
$MYPACKAGE: build (lib + exe + test) <br>
Preprocessing library $MYPACKAGE...<br>
<<< some more output >>><br>
Progress: 3/4+++ OK, passed 100 tests.<br>
<<< some more output >>><br>
Completed 4 action(s).<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>