Skip to content

[flutter_tools] PathNotFoundException when running flutter create #142537

@eliasyishak

Description

@eliasyishak

Version: stable/3.16.9
Command: flutter create --template app --overwrite .

PathNotFoundException: PathNotFoundException: Creation failed, path = 'C:\Users\xxxx\Documents\xxxxx\flutter_application_1\lib' (OS Error: The system cannot find the file specified.
, errno = 2)
at _Directory.createSync(directory_impl.dart:129)
at _File.createSync(file_impl.dart:303)
at ForwardingFile.createSync(forwarding_file.dart:26)
at ErrorHandlingFile.createSync.<anonymous closure>(error_handling_io.dart:283)
at _runSync(error_handling_io.dart:590)
at ErrorHandlingFile.createSync(error_handling_io.dart:282)
at Template.render.<anonymous closure>(template.dart:321)
at _LinkedHashMapMixin.forEach(compact_hash.dart:633)
at Template.render(template.dart:281)
at CreateBase.renderMerged(create_base.dart:483)
at <asynchronous gap>(async)
at CreateBase.generateApp(create_base.dart:506)
at <asynchronous gap>(async)
at CreateCommand.runCommand(create.dart:361)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1367)
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:348)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:294)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:112)
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 listc: crashStack traces logged to the consoleteam-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