-
Notifications
You must be signed in to change notification settings - Fork 118
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
dartdoc failed: type 'PropertyAccessImpl' is not a subtype of type 'IdentifierImpl' in type cast #2934
Comments
I'm seeing this too on the bleeding edge SDK (commit b41922f9253a59ed693d238f2d1332684b5873a6) when running dartdoc on dart_style. |
I'm a dart rookie but this seems related? If the fix is already in, should releasing a new path version fix the issue? |
I am also having this issue. |
Same issue for me. The base dartdoc package does not have this issue |
Link to my package github actions output. This started to happen with the latest update. |
Same problem here Dart version: 2.16.0 |
I am getting error as well!
|
Fixed in b3927dd. Might be able to cherry-pick into a 2.16 minor release. |
This includes a fix for dart-lang/dartdoc#2934 google3 has been running with this commit for over a week. Change-Id: Ice86344f9fcf6503ad0c4d71fddd71bd292ca1bc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232088 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
I see. It's not supposed to fix it. Hope it get cherry-picked into 2.16.2 or something. |
No I didn't make that cherry-pick. |
It looks like the only workaround is to downgrade to dart 2.15, correct? Is there a suggested workaround for those using flutter? Downgrading to flutter 2.8.1 and then generating docs works, but it is not a great solution to have to keep switching versions. I supposed I could install dart 2.15 separately from flutter, but that also doesn't seem like a great solution. Does this impact ability to generate documentation after publishing to pub, or is this issue only local? |
Sorry, I meant to post the other workaround. Instead of running Run |
I hit the same issue when I do that. Instead of |
Sorry, I think |
That works. Thank you. |
for flutter users:
|
I'm hitting this issue as well
|
try to add the package in your pubspec.yaml file if you faced any packages incompatible with dependency constraints, run:
then run:
I hope this solves your issue |
Result of running
dart doc .
:Not sure if this is a bug or if I did something wrong.
The text was updated successfully, but these errors were encountered: