@araker Thanks for you testing. It seems ScriptingCore is changed by other codes since v3.10. What i mention above is what i changed after v3.10. So it seems v3.10 is not correctly support.
The easiest way is use latest codes from cocos2d-x github repo because i can not be cover all the differences since v3.10.
@huyhungkun Sorry about it. As answered above, i think i have to change the doc to let users to use latest code from github repo. It is not so easy to support older version as i thought.
For reference, after creating a new project from the github source and copying the cocos directory to my existing project I got the project to compile.
Iām trying to debug on iPhone, but when I start debugging I get the error message ācocos request failed (reason: TypeError: Cannot read property ālengthā of undefined)ā. It looks like the debugger makes contact to the app, since touches donāt work anymore after the error message in the debugger. Though I canāt do anything after the error message.
Iāve tried to run the app from xcode and directly from the device, that didnāt make any difference.
@zhangxm, I did create a new project using the command line utility and then copied the cocos folder into my existing project. To be sure Iāve just tested with the newly created project on my phone, but I get the same error message in VSCode as in my existing project.
@zhangxm, let me be more clearly. Iāve downloaded the latest source from github 3 days ago. From that source Iāve created a new project with the command line tool. Iāve used that project to test this functionality. Iāve also copied the cocos folder from that new project into my existing project to update it to the latest sources. In both cases I couldnāt get it to work and Iām getting the same error message.
When you checkout the current github branch, create a new project from that source and test the debug functionality, does it work for you?
@eydamson@araker I updated cocos-debug.zip. This new version fixed some bugs, but i am not sure if it fixed the bugs you met. Could you please take a try?
I could send you my test project and see if that works on your machine.
For other people that want to try this out:
Check the path of your cocos install with āwhich cocosā, normally when running setup.py and use source ā¦ afterwards the path is changed, but I had to use source bash_profile as well before the path changes took effect.
Is VSCode right now ready to be used with 100% JavaScript projects created with Cocos Creator?
Iām using Cocos Creator 1.0 on Mac OS X and trying to setup VSCode to use it to debug my project, but for the moment Iām failing
Here is what is displayed in VSCode console: ar: attachRequest: address: localhost port: 7456 ar: attachRequest: connected ar: _termiated: Not a valid project.
Thanks for your help.