You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I got the same problem with you and I saw some updates in project_new.py.
They commented some code,
# if args.list_templates:
# print(json.dumps(Templates.list(self.get_templates_paths())))
# sys.exit(0)
but it doesn't work,still some wrong
File "/Users/Ascen/Desktop/develop/cocos2d-x/tools/cocos2d-console/plugins/plugin_new/project_new.py", line 78, in init
if args.template_name:
AttributeError: 'Namespace' object has no attribute 'template_name'
I tried to generate new project using coco2d-x v3 (35beef) and it doesn't work.
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:
Obviously, 32511e9 causes that issue.
The text was updated successfully, but these errors were encountered: