Harm Aarts

Results 73 comments of Harm Aarts

When did you run into this exception? Can you tell me which printers you were using? Also please provide the entire stacktrace/error output.

Ah. That makes sense. Seems you are passing a `ChatMessage` as a value of a map key to the printer? Then that `ChatMessage` needs to implement a `String toJson()` method.

No. There's a period coming in which I can ponder these questions. For one I need to think about the implications of adding a dependency. And the impact of that...

I've taking some time to muck around with this and I found that `dart:developer` solution did not work for me. I replaced the `print` statement in `ConsoleOutput` with `log` and...

Even more digging. Would could copy the heart of the `debugPrint` function from Flutter. It is found [here](https://github.com/flutter/flutter/blob/fba99f6cf9/packages/flutter/lib/src/foundation/print.dart#L110-L179). It is long...

I don't think XCode supports colors: https://stackoverflow.com/questions/40583721/print-to-console-log-with-color. The mentioned [XcodeColors](https://github.com/robbiehanson/XcodeColors) project seems only to work for XCode < 9.x. Your safest best seems to pass the `colors=false` arg to the...

Colors will never work in IDE terminals. None support ANSI escape codes. Passing `colors: false` to the constructor of `PrettyPrinter` at least gets rid of the garbage.

A plugin in VSCode that would enable ASNI colors would work indeed.

Could you point to a location in the source where you think the error is?