Skip to content

Generating new project doesn't work #353

Open
@rynkowsg

Description

@rynkowsg

I tried to generate new project using coco2d-x v3 (35beef) and it doesn't work.

$ cocos new MyGame -p com.MyCompany.MyGame -l cpp
Loading .bash_profile
Loading .bashrc
Traceback (most recent call last):
  File "/Users/g.rynkowski/src/cocos2d-x/tools/cocos2d-console/bin/cocos.py", line 992, in <module>
    run_plugin(command, argv, plugins)
  File "/Users/g.rynkowski/src/cocos2d-x/tools/cocos2d-console/bin/cocos.py", line 916, in run_plugin
    plugin.run(argv, dependencies_objects)
  File "/Users/g.rynkowski/src/cocos2d-x/tools/cocos2d-console/plugins/plugin_new/project_new.py", line 258, in run
    self.parse_args(argv)
  File "/Users/g.rynkowski/src/cocos2d-x/tools/cocos2d-console/plugins/plugin_new/project_new.py", line 140, in parse_args
    if args.list_templates:
AttributeError: 'Namespace' object has no attribute 'list_templates'

On the other hand, it works when I checked out cocos2d-x v3.12 (26fb643).

v3 uses cocos2d-console with HEAD: 08e776c, and
v3.12 uses cocos2d-console with HEAD: 04ade20

Between them are only two commits:

$ git log --oneline 04ade20..08e776c
08e776c Merge pull request #352 from ricardoquesada/disable_gui_templates
32511e9 disable cocos gui and --list-templates

Obviously, 32511e9 causes that issue.

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