Crash when formatting (Dart sdk: '>=2.0.0-dev.65.0 <2.0.0')


I updated the Dart SDK installed on my computer to the version sdk: '>=2.0.0-dev.65.0 <2.0.0'. When I launch webdev serve, I receive this error message:

Crash when formatting: [AsciiControlCharacter] The control character U+001A can only be used in strings and comments.
RangeError (index): Invalid value: Not in range 0..271155, inclusive: 272138
#0  _StringBase.[] [...]

Is it happening to you too? How can I solve?



Rerun pub global activate webdev and try again.

Answered By – Patrice Chalin

Answer Checked By – Mildred Charles (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *