Skip to content

Commit 064e6de

Browse files
pepeiborracocreature
authored andcommitted
Fix shakeRun logging (#371)
1 parent ad87af6 commit 064e6de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Development/IDE/Core/Shake.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,11 @@ shakeRun IdeState{shakeExtras=ShakeExtras{..}, ..} acts =
412412
let logMsg = logDebug logger $ T.pack $
413413
"Finishing shakeRun (took " ++ showDuration runTime ++ ", " ++ res' ++ profile ++ ")"
414414
return (fst <$> res, logMsg)
415-
let wrapUp (res, logMsg) = do
416-
() <- logMsg
415+
let wrapUp (res, _) = do
417416
either (throwIO @SomeException) return res
417+
_ <- async $ do
418+
(_, logMsg) <- wait aThread
419+
logMsg
418420
pure (cancel aThread, wrapUp =<< wait aThread))
419421

420422
getDiagnostics :: IdeState -> IO [FileDiagnostic]

0 commit comments

Comments
 (0)