-
Notifications
You must be signed in to change notification settings - Fork 124
Dartdoc does not run under --preview-dart-2 #1668
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
Comments
Note: mustache4dart has not been updated in 10 months https://github.com/valotas/mustache4dart |
@jcollins-g, |
@devoncarew I have some changes to mustache4dart on deck. I'll upload a PR once I have a steel thread through dartdoc. |
With #1669, this is almost ready to go. But we're blocked on pub run support, an analyzer package, and dart-lang/sdk#32901. |
Attempting this end to end has uncovered more things we need to tweak in library dependencies. |
Analyzer publish has happened; once test package is updated we can move to the new analyzer with preview-dart-2 support. |
Running tests now to determine if a new dartdoc roll is a prerequisite to enabling dart 2 in the snapshot generation. Hopefully not -- I think dart-lang/sdk#32901 is really the last bug. |
Tests pass with the bleeding edge SDK. Will switch snapshots in the SDK immediately, then follow up with a new dartdoc release. |
Building a snapshot seems to have stronger requirements than running with --preview-dart-2. This error had never shown up in previous testing.
|
Actually, it turns out that --help was never actually tested before attempting to use it as a training run for snapshot generation. Dartdoc was passing a null to an optional parameter (hide) in the args library and this wasn't caught until the --help case because there was no other comparison in the args library assuming that hide was always a boolean. |
A number of (mostly runtime) exceptions occur within dartdoc and mustache4dart, the templating package dartdoc uses.
This is distinct from dartdoc understanding dart 2 code; it does this already.
The text was updated successfully, but these errors were encountered: