tern.java icon indicating copy to clipboard operation
tern.java copied to clipboard

Project validation (jshint) hangs when it contains big files

Open orlandoibm opened this issue 9 years ago • 4 comments

Steps:

  1. Clone this repository.
  2. Convert it into a Tern project
  3. Enable JSHint validation
  4. Allow Eclipse to validate the project.

The validation process hangs on the file "lib/words.js" and if tracing in the console, the only message shown is:

Tern request#jshint: {"query":{"type":"jshint","lineNumber":true,"file":"lib/words.js"}}

While in the Progress view, it says:

Validation... Tern Validator starting to validate: words.js

orlandoibm avatar Feb 02 '16 20:02 orlandoibm

After debugging, it seems that the problem comes from JSHint 2.9.1 (I have tried with simple command jshint and there is the same problem). I have created the issue at https://github.com/jshint/jshint/issues/2866

For tern.java, it should be good that to stop the validator when JSHint hangs. I have none idea for the moment how we could do that.

angelozerr avatar Feb 03 '16 00:02 angelozerr

@orlandoibm can I close this issue?

angelozerr avatar Apr 27 '16 00:04 angelozerr

Yes @angelozerr, go ahead and close it. Thanks.

orlandoibm avatar Apr 27 '16 14:04 orlandoibm

Thanks @orlandoibm

angelozerr avatar Apr 27 '16 17:04 angelozerr