Tern: Synchronizing script resources with tern server

UltraSonja picture UltraSonja · Sep 30, 2015 · Viewed 9.5k times · Source

In JBoss Devstudio, I am getting this new "error" with Tern: Synchronizing script resources with tern server. It's not really an error, but it's a process that occurs every single time I click in a JavaScript file. It's just spinning and freezes up the entire IDE. This has never happened to me before, and I was working on the project yesterday without any issues.

Does anyone know what the hell this is? There isn't really anything on Google except one post that says to upgrade.

Answer

Angelo picture Angelo · Oct 2, 2015

JBoss Devstudio integrates tern.java for JavaScript support. I think your problem is because that you have a lot of JavaScript files in your project (inside node_modules or bower_components) and tern.java tries to analyze your all JavaScript files, and it takes time.

In your case, you need to exclude folders like node_modules and to do that you must use a version of tern.java >= 1.0.0 which support include/exclusion pattern path.