Setting up an environment for developing File-based-modules with Code Completion

LabKey Support Forum (Inactive)
Setting up an environment for developing File-based-modules with Code Completion slangley  2010-09-20 19:43
Status: Closed
 
Do you have any advice on setting up a development environment to support user-friendly editing with code-completion for the LabKey JavaScript API's?

I only have the Community Edition of IntelliJ and JavaScript code-completion doesn't seem to work with it.

In Aptana or NetBeans, I can get some of the code-completion working - for Ext JS and some of the LabKey API's - if I put those JavaScript files inside my Aptana or NetBeans project.

However, I can't get code-completion working with the static functions on LABKEY.Query as defined in clientapi/Query.js. Any suggestions?

Thanks.

Scott Langley
 
 
Brian Connolly responded:  2010-09-21 13:10
Scott,

I am sorry to say that I do not have a great answer for you. We also have not been able to find an IDE that handles code-completion well for javascript. Most of the LabKey developers use the Ultimate edition of IntelliJ (which has code completion support for javascript) for javascript development, but IntelliJ code completion for javascript also has problems (ie not working for all functions). Thus most do use the IDE's code completion, but instead use the javascript API reference documentation located at https://www.labkey.org/download/clientapi_docs/javascript-api/


NOTE: As you found out the community edition of IntelliJ does not support code completion for javascript.

Again, sorry that I do not have any better advice.


Brian Conolly