-
Notifications
You must be signed in to change notification settings - Fork 218
--reporter compact
is broken when terminal width is smal
#346
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
Comments
--reporter comact
seems broken
--reporter comact
seems broken--reporter compact
seems broken
What terminal are you using? Is this through SSH or something like that? It looks like it may be interpreting CRs as newlines rather than sending the cursor to the beginning of the line as usual. |
I see this behavior as well, regardless of whether I use I can see it running on OS X in iTerm2, in tmux, as well as in an ssh session in a chrome tab. |
@nex3 I use the webstorm integrated terminal with a fish shell. But if I use the standard terminal app from OS X with bash, I have the same problem. I'm sure that that earlier today it worked fine, suddenly out of nothing, I got this behavior. Also if I do |
I've got no idea what would produce the behavior you're describing. If you capture the output, do you see anything wrong in the bytes it's emitting? If not, I'm not sure there's much we can do about this. |
@nex3 I understand, it seems like a really strange issue. Especially because it used to work as expected. I have reset the mac terminal settings, I have created a fresh new account (don't know if that matters), I did pub cache repair. It could be, that more people have this, but just don't know that the test output should be one line rewriting itself normally. About the output, not sure how to find if something is wrong in the bytes. But there is definitely something very strange going on, this is how the code looks to me in the terminal: but if copy paste that to webstorm, it looks like this: if I copy paste it to github, it looks like this:
in the post above I did the enters myself for readability |
As far as I can tell, then, it's an aspect of your terminal and there's no way to fix it in the test runner itself. Not a great answer, I know, but I don't think there's much we can do. |
@nex3 I'm not an expert with terminals/shells etc. But I do get this problem on the default OS X Terminal app with a standard bash shell. So do you think I have a wrong setting here or something? (not that I know that I changed any settings, but maybe by accident). |
As far as I've heard people in the office using OS X don't see this issue; I can't explain why it suddenly appeared for you, but the evidence indicates the test runner is emitting reasonable bytes, and that's the only thing I can control. |
@nex3 Okay, I understand your point of view, but the more I investigate, the more I feel like this must be a bug somewhere, if it is not in this package, may be a bug in OS X: In some other terminal I installed a fork of the test package, I didn't change anything, only renamed it to As suddenly, as it stopped working, it suddenly works again. But only in this terminal. And not in other terminal windows. Even if try to replicate this trick........ Okay, just trying to find out a solution. Will investigate some more. |
--reporter compact
seems broken--reporter compact
is broken when terminal width is small
@nex3 I thought I was going insane! But it is actually a lot more predictable luckily. It seems to be that this is happens if and only if the terminal width is smaller than 99 (chars?): |
--reporter compact
is broken when terminal width is small--reporter compact
is broken when terminal width is smaller than 99 pixels
--reporter compact
is broken when terminal width is smaller than 99 pixels--reporter compact
is broken when terminal width is smal
In that case, this is a duplicate of #288. |
okay, thanks, I see |
Okay, I don't understand this, because 1 hour ago, this still seemed to work for me.
But
pub run test -r compact
which I think is standard, doesn't work for me anymore. It is actally less compact, thenpub run test - r expanded
. See the bottom of the log below.I've here an easy to reproduce terminal log:
The text was updated successfully, but these errors were encountered: