AnsweredAssumed Answered

Webscripts, import tags & IDEs

Question asked by kbryd on Dec 20, 2012
Latest reply on Feb 20, 2013 by loftux
Hi

How do you manage to suppress errors reported by IDEs when working with webscript JavaScript code which imports other resources? For example:


<import resource="classpath:includes/callutils.js">
function main()
{
    model.sortDef = doSomething();
}
main();

Such code will create error warnings in NetBeans, IntelliJ (and most probably in Eclipse too - I don't know as I am not using Eclipse).

Do you know if there is another way to import JS files which does not break code formatting and language inspection in IDEs?

Karol

Outcomes