Skip to content

[plugins] Obscure failure when using update-excerpts while IDE is open #107180

@stuartmorgan-g

Description

@stuartmorgan-g

If a plugin is open in VS Code with default settings while running update-excerpts, it will often failure with an unhelpful error message like:

Cannot rename file to '[...]/example/.dart_tool/pub/bin/build_runner/build_runner.dart-2.18.0-216.0.dev.snapshot', path = '[...]/example/.dart_tool/pub/incremental/build_runner/tmpOZSDBC/build_runner.dart.incremental.dill.incremental.dill' (OS Error: No such file or directory, errno = 2)

It seems to be a race with the setting to run pub get when the pubspec.yaml changes, which we change on the fly as part of that command. We should see if we can find a way to avoid the race, since having to close the project is kind of annoying. For now I'll document it in the wiki.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions