Closed nilsdoehring closed 6 years ago
Seems like a bug in DDC. Not PPW. Something with EventTovoid()._check(subscription.eventListener)
CC @jmesserly – thoughts?
I think this was fixed in https://github.com/bp74/StageXL/pull/310 ?
Yup. Thanks!
On Sat, May 12, 2018, 17:37 Jenny Messerly notifications@github.com wrote:
I think this was fixed in bp74/StageXL#310 https://github.com/bp74/StageXL/pull/310 ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dart-lang/sample-pop_pop_win/issues/58#issuecomment-388592839, or mute the thread https://github.com/notifications/unsubscribe-auth/AABCit4rPI9eCXXxxVlsGQaKG8uYuzeCks5tx4BLgaJpZM4T8eA9 .
Sorry, forgot to close this earlier. The root cause was super hard to identify, by the way. Will browser debugging and/or error messages improve before Dart 2 hits stable?
e.g. this was the original error (WS 2018.1.3 EAP, SDK 2.0.0-dev54.0). It did not 'produce' a breakpoint in debugger (don't know the correct lingo here).
totally agree, @nilsdoehring – @jmesserly @vsmenon @alan-knight – FYI
...we have done a lot of work to make these types of errors better. But more examples are certainly helpful!
Do you know what's printing Uncaught _js_helper.TypeErrorImplementation
? Is that JS code or is it Dart code?
I wonder if we have a bug where Dart toString isn't hooked up to JS toString.
JS, here's Chrome's console output:
@jmesserly may I point you to this, where I put together a more elaborate description of the debugging experience.
Hey @kevmoo,
As of 0.4.0, build_runner sets
ignore_cast_failures
to false by default, resulting in runtime errors whenever StageXL fires Events. You can witness this when running this project, for example.For a quick fix, see https://github.com/nilsdoehring/dartbook/blob/master/build.yaml#L12 how to set the flag to true (I had to unearth that info from build_runner sources).
But, of course we don't want StageXL to produce cast errors in the first place. Unfortunately, neither @bp74 nor I understand why it does. Much appreciated if you could join our discussion.
Thanks!