Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19120] Windows: Module name suggestion should include text description, not just a regular expression for format

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-01-04T01:43:34.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.1.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterLokesh Choudhary
AssigneeChristopher Williams
Created2015-07-01T00:22:21.000+0000
Updated2017-03-16T22:34:14.000+0000

Description

Steps To Reproduce:

1. In appc CLI do "appc new" 2. CLI will prompt to enter the module name you want to have. 3. Observe the name suggestion given below :
>> name must be of the format:

Actual Result:

1. The name suggestion shows random characters :
C:\Users\Steve Ballmer\Desktop>appc new
Appcelerator Command-Line Interface, version 4.1.0-4
Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.

? What type of project are you creating?
? What type of project are you creating? Titanium Module
? What's the project name?
>> name must be of the format: /^[\w]{2,}[\w\.\d-_]+$/

Expected Result:

1. The name suggestion should not show random characters.

Comments

  1. Christopher Williams 2015-07-01

    The suggested format is using a regular expression to tell you what the name must match. Not sure if we should expect our users to be aware enough of regular expressions to understand (they likely would), or if we should try and translate to something like: It must start with two letters or digits, followed by at least one of: letters, digits, periods, hyphens or underscores.
  2. Lokesh Choudhary 2015-07-01

    [~cwilliams], Yes a proper sentence like you suggested above will be good & we can include these characters at the end of the sentence. It looks better than just seeing these characters directly.
  3. Kota Iguchi 2015-11-11

    I think this issue is not specific to *titanium_mobile_windows* but more related to *appc-cli* or *appc-cli-titanium*. Should I escalate this to CLI team?
  4. Kota Iguchi 2016-01-04

    This is already fixed for now, right? Tested on "Ti CLI 5.1.0" on Windows 10 and the prompt returns "project name is invalid" message for me.
  5. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source