-
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
LateInitializationError: Field 'objectClass' has not been initialized. #3947
Comments
Thanks for the detailed report! |
Can you say what version of Dart you are using? |
No problem!
|
Is this consistently reproducible? I can't reproduce using the steps above. |
@nex3 can you say if your repro is consistent? I've tried a few times in a row with sass_api and cannot reproduce. |
I’m able to consistently reproduce this and it was reproducible in my CI as well. |
@srawlins let me know if there's anything else I can do to help. Happy to debug it further on my local machine later today. |
I have some ideas of how to fix, but I'd love to be able to reproduce locally. I can push some potential fixes to a branch, and if you could |
Sounds great! Happy to verify the fix -- let me know when you have a branch 👍 |
Thanks much @felangel! The branch is here: https://github.com/srawlins/dartdoc/tree/pre-compute-object So I think you can activate dartdoc with: 🤞 Hope that command works, and hope the fix works! |
@srawlins looks like it's still not fixed on my end unfortunately :( Before
After
|
Yes, the specific steps I laid out seem to reproduce it consistently when using Dart 3.6.0. It does not reproduce with Dart 3.5.x, because pub selects an older version of dartdoc. Once sass/dart-sass#2469 lands you'll probably need to check out an older version of the repo to force it to use Dartdoc 8.3.1. |
I can confirm that the issue only happens on Dart 3.6, we saw this error when running pana in Formz's CI and bumping the CI down to an older Flutter (and Dart) version mitigated it for us. |
Description
dartdoc 8.3.1 throws a
LateInitializationError
whereas dartdoc 8.3.0 did not (seems to be introduced in #3929).Reproduction Steps
git clone https://github.com/felangel/bloc.git
cd bloc/packages/hydrated_bloc
dart pub global activate dartdoc
dart pub global run dartdoc
LateInitializationError
The text was updated successfully, but these errors were encountered: