Skip to content

firebase init aborts when no feature is selected #5232

@Deleplace

Description

@Deleplace

[REQUIRED] Environment info

firebase-tools: 11.12.0

Platform: MacOS Monterey 12.6

[REQUIRED] Test case

Project creation from scratch

[REQUIRED] Steps to reproduce

  • Launch command firebase init
  • Hit "Enter" instead of "Space" on feature selection
  • The CLI exits and deletes firebase-debug.log
test% ls
firebase-debug.log
test% firebase init         

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  /Users/deleplace/Documents/2022/09/30/test

? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. 

Error: Must select at least one feature. Use SPACEBAR to select features, or specify a feature by running firebase init [feature_name]

Having trouble? Try firebase [command] --help
test% ls
test% 

[REQUIRED] Expected behavior

Please prompt me again for features selection, instead of aborting.

The logs loss problem is #5231

[REQUIRED] Actual behavior

The process gave up too fast (exits with error code), when I naively hit Enter to select a feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions