admin管理员组

文章数量:1306835

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.

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.

Share Improve this question edited Sep 30, 2015 at 13:21 UltraSonja asked Sep 30, 2015 at 13:03 UltraSonjaUltraSonja 8911 gold badge20 silver badges33 bronze badges 1
  • 1 I have this problem also. I wonder about Help->Installation Details, and then UNINSTALL the JBoss Tools Java Standard Tools Tern.java Adapter. Will that fix the problem? – John Henckel Commented Dec 12, 2016 at 19:18
Add a ment  | 

3 Answers 3

Reset to default 3

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_ponents) 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.

To deal with this problem, open your workspace and drop the folder, like E:\eclipse\workspace\.metadata\.plugins\tern.eclipse.ide.server.nodejs.embed.win32.win32.x86_64, the node.exe in it is the point.

I resolved this issue by simply eliminating the built in js files from path.

  1. I removed this from validations '**/node_modules/*,**/bower_ponents/*'. (If it even didn't resolve)Go to Properties of the project > JavaScript > Include Path > Validation

OR

  1. Go to Properties of the project > JavaScript > Include Path > Source and remove the whole project. Click on "Add Folder" and give the required path for your JS. Like projectname/src/pages.

本文标签: javascriptTern Synchronizing script resources with tern serverStack Overflow