-
Notifications
You must be signed in to change notification settings - Fork 214
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
tests don't run due to "Class 'Group' has no instance getter 'comment'." #328
Comments
Are you sure you're running 0.12.4+6? Your stack trace indicates that Does this happen when you run the test file via the test runner, or only directly via |
I modified the pubspec and ran "pub update" to switch back and forth, and it seemed to break/fix it. I saw it using both "pub run test" and running the Dart file directly. It's clearly not broken for everyone (and I just tried it at work and it was fine) so I'll investigate later when I'm at home. |
Make sure you run |
It looks like I somehow changed the file in .pub_cache. I moved the directory aside and downloaded it again, and everything is fine. The only difference is: diff -r test-0.12.4+6.old/lib/src/backend/declarer.dart test-0.12.4+6/lib/src/backend/declarer.dart 34c34 < var prefix = _group.comment; --- > var prefix = _group.description; Now that I think of it, I remember doing a search and replace from "description" to "comment" in the project I was working on, and that must have changed this file somehow. I don't see why, though, since there's no reason I would have had this file open in Atom. I wonder if "pub" should set the permissions on files in .pub_cache to read-only to prevent this sort of thing? Anyway, it's not a test package bug. |
Once we get rid of package symlinks (dart-lang/pub#727), this will be much less of an issue. Until then, any permissions management is blocked on dart-lang/sdk#15078. |
Using 0.12.4+6, I get this error for all my tests:
If I roll back to 0.12.4+5 then it works.
The text was updated successfully, but these errors were encountered: