-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing newline at the end of "Progress: 1/2" #1302
Comments
I noticed this bug as well. It would suffice to add So the problem must be somewhere else. |
@rubik I read the description of main :: IO ()
main = return () So basically any output in test suite, even as simple as main :: IO ()
main = putStrLn "test" will break the |
One of the template, |
Well done @FranklinYu, I can confirm what you said. My test suite uses Hspec and Stack's output is hijacked because of this. One possible solution could be to suspend the progress status during tests and resume it right after. This is not very easy to do because the function |
I think Stack should be capturing the output of the tests (and benchmarks, which I suspect will have the same problem) and re-emitting it in a way that's friendly to the sticky progress, the same way as it does for GHC output. |
@borsboom Yes I think that is a better solution! |
+ add a trailing newline to test output
There were two issues here:
Please reopen if not resolved in the development version. |
I'm reopening this since the fix was reverted. |
Good catch! I thought 68ef027 was sufficient, but turns out that you still get the "Progress 1/2" message. Weird! |
Fixed! |
Darn, the resolution to #1685 brought this back |
I don't have time to work on this right now, but I have a theory it may be due to |
I believe this is actually resolved now, please ping or open a new issue if that's not the case. |
When I run
stack test
the newline is missing, so this line and next (testing message in my case) are concatenated into one. I found the source at Execute.hs but I have no idea how to fix it since I am a Haskell newbie. Minor bug, but should be easy to fix (I assume).The text was updated successfully, but these errors were encountered: