-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: first hourThe first hour of using FlutterThe first hour of using Flutterc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttergood first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsteam-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
Use case
I often try to use flutter create to spin up a quick example. The number of times I use - instead of _ is astounding, and the error text doesn't make it especially clear that this is why my package name is invalid ("my-flutter-exampe" is not a valid Dart package name.).
Proposal
It would be super helpful if the error message called this out, as I imagine 1) a lot of people make this mistake and 2) it's not immediately obvious to them that the - vs _ distinction is the cause of the problem. The tool could also suggest a valid package name if swapping the separator character with _ would yield a valid package name.
loic-sharma
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: first hourThe first hour of using FlutterThe first hour of using Flutterc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttergood first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsteam-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