-
Notifications
You must be signed in to change notification settings - Fork 121
Can't generate dartdoc for v0.9.0-alpha+2 due to analysis errors #207
Comments
We are facing a similar problem with the pana package that analyzes and scores the packages for pub.dartlang.org. dart-lang/pana#213 Maybe there is a common solution we can agree on in both cases. |
This should be fixed by the switch to The problem is that with transformers, those files don't actually exist anywhere that the analyzer can use. |
@chalin As a temporary workaround you can insert the line Then you can successfully run Dartdoc locally. |
Good idea, I'll do that. Thanks. |
dart-lang/dartdoc#1586 is related to this as we don't interpret analysis options because we're not on the analysis driver yet. This is the next big piece of dartdoc work though. |
Could we find a way to (optionally) ignore this error? dart-lang/dartdoc#1595 By just commenting out the throw in DartDoc, I was able to generate the docs for components pretty easily |
@nshahan - FYI, adding |
If the docs generated are reasonable without the error dartdoc can be made to ignore it. This probably requires inspection; dartdoc itself might not be able to tell that it went off the rails, especially outside of checked mode. If the docs are still good despite the error we can add that to the list of things dartdoc sets for the analyzer, at least until our related bug about using the analysis driver is fixed. |
My guess is that the resulting docs should be ok. I'm willing to do the required manual inspection if you'd like to put ignoring that error behind a flag. |
Doc generation seems to proceed now (under SDK 2-dev.24) even when the error is present. The generated docs seem fine. |
Here is the log output.
But the analysis_options.yaml file contains:
I'm using:
cc @kwalrath @jcollins-g
The text was updated successfully, but these errors were encountered: