Aptana Scriptdoc doesn't show up in Code Assist

左心房为你撑大大i 提交于 2019-12-25 02:26:09

问题


I've followed all the instructions to get my code comments to show up in Code Assist but I'm not having any luck. Currently using Aptana 3 plugin inside of Eclipse (could that be the issue?)

myObj = {
/** 
* Gets the current foo 
* @param {String} fooId The unique identifier for the foo.
* @return {Object} Returns the current foo.
*/
getFoo: function (fooID) {
    return bar[fooID];
}

}

When I have the above code, the function shows up in code assist, but there is no documentation associated with it.


回答1:


Found out on the Aptana support forums that their Scriptdoc setup doesn't support undeclared vars.

If I change the above code to:

var myObj = {
    /** 
    * Gets the current foo 
    * @param {String} fooId The unique identifier for the foo.
    * @return {Object} Returns the current foo.
    */
    getFoo: function (fooID) {
        return bar[fooID];
    }
}

then everything works



来源:https://stackoverflow.com/questions/6193725/aptana-scriptdoc-doesnt-show-up-in-code-assist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!