Skip to content

CLI errors out when project name is less than 5 chars #2514

Closed

Description

@plug-n-play

[REQUIRED] Environment info

Firebase version 8.6.0

firebase-tools:

Platform:
macOS 10.14.6

[REQUIRED] Test case

Firebase CLI Issue

[REQUIRED] Steps to reproduce

  1. Open Terminal
  2. Type firebase init
  3. Enter project name as less than 6 characters

[REQUIRED] Expected behavior

The terminal should display validation error and re-prompt to enter valid name greater than 6 or more characters.

[REQUIRED] Actual behavior

firebase init errors out
Please see attached debug logs

firebase-debug.log

Activity

  1. google-oss-bot commented on Aug 2, 2020

    @google-oss-bot
    Collaborator

    This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

  2. aditmodhvadia commented on Aug 4, 2020

    @aditmodhvadia

    @plug-n-play Seems like a feature request and not a bug in my opinion. Is it causing any other problems for you?

  3. plug-n-play commented on Aug 4, 2020

    @plug-n-play
    Author

    @aditmodhvadia - IMHO, this is an existing feature which is not working as expected in the given use case. There is no description of what went wrong when the request to execute the existing feature fails and relies on user to open the created debug file where error description is found in the logs. Atleast the error description should be displayed in the terminal not everyone tends to open the debug file.

  4. aditmodhvadia commented on Aug 4, 2020

    @aditmodhvadia

    I get your point @plug-n-play . Then the bug over here is to show what went wrong in the terminal and, the feature request can be to re-prompt the user to enter the name of the project again. Just sharing my thoughts on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions