Home Download Buy Blog Forum Support

Problem with Sublime CodeIntel

Problem with Sublime CodeIntel

Postby supersuraccoon on Mon Aug 19, 2013 7:27 am

I've been looking for a light weight IDE for writing game in javascript with cocos2d-html5 framework and I found sublime text a really good choice.

I am using Sublime Text 2 and I have installed package control and Sublime CodeIntel successfully.

Then I created a folder in my game project with a config file containing the framework path:

Code: Select all
{
   "JavaScript": {
      "javascriptExtraPaths": [
         "xxx/xxx/xxx/Cocos2d-html5-v2.1.4/cocos2d"
      ]
   }
}


But here is the problem:

Here is part of the code:
Code: Select all
this.cliLayer = CLILayer.create(700, 250);
this.cliLayer.addLog("log");


If I "Ctrl+Click" at the “CLILayer” then the "CLILayer.js" file will be opened correctly.
Then I "Ctrl+Click" the "addLog" hoping that it will bring me the to the definition inside the
CLILayer.js but it just gives me a warning saying:

"Evaluation this.cliLayer.addLog ...... could not resolve first part of this.cliLayer.addLog".

Hope someone can help me, thanks :)
supersuraccoon
 
Posts: 2
Joined: Mon Aug 19, 2013 6:50 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 36 guests