Skip to content

flutter version file not found during flutter pub get #133093

@christopherfujino

Description

@christopherfujino

on beta/3.14.0-0.1.pre (on linux)
with command flutter pub get

PathNotFoundException: Cannot open file, path = '/home/ping/.puro/envs/beta/flutter/version' (OS Error: No such file or directory, errno = 2)
at _File.throwIfError(file_impl.dart:675)
at _File.openSync(file_impl.dart:490)
at _File.readAsBytesSync(file_impl.dart:574)
at _File.readAsStringSync(file_impl.dart:624)
at ForwardingFile.readAsStringSync(forwarding_file.dart:99)
at ErrorHandlingFile.readAsStringSync.<anonymous closure>(error_handling_io.dart:218)
at _runSync(error_handling_io.dart:590)
at ErrorHandlingFile.readAsStringSync(error_handling_io.dart:217)
at _DefaultPub._updateVersionAndPackageConfig(pub.dart:705)
at _DefaultPub.interactively(pub.dart:538)
at <asynchronous gap>(async)
at PackagesGetCommand.runCommand(packages.dart:314)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1323)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:212)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:339)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:285)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:115)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:90)
at <asynchronous gap>(async)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions