-
Notifications
You must be signed in to change notification settings - Fork 125
Canonicalization overhaul part two #1390
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
Changes from 5 commits
a36caba
00769a5
dd0c072
09706d8
48f30cd
ef98fc1
a009d9d
bc887df
c31115e
93b97a9
5efd477
9aa79d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,61 @@ | ||
## unreleased | ||
|
||
* added a new `--footer-text` command-line option, to allow adding additional | ||
text in the package name and copyright section of the footer | ||
* Reduced stack depth by not recomputing findCanonicalLibraryFor (#1381) | ||
## 0.11.0 | ||
|
||
* Many cleanups to dartdoc stdout/stderr, error messages, and warnings: | ||
* Display fatal errors with 'fatal error' string to distinguish them from ordinary errors | ||
* Upgrades to new Package.warn system. | ||
* Fully integrated all scattered "warnings" (#1369) and added new ones for the link checker. | ||
* Allow for setting which warnings are errors in the library. | ||
* Change location output to something IntelliJ can understand and link to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 |
||
* Display location output for all warnings including line number plus column, when available | ||
from analyzer (still some bugs in our resolution). It still doesn't do code references quite | ||
right but at least gets you to the neighborhood. | ||
* Add a warn method to ModelElements so they can warn on themselves without help from the Package. | ||
* Warn correctly and squelch duplicates across doc inheritance and canonicalization almost | ||
everywhere. | ||
* Change --show-warnings to show all warnings, even those that might not be useful yet. | ||
* Display a count of all warnings/errors after document generation. | ||
* Make the progress counter tick slower. | ||
* Added a built-in link checker and orphaned file generator, and tied it into Package.warn so | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ==> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
that when debugging dartdoc we can breakpoint and discover what about that ModelElement | ||
caused us to create the broken link. (#1380) | ||
* Fix bug where canonicalEnclosingElement could return a non-canonical Class. | ||
* Fix bug where findCanonicalModelElementFor could return a non-canonical Class. | ||
* Fix overriddenElement for Accessors to generate using enclosingCombo hint to ModelElement factory. | ||
* Fix fullyQualifiedNameWithoutLibrary when periods are part of the library name. | ||
* Add an allModelElements for Classes to support comment references. | ||
* Make allModelElements for Libraries work using Class.allModelElements recursively. | ||
* Squish some bugs related to duplicate logic for instantiating inherited class members. | ||
* Enum and a few other places could still generate duplicate ModelElements for the | ||
same thing. This is now fixed. | ||
* EnumField is now handled by ModelElement.from factory, fixing #1239. | ||
* Added hints for EnumField and Accessors (index, enclosingCombo) to offload the buggy | ||
logic for figuring this out from callers to ModelElement.from. | ||
* Fix broken link generation when a canonical class's defining library isn't canonical. | ||
* Partial rewrite of GetterSetterCombo and Fields/TopLevelVariable handling | ||
* Link correctly to generic types for Fields/TopLevelVariables. | ||
* Use right, left, and bidirectional arrows for read-only, write-only, and read-write | ||
parameters. | ||
* Partial rewrite of comment reference system (#1391, #1285 partial) | ||
* Handle gracefully a variety of things users try in the real world, like prefixing operators | ||
with 'operator', embedded newlines in comment references, and cases that shouldn't be | ||
considered at all (comment refs that are really array references in sample docs, etc). | ||
* Handle canonicalization correctly for comment references: point to the right places and | ||
only to canonical elements. | ||
* In general, warnings related to comment references should be much more useful now. (#1343) | ||
* Many fewer ambiguous doc reference warnings now and the ones that exist should be more | ||
easily understandable and fixable with the new warning message. | ||
* Understand references to parameters even though we don't do anything useful with them just yet | ||
* Generics outside square brackets (#1250) are now warned with better context information that | ||
takes newlines into account, but there are so many of them in complex packages like Flutter | ||
that we still only show those with --show-warnings. | ||
* Cache the traversal of allModelElements. | ||
* Change handling of enum constant linking in codeRefs to work properly, though warnings about | ||
that aren't right in some edge cases still. | ||
* Only use analyzer resolving of commentRefs as a last resort since they don't take dartdoc | ||
canonicalization into account. | ||
* Added a new `--footer-text` command-line option, to allow adding additional | ||
text in the package name and copyright section of the footer. | ||
* Reduced stack depth by not recomputing findCanonicalLibraryFor. (#1381) | ||
* Workaround for (#1367) forces on enableAssertInitializer. | ||
* Work around analyzer-0.29 bug where embedded SDK uri's aren't properly | ||
reversed. | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Food for thought for later - Dart now has good support for detecting when a console supports ansi. There are some very lightweight libraries for colorizing console output and showing indeterminate progress. We may want to use ansi colors when writing warnings and errors.
https://github.com/google/tuneup.dart/blob/master/lib/src/ansi.dart
https://github.com/google/tuneup.dart/blob/master/lib/src/logger.dart#L92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I was wondering about that.