Skip to content

Add viewport documentation breadcrumbs#63192

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
nscobie:breadcrumbs
Aug 14, 2020
Merged

Add viewport documentation breadcrumbs#63192
fluttergithubbot merged 1 commit intoflutter:masterfrom
nscobie:breadcrumbs

Conversation

@nscobie
Copy link
Contributor

@nscobie nscobie commented Aug 7, 2020

Description

Backfilling documentation breadcrumbs from debugging #61631

Related Issues

N/A

Tests

N/A

Checklist

Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read Handling breaking changes.

  • No, no existing tests failed, so this is not a breaking change.

@nscobie nscobie requested a review from gaaclarke August 7, 2020 13:43
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

1 similar comment
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Aug 7, 2020
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment is a bit confusing, can you explain more?

Copy link
Contributor Author

@nscobie nscobie Aug 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to clean it up a bit, let me know what you think of the new version. It was meant to mirror the super method's documentation: RenderObject.describeSemanticsConfiguration.

@goderbauer
Copy link
Member

PR triage: @nscobie any chance you can follow up on the comments?

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

@chunhtai I appreciate the review! I've added a bit more context to each "see also" reference, and tried to clarify the comment about describeSemanticsConfiguration. I don't mind removing anything here that just doesn't seem like helpful detail, but I think these links would have helped me personally when learning how things interact.

@goderbauer apologies for the delay, the start of the semester has given me less time than I'd like to volunteer on this.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are great, they add more explanation to a complicated system.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

@googlebot I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

LGTM

👍 Thanks again!

Heads up, I no longer have write access, so you'll need to merge for me (assuming tests pass).

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite docs-linux has failed. Please fix the issues identified (or deflake) before re-applying this label.

@chunhtai
Copy link
Contributor

Hi @nscobie, the doc presubmit check is failing.

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

Huh, looks like a crash to me. @chunhtai would you mind initiating a re-run?

dartdoc:stdout: Generating docs for library webdriver.sync_io from package:webdriver/sync_io.dart...
dartdoc:stderr: found 0 warnings and 1 error
dartdoc:stdout: Documented 112 public libraries in 730.7 seconds
dartdoc:stderr:
dartdoc:stderr: dartdoc failed: dartdoc encountered 1 errors while processing..
dartdoc:stderr: #0      Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:225:9)
dartdoc:stderr: <asynchronous suspension>
dartdoc:stderr: #1      Dartdoc.executeGuarded.<anonymous closure> (package:dartdoc/dartdoc.dart:485:15)
dartdoc:stderr: #2      _rootRun (dart:async/zone.dart:1190:13)
dartdoc:stderr: #3      _CustomZone.run (dart:async/zone.dart:1093:19)
dartdoc:stderr: #4      _runZoned (dart:async/zone.dart:1630:10)
dartdoc:stderr: #5      runZonedGuarded (dart:async/zone.dart:1618:12)
dartdoc:stderr: #6      Dartdoc.executeGuarded (package:dartdoc/dartdoc.dart:483:5)
dartdoc:stderr: #7      main (file:///root/.pub-cache/hosted/pub.dartlang.org/dartdoc-0.32.3/bin/dartdoc.dart:24:11)
dartdoc:stderr: <asynchronous suspension>
dartdoc:stderr: #8      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
dartdoc:stderr: #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
dartdoc:stderr:
������������

@chunhtai
Copy link
Contributor

Hi @nscobie it is not a crash https://api.cirrus-ci.com/v1/task/5909429256192000/logs/main.log

dartdoc:stdout: Generating docs for library material from package:flutter/material.dart...
dartdoc:stdout: Generating docs for library painting from package:flutter/painting.dart...
dartdoc:stdout: Generating docs for library physics from package:flutter/physics.dart...
dartdoc:stdout: Generating docs for library rendering from package:flutter/rendering.dart...
dartdoc:stderr:   error: unresolved doc reference [SingleChildScrollView.showOnScreen], from rendering.RenderViewportBase.showInViewport: (file:///tmp/flutter%20sdk/packages/flutter/lib/src/rendering/viewport.dart:1064:15)
dartdoc:stdout: Generating docs for library scheduler from package:flutter/scheduler.dart...
dartdoc:stdout: Generating docs for library semantics from package:flutter/semantics.dart...

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

Ah thanks for pointing that out, I should have looked at the full log.

It's because I overlooked that SingleChildScrollView actually relies on _RenderSingleChildViewport to override showOnScreen. I'll update the docs to reflect that.

@nscobie
Copy link
Contributor Author

nscobie commented Aug 14, 2020

CI looks happy now 🎉

@fluttergithubbot fluttergithubbot merged commit ede1b15 into flutter:master Aug 14, 2020
smadey pushed a commit to smadey/flutter that referenced this pull request Aug 27, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants