-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.14Found to occur in 3.14Found to occur in 3.14has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Run the following commands sequentially:
flutter create my_app --empty
mkdir my_app/test
touch my_app/test/some_test.dart
cat my_app/test/some_test.dart # prints nothing, finds this file
flutter create my_app --empty # I want to repair this project, but I don't want to add any boilerplate
cat my_app/test/some_test.dart # ! No such file or directoryExpected results
some_test.dart shouldn't be deleted since we are just trying to repair this project after its initial creation.
Actual results
The whole test folder is now gone.
Alternatives I've considered
Using flutter create without the --empty option. But that'll add the boilerplate I want to avoid.
Context
I'm trying to set-up my own mason brick, with several files in both lib and test which. flutter create . --empty is handy since it won't generate useless (within this context) files.
Code sample
N.A.
Screenshots or Video
N.A.
Logs
N.A.
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.13.2, on Ubuntu 22.04.3 LTS 6.2.0-32-generic, locale en_US.UTF-8)
• Flutter version 3.13.2 on channel stable at /home/venir/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ff5b5b5fa6 (4 weeks ago), 2023-08-24 08:12:28 -0500
• Engine revision b20183e040
• Dart version 3.1.0
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
• Android SDK at /home/venir/Android/Sdk
• Platform android-33, build-tools 33.0.0-rc4
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 10.0.0-4ubuntu1
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] VS Code (version unknown)
• VS Code at /snap/code/current
• Flutter extension version 3.72.0
✗ Unable to determine VS Code version.
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-32-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.62
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.victoreronmosele and lucavenir
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.14Found to occur in 3.14Found to occur in 3.14has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team