For my sanity, can someone verify a strange bug I'm having with the dart editor?
I'm using the latest dart editor from the main page of the website, I downloaded, extracted, then ran the "DartEditor" executable. (I didn't clear any previous settings that were stored elsewhere, but I don't think that will change the issue.)
Dart Editor version 1.0.0_r30798 (STABLE)
Dart SDK version 1.0.0.10_r30798
On console (not in the editor) run dart test/sprintf_test.dart
The output should be:
decimal=1, exp=0, digits=[5, 4, 6, 6]
Next, fire up the editor, and open the folder.
With the breakpoint I'm getting the following output:
decimal=1, exp=0, digits=[0, 0, 5, 4, 6, 6]
I've attributed it to the List<String>
constructor, which seems to initialise to not be empty.
Does anyone else get this problem? I've tried to condense this into a testable single file, but have failed to reproduce; I'm only able to reproduce it in the actual project.
Definitely sounds like a bug. As Fox32 suggests, please file a bug on http://dartbug.com/new.
Generally these kind of bugs happen for two reasons:
toString
method on visible variables, it could have a side-effect. Most commonly this happens to Iterable
s that have a side-effect.