-
Notifications
You must be signed in to change notification settings - Fork 248
Patch for tags/v0.9.3 to make it work on SDK 1.1 #408
Conversation
….declarations (SDK 1.1+). This patch makes AngularDart 0.9.3 work on SDK 1.0 and 1.1.
With the dev channel, I'm getting the following error running the tests. $ dart --version $ dart bin/parser_generator_for_spec.dart NoSuchMethodError : method not found: 'classes' |
Update to 1.1.0-dev.5.6 (released today) and try again. Cheers,
|
Mystery solved: this change needs a new pubspec.lock. Running "pub upgrade" fixes my error. Tests pass for me as well. Thanks! |
Tangentially related: pubspec.lock shouldn't be versioned for libraries such as angular IIRC. |
@bgourlie The pubspec.lock is used for our test suite. Does it also effect projects which depend on Angular? |
I just chatted with @munificent (one of the Pub creators) he said checking in a lockfile in this case is totally fine :) |
MERGED |
…rt sdk 1.1 resolves dart-archive#408 Fixes dart-archive#408 Closes dart-archive#583
Dart SDK 1.1 is shipping soon. We need to update Angular 0.9.3 to work with that somehow.
This is a patch for tags/v0.9.3 that makes the code work on SDK 1.0 and 1.1. It doesn't change the (broken) semantics of only doing a local member lookup (using either ClassMirror.members or ClassMirror.declarations), but it does use ClassMirror.instanceMembers when available (SDK 1.1 running on Dartium) which is better.
Not sure how to go about landing this and pushing out a new release (0.9.3.1?). Ideally, we can update the pub version too so all the tutorials and samples that currently use 0.9.3 automatically get the fix.