Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cocos2d-Console cannot generate new cpp project templates/*.* #9716

Closed
joaopedronardari opened this issue Dec 30, 2014 · 4 comments
Closed
Assignees

Comments

@joaopedronardari
Copy link

In the most recent version I can't generate a new cpp project.

I saw that another user had the same problem in another version:
#9293

But this message error bellow appeared in 3.3 (final version):
NOTE: I've used 3.3rc0 a month ago and worked. Now I used 3.3 final (in a new machine using Windows 8.1) and this problem appeared.

C:\Users\myuser\Desktop\cocos2d-x-3.3>cocos new MyGame -p com.Project.MyGame -l cpp -d Project Running command: new Traceback (most recent call last): File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\bin\/coc os.py", line 745, in <module> run_plugin(command, argv, plugins) File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\bin\/coc os.py", line 708, in run_plugin plugin.run(argv, dependencies_objects) File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\plugins\ project_new\project_new.py", line 210, in run self.parse_args(argv) File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\plugins\ project_new\project_new.py", line 139, in parse_args self.init(args) File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\plugins\ project_new\project_new.py", line 80, in init self._templates = Templates(args.language, self._templates_paths, args.templ ate) File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\plugins\ project_new\project_new.py", line 244, in __init__ self._scan() File "C:\Users\myuser\Desktop\cocos2d-x-3.3\tools\cocos2d-console\plugins\ project_new\project_new.py", line 263, in _scan dirs = [name for name in os.listdir(templates_dir) if os.path.isdir( WindowsError: [Error 5] Access is denied: 'C:\\Users\\myuser\\templates/*.*'

@minggo
Copy link
Contributor

minggo commented Dec 31, 2014

@natural-law
Could you please take a look?

@natural-law
Copy link
Contributor

@joaopedronardari
I'm sorry for the problem. Here is a PR from another developer: cocos2d/cocos2d-console#205
Could you please help me to check whether it's works? Because I don't have the environment to reproduce the problem.
Thank you very much!

@natural-law
Copy link
Contributor

@joaopedronardari
The problem is solved by this PR of cocos2d-x :#9743
The related PR in cocos2d-console is : cocos2d/cocos2d-console#207

Thanks for your feedback!

@joaopedronardari
Copy link
Author

@natural-law @minggo Thanks so much! I will try again next friday. =D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants