Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sequence of command cause Null check exception] #358

Closed
bnjun96 opened this issue Oct 27, 2021 · 0 comments · Fixed by #367
Closed

[Sequence of command cause Null check exception] #358

bnjun96 opened this issue Oct 27, 2021 · 0 comments · Fixed by #367
Labels
enhancement New feature or request

Comments

@bnjun96
Copy link

bnjun96 commented Oct 27, 2021

Before creating a feature request make sure the suggestion fit within our principles

Unhandled exception:
type 'Null' is not a subtype of type 'String' in type cast

#0      new FvmConfig.fromMap (package:fvm/src/models/config_model.dart:41)
#1      new FvmConfig.fromJson (package:fvm/src/models/config_model.dart:31)
#2      ConfigService.read (package:fvm/src/services/config_service.dart:21)
<asynchronous suspension>
#3      ProjectService.getByDirectory (package:fvm/src/services/project_service.dart:18)
<asynchronous suspension>
#4      useVersionWorkflow (package:fvm/src/workflows/use_version.workflow.dart:15)
<asynchronous suspension>
#5      UseCommand.run (package:fvm/src/commands/use_command.dart:86)
<asynchronous suspension>
#6      CommandRunner.runCommand (package:args/command_runner.dart:209)
<asynchronous suspension>
#7      FvmCommandRunner.run (package:fvm/src/runner.dart:72)
<asynchronous suspension>
#8      main (file:///private/tmp/fvm-20211027-54069-11mnwzs/fvm-2.2.3/bin/main.dart:6)
<asynchronous suspension>

Steps to procedure

  1. run fvm use 2.2.0 --flavor dev
  2. run fvm use 1.22.6 --flavor prod

Hope to enhance feature, pre set fvm_config flutterSdkVersion with version.
Example run fvm use 2.2.0 --flavor dev
fvm_config.json will be

{
"flutterSdkVersion": null 1.22.6,
"flavors": {
"dev": "1.22.6"
}
}

Else throw to developer run fvm use first before with flavor.

@bnjun96 bnjun96 added the enhancement New feature or request label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant