nyan-progress-webpack-plugin icon indicating copy to clipboard operation
nyan-progress-webpack-plugin copied to clipboard

Overlapping partial Nyans

Open mathieumg opened this issue 10 years ago • 14 comments

screenshot from 2015-09-09 13 09 39

As you can see, there seems to exist a condition where multiple fast initial messages creates multiple partial Nyans before the one that ends up working/tracking the whole progress.

I'm on v1.0.3 and my dev server config is:

devServer: {
  quiet: false,
  noInfo: false,
  stats: {
    assets: false,
    colors: true,
    version: false,
    hash: false,
    timings: false,
    chunks: false,
    chunkModules: false
  }
},

Awesome plugin, by the way! :grin:

mathieumg avatar Sep 09 '15 17:09 mathieumg

Yeah, that's because you have some console output occurred during progress (that "Child" line, I believe). I don't know is there a way to track what was printed in console from outside the plugin (probably there's no way).

Actually, I just checked ASCII escape codes - there is a "Save/restore cursor position" command, which could help (they say it's not widely supported by terminals though).

Another way to solve it (kinda) is to print nyan cat with a left offset, so that it's not overlapping other messages.

alexkuz avatar Sep 09 '15 20:09 alexkuz

@mathieumg btw what terminal and font are you using? Your cat looks more like Cheshire cat :)

alexkuz avatar Sep 09 '15 20:09 alexkuz

@mathieumg check out a new version, should be fixed now.

alexkuz avatar Sep 10 '15 01:09 alexkuz

Actually that made it worse. :(

screenshot from 2015-09-09 22 36 11

screenshot from 2015-09-09 22 37 01

I wish I could screencap it, the behaviour is pretty spectacular on 1.1 haha. :stuck_out_tongue:

Do you want me to setup a toy project to reproduce the issue?

I'm using Ubuntu Mono and Bash on my home PC (the screenshots so far), I'll try with whatever I have at work tomorrow.

Thanks for the quick reaction by the way!

mathieumg avatar Sep 10 '15 02:09 mathieumg

@mathieumg try to turn off webpack.ProgressPlugin if you have it, they are not supposed to be used together (should mention it in README probably).

alexkuz avatar Sep 10 '15 07:09 alexkuz

I have the same behavior (Nyan scrolling down and leaving trails) even without --progress. I also still get the two initial partial Nyans (screenshot in OP), but on 1.0 the progress + Nyan were working correctly after that.

mathieumg avatar Sep 11 '15 13:09 mathieumg

Hmm. Can you make an example project then?

alexkuz avatar Sep 11 '15 14:09 alexkuz

Yeah, I'll try to do that!

mathieumg avatar Sep 11 '15 14:09 mathieumg

@mathieumg just reproduced the issue - it happens when console output doesn't fit screen height. Will try to fix that.

alexkuz avatar Sep 18 '15 10:09 alexkuz

Cool! Sorry for being slow on this, I've been held up with school as of late. :x

mathieumg avatar Sep 18 '15 10:09 mathieumg

Should be better now

alexkuz avatar Sep 19 '15 08:09 alexkuz

@mathieumg can you check it, so I can close this issue?

alexkuz avatar Nov 09 '15 17:11 alexkuz

I think I had and there were still issues, but I wanted to revalidate. I'll try to recheck that ASAP.

mathieumg avatar Nov 09 '15 17:11 mathieumg

Turned out I forgot that I'm using non-standard terminal :) Seems like default terminal in MacOS doesn't support restoring/saving cursor position, so I had to disable that feature by default.

alexkuz avatar Nov 21 '15 00:11 alexkuz