-
Notifications
You must be signed in to change notification settings - Fork 299
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
Colored debug console output is not working #2733
Comments
cc @DanTup |
@acoutts do you have steps to reproduce this? I'm seeing coloured text when using the I'm testing with:
|
Ah you're right - exceptions from the widgets library are coloring correctly for me too. It's the output from the logger library here that's not working for me now: https://pub.dev/packages/logger (v0.9.2, the latest). Strange thing is it works fine in VSCode but it's broken in my insiders install on both of my machines. VSCode:
Dart extension:
It looks like I have the same dart-code on both the working one and broken one, so it might be something outside of your extension. It was working in insiders until about a week or so ago I'd estimate. |
@acoutts how are you running the app? In today's insiders, this still works for me: However in your output, you have |
That's an interesting point too. I'm using a launch config and pressing the green play button as I often switch between launch configs. Here's the one I was using in that screenshot:
|
@acoutts Oh wait, I was testing with a plain Dart project, not Flutter 🙈 I'll try again! |
Ok, I can repro - but not only in Insiders, but also stable, and also from the terminal:
final pen = AnsiPen()..white(bold: true);
print(pen('Bright white foreground') + ' this text is default fg/bg');
var logger = Logger();
logger.e('error!');
logger.w('warn!');
logger.i('info!');
So I think something may have changed in Flutter - would you mind raising at flutter/flutter? Thanks! |
Thanks for looking into it and confirming for me @DanTup |
Ahh so the issue seems to only be in iOS builds. Definitely sounding more like a flutter issue. |
I have the same issue for ios. (Android studio) |
The issue needs handling in Flutter - there's an open issue about that at flutter/flutter#64491. |
Terminal appears to be able to color output still:
![Screen Shot 2020-08-20 at 7 49 17 AM](https://user-images.githubusercontent.com/9597207/90766514-a7302980-e2b9-11ea-9b84-858818f19f25.png)
But the debug console is not coloring output now:
![Screen Shot 2020-08-20 at 6 33 35 AM](https://user-images.githubusercontent.com/9597207/90766537-b1eabe80-e2b9-11ea-8416-0a0198b73a77.png)
The text was updated successfully, but these errors were encountered: