Repository navigation
double.fromEnvironment does not exist #124665
Copy link
Copy link
Closed
Labels
found in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9Found to occur in 3.9has 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 versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onfound in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9Found to occur in 3.9
on Apr 12, 2023 I can see this in the following lines. Labeling the issue
flutter/packages/flutter_tools/lib/src/runner/flutter_command.dart
Lines 612 to 636 in e21c149
void usesDartDefineOption() { argParser.addMultiOption( FlutterOptions.kDartDefinesOption, aliases: <String>[ kDartDefines ], // supported for historical reasons help: 'Additional key-value pairs that will be available as constants ' 'from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, ' 'and double.fromEnvironment constructors.\n' 'Multiple defines can be passed by repeating "--${FlutterOptions.kDartDefinesOption}" multiple times.', valueHelp: 'foo=bar', splitCommas: false, ); useDartDefineConfigJsonFileOption(); } void useDartDefineConfigJsonFileOption() { argParser.addMultiOption( FlutterOptions.kDartDefineFromFileOption, help: 'The path of a json format file where flutter define a global constant pool. ' 'Json entry will be available as constants from the String.fromEnvironment, bool.fromEnvironment, ' 'int.fromEnvironment, and double.fromEnvironment constructors; the key and field are json values.\n' 'Multiple defines can be passed by repeating "--${FlutterOptions.kDartDefineFromFileOption}" multiple times.', valueHelp: 'use-define-config.json', splitCommas: false, ); } - removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Apr 12, 2023 - added a commit that references this issue
on Apr 18, 2023 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Apr 19, 2023 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on May 3, 2023
Metadata
Metadata
Assignees
Labels
found in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9Found to occur in 3.9has 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 versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
The current dart-define docs read:
while dart-define-from-file reads:
However, there is no fromEnvironment constructor for double.