{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15674","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15674/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15674/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15674/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/15674","id":155530501,"number":15674,"title":"V3: cocos-console broken on windows","user":{"login":"stammen","id":1226490,"avatar_url":"https://avatars.githubusercontent.com/u/1226490?v=3","gravatar_id":"","url":"https://api.github.com/users/stammen","html_url":"https://github.com/stammen","followers_url":"https://api.github.com/users/stammen/followers","following_url":"https://api.github.com/users/stammen/following{/other_user}","gists_url":"https://api.github.com/users/stammen/gists{/gist_id}","starred_url":"https://api.github.com/users/stammen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stammen/subscriptions","organizations_url":"https://api.github.com/users/stammen/orgs","repos_url":"https://api.github.com/users/stammen/repos","events_url":"https://api.github.com/users/stammen/events{/privacy}","received_events_url":"https://api.github.com/users/stammen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T15:23:43Z","updated_at":"2016-05-18T17:47:22Z","closed_at":null,"body":"V3: running cocos console on windows is broken on v3 branch. Generates a /.cocos\\\\local_cfg.json file not found error. Should not crash if there is no config file.\r\n\r\n```\r\nC:\\Users\\stammen\\github\\cocos2d-x-v3>cocos new foo -l cpp -d projects\r\nIn order to continually innovate and improve Cocos products, Chukong Aipu may collect certain usage statistics from the software including but not limited to a unique identifier,  version number of the software, and information on which tools and/or services in Cocos products are being used and how they are being used. The data collected is examined in the aggregate to improve Cocos products and is maintained in accordance with Chukong Aipu's Privacy Policy.\r\nDo you agree to sent the data? [Y]es, [N]o\r\ny\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\stammen\\github\\cocos2d-x-v3\\tools\\cocos2d-console\\bin\\/cocos.py\", line 959, in <module>\r\n    DataStatistic.show_stat_agreement()\r\n  File \"C:\\Users\\stammen\\github\\cocos2d-x-v3\\tools\\cocos2d-console\\bin\\/cocos.py\", line 341, in show_stat_agreement\r\n    cls.change_agree_stat(agreed)\r\n  File \"C:\\Users\\stammen\\github\\cocos2d-x-v3\\tools\\cocos2d-console\\bin\\/cocos.py\", line 314, in change_agree_stat\r\n    cls.set_cfg_value(cls.key_agreement_showed, True)\r\n  File \"C:\\Users\\stammen\\github\\cocos2d-x-v3\\tools\\cocos2d-console\\bin\\/cocos.py\", line 303, in set_cfg_value\r\n    f = open(cfg_file, 'w')\r\nIOError: [Errno 2] No such file or directory: 'C:\\\\Users\\\\stammen/.cocos\\\\local_cfg.json'\r\nC:\\Users\\stammen\\github\\cocos2d-x-v3>\r\n```"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/220104910","html_url":"https://github.com/cocos2d/cocos2d-x/issues/15674#issuecomment-220104910","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15674","id":220104910,"user":{"login":"stammen","id":1226490,"avatar_url":"https://avatars.githubusercontent.com/u/1226490?v=3","gravatar_id":"","url":"https://api.github.com/users/stammen","html_url":"https://github.com/stammen","followers_url":"https://api.github.com/users/stammen/followers","following_url":"https://api.github.com/users/stammen/following{/other_user}","gists_url":"https://api.github.com/users/stammen/gists{/gist_id}","starred_url":"https://api.github.com/users/stammen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stammen/subscriptions","organizations_url":"https://api.github.com/users/stammen/orgs","repos_url":"https://api.github.com/users/stammen/repos","events_url":"https://api.github.com/users/stammen/events{/privacy}","received_events_url":"https://api.github.com/users/stammen/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T17:47:22Z","updated_at":"2016-05-18T17:47:22Z","body":"The user agreement code also introduces a new issue: https://github.com/cocos2d/cocos2d-x/issues/15675. There is now no way to run cocos new from jenkins to test building a newly generated game from the templates."}}