Skip to content

infra/docs.sh fails on second run #3935

Closed

Description

@sethladd

Run infra/docs.sh once. Hurray, it works!
Run it again, sadness. (Looks like the code isn't properly detecting artifacts left over from previous run.)

generating docs for library widgets from widgets.dart...
Documented 43 libraries in 153.7 seconds.

Success! Docs generated into /Users/sethladd/Code/flutter/dev/docs/doc/api

Creating a custom index.html in dev/docs/doc/index.html
Unhandled exception:
FileSystemException: Rename failed, path = 'dev/docs/doc/api' (OS Error: Directory not empty, errno = 66)
#0      _Directory.renameSync (dart:io/directory_impl.dart:212)
#1      renameApiDir (file:///Users/sethladd/Code/flutter/dev/tools/dartdoc.dart:100:34)
#2      createIndexAndCleanup (file:///Users/sethladd/Code/flutter/dev/tools/dartdoc.dart:92:3)
#3      main.<main_async_body> (file:///Users/sethladd/Code/flutter/dev/tools/dartdoc.dart:85:3)
#4      _RootZone.runUnary (dart:async/zone.dart:1137)
#5      _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:553)
#6      _Future._propagateToListeners (dart:async/future_impl.dart:639)
#7      _Future._completeWithValue (dart:async/future_impl.dart:426)
#8      _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:481)
#9      _microtaskLoop (dart:async/schedule_microtask.dart:41)
#10     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#11     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)

Activity

  1. self-assigned this
    on May 16, 2016
  2. github-actions commented on Sep 6, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions