You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 flutter: prefixes so I'm wondering if you're running differently to me (I'm using F5). If you're using the built-in terminal and just running flutter run, then that output isn't affected by the extension at all (for all intents and purposes, that's just a terminal that's embedded in VS Code - we have no special powers over it and can't mess with its output). In that case, I would raise this i the VS Code repo directly (and post a link back here for anyone else that comes across it). Thanks!
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!');
danny@Dannys-MBP flutter_sample % flutter run -d iphone
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 3.4s
Xcode build done. 12.2s
flutter: \^[[38;5;15mBright white foreground\^[[0m this text is default f<…>
flutter: \^[[38;5;196m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;196m│ #0 MyApp.build (package:flutter_sample/main.dart:17:1<…>
flutter: \^[[38;5;196m│ #1 StatelessElement.build (package:flutter/src/widgets/framework.dart:4640:2<…>
flutter: \^[[38;5;196m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…>
flutter: \^[[38;5;196m│ ⛔ error!<…>
flutter: \^[[38;5;196m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;208m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;208m│ #0 MyApp.build (package:flutter_sample/main.dart:18:1<…>
flutter: \^[[38;5;208m│ #1 StatelessElement.build (package:flutter/src/widgets/framework.dart:4640:2<…>
flutter: \^[[38;5;208m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…>
flutter: \^[[38;5;208m│ ⚠️ warn!<…>
flutter: \^[[38;5;208m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;12m│ #0 MyApp.build (package:flutter_sample/main.dart:19:1<…>
flutter: \^[[38;5;12m│ #1 StatelessElement.build (package:flutter/src/widgets/framework.dart:4640:2<…>
flutter: \^[[38;5;12m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…>
flutter: \^[[38;5;12m│ 💡 info!<…>
flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
Waiting for iPhone SE (2nd generation) to report its views... 3ms
Syncing files to device iPhone SE (2nd generation)... 106ms
So I think something may have changed in Flutter - would you mind raising at flutter/flutter? Thanks!
changed the title [-]Colored debug console output is not working recently in Insiders[/-][+]Colored debug console output is not working[/+]on Aug 24, 2020
Activity
acoutts commentedon Aug 20, 2020
cc @DanTup
DanTup commentedon Aug 24, 2020
@acoutts do you have steps to reproduce this? I'm seeing coloured text when using the
ansicolorspackage and in the error output:I'm testing with:
acoutts commentedon Aug 24, 2020
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.
Heres where it is working:

VSCode:
Dart extension:
And broken in insiders:

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.
DanTup commentedon Aug 24, 2020
@acoutts how are you running the app? In today's insiders, this still works for me:
However in your output, you have
flutter:prefixes so I'm wondering if you're running differently to me (I'm usingF5). If you're using the built-in terminal and just runningflutter run, then that output isn't affected by the extension at all (for all intents and purposes, that's just a terminal that's embedded in VS Code - we have no special powers over it and can't mess with its output). In that case, I would raise this i the VS Code repo directly (and post a link back here for anyone else that comes across it). Thanks!acoutts commentedon Aug 24, 2020
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:
DanTup commentedon Aug 24, 2020
@acoutts Oh wait, I was testing with a plain Dart project, not Flutter 🙈
I'll try again!
DanTup commentedon Aug 24, 2020
Ok, I can repro - but not only in Insiders, but also stable, and also from the terminal:
So I think something may have changed in Flutter - would you mind raising at flutter/flutter? Thanks!
[-]Colored debug console output is not working recently in Insiders[/-][+]Colored debug console output is not working[/+]acoutts commentedon Aug 24, 2020
Thanks for looking into it and confirming for me @DanTup
acoutts commentedon Aug 24, 2020
Ahh so the issue seems to only be in iOS builds. Definitely sounding more like a flutter issue.
radrt commentedon May 14, 2023
I have the same issue for ios.
When android, colors are there.
(Android studio)
DanTup commentedon May 15, 2023
The issue needs handling in Flutter - there's an open issue about that at flutter/flutter#64491.