Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart 1.19.0 breaks Angular2 change detection #26839

Closed
zoechi opened this issue Jul 8, 2016 · 16 comments
Closed

Dart 1.19.0 breaks Angular2 change detection #26839

zoechi opened this issue Jul 8, 2016 · 16 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async needs-info We need additional information from the issue author (auto-closed after 14 days if no response)
Milestone

Comments

@zoechi
Copy link
Contributor

zoechi commented Jul 8, 2016

Dart VM version: 1.19.0-edge.c0d594c86c7a9f132a8274c8223c3a1dcdf6692c (Wed Jul 6 06:52:12 2016) on "linux_x64"

breaks change detection for async calls like ´new Future((){...})` in Angular2 beta.17

Its working fine when I switch back to

Dart VM version: 1.18.0-edge.bb96f289217952cd7d298444519fc07dca995dee (Wed Jul 6 00:20:52 2016) on "linux_x64"

@floitschG floitschG added this to the 1.19 milestone Jul 8, 2016
@floitschG floitschG added area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async labels Jul 8, 2016
@floitschG
Copy link
Contributor

That might have been changes I did.
Do you have an example I could use to debug?

@floitschG
Copy link
Contributor

/cc @mit-mit, @kevmoo, @whesse: This is probably a release-blocker.

@whesse
Copy link
Contributor

whesse commented Jul 8, 2016

I'm not sure that this would be a release blocker for 1.18, since this is not on that dev branch.

This could also be due to a change in which packages are checked out, when the version number changed. Could you check the output of pub get (or the pubspec.lock file) for your project, under the two versions? I know test needed to be updated, and maybe other packages are choosing different versions.

The two versions you have tested differ by just 2 commits: The version number change, and a documentation change. So I would suspect the version change had an impact. You could override the project, running with the 1.19 SDK, with the package versions from the 1.18 version of pub get, to see if that fixes it.

@zoechi
Copy link
Contributor Author

zoechi commented Jul 8, 2016

Test was already updated to support Dart 1.19. I'll try to create a reproduction project but I don't know if I will be able to do it before my vacation next week.

@zoechi
Copy link
Contributor Author

zoechi commented Jul 9, 2016

I won't be able to set up a project, I have to go.

What I did is something like

String someProp = 'init';
ngOnInit() {
  new Future(() => this.someProp = 'foo');
}

which should invoke change detection after the future completed to update, but doesn't (only after some other event (mouse click, ...) invokes change detection.

{{someProp}} in the view, but the binding is only updated

@whesse
Copy link
Contributor

whesse commented Jul 13, 2016

Let's verify that this is not on 1.18.0-dev.4.0, before releasing it to stable.

@zoechi
Copy link
Contributor Author

zoechi commented Jul 16, 2016

I can reproduce in
Dart VM version: 1.19.0-edge.b43b9bad862f8c9b42981e437703a2aef804c7e9 (Fri Jul 15 14:31:57 2016) on "linux_x64"

@kevmoo
Copy link
Member

kevmoo commented Jul 18, 2016

@zoechi have you tried 1.18-dev?

Trying to see if this is related to #26906

@kevmoo kevmoo modified the milestones: 1.18, 1.19 Jul 18, 2016
@kevmoo
Copy link
Member

kevmoo commented Jul 18, 2016

Putting in 1.18 to see if it's related to #26906

@kevmoo kevmoo added the needs-info We need additional information from the issue author (auto-closed after 14 days if no response) label Jul 18, 2016
@whesse
Copy link
Contributor

whesse commented Jul 19, 2016

The original submission indicated it was not in 1.18.0-dev, I just wanted
someone to make absolutely certain of it, if possible. We are rather
certain it isn't in 1.18.

On Mon, Jul 18, 2016 at 9:55 PM, Kevin Moore notifications@github.com
wrote:

Putting in 1.18 to see if it's related to #26906
#26906


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#26839 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AErap4OCKP3Zxe9vVoGxzAvZ5rACN-LAks5qW9ohgaJpZM4JHwje
.

William Hesse

@kevmoo
Copy link
Member

kevmoo commented Jul 19, 2016

The original submission indicated it was not in 1.18.0-dev, I just wanted
someone to make absolutely certain of it, if possible. We are rather
certain it isn't in 1.18.

If that's the case, feel free to remove the milestone – or push it back to 1.19. Just being careful.

@mit-mit mit-mit modified the milestones: 1.19, 1.18 Jul 20, 2016
@mit-mit
Copy link
Member

mit-mit commented Jul 20, 2016

Bumping to 1.19

@zoechi
Copy link
Contributor Author

zoechi commented Jul 21, 2016

I don't know if the related code is included in

Dart VM version: 1.19.0-edge.db48637ab39adfc79e981a60ab9e3d0b59671323 (Wed Jul 20 13:09:21 2016) on "linux_x64"

but after updating to this version I'm not able to reproduce the problem.

@whesse
Copy link
Contributor

whesse commented Jul 21, 2016

Since the branch for 1.18, we reverted a major change to async futures, and a change to URIs. I would suspect the change of futures, but in the original report, the problem seemed to arise exactly when we changed the version number to 1.19, so it could also have been something about the pubspec and package versions. I would like to keep this open until we reland the changes to async, to make sure it doesn't reoccur. @floitschG

@mit-mit
Copy link
Member

mit-mit commented Aug 8, 2016

@floitschG @whesse can we close this now?

@floitschG
Copy link
Contributor

I haven't heard of any breakage recently. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async needs-info We need additional information from the issue author (auto-closed after 14 days if no response)
Projects
None yet
Development

No branches or pull requests

5 participants