Error: 2005052004: The JavaScript linter timed out

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
markwolk
Rank III - Intermediate
Posts: 56
Joined: Mon Jul 04, 2005 3:11 am

Error: 2005052004: The JavaScript linter timed out

Post by markwolk »

I get the above error after validation (which takes 30 seconds or more).

Under Options, "Enable JSHint Messages" and "Enable JSLint Messages" are both unchecked.

I do not need a JS validator.

Latest version (updated this morning); using Win10 up-to-date.

Please assist.
Mark Wolk
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Error: 2005052004: The JavaScript linter timed out

Post by Albert Wiersch »

Hi Mark,

I'm sorry for the trouble.

Are you trying to validate a JavaScript document? If so then it will try to validate it using the default JSHint linter if all the JavaScript checkers have been disabled. This is because it assumes you want to validate the document if you specifically try to do so -- even if you've otherwise disabled all the linters.

I'm not sure why you'd get the timeout though.

1) Are you trying to check a very large file?
2) Does it work with small JavaScript files?
3) Are you using any security programs that might be interfering with the programs that CSS HTML Validator needs to run in order to perform a JavaScript lint (like node.exe)?
4) Did it work before the last update?
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
markwolk
Rank III - Intermediate
Posts: 56
Joined: Mon Jul 04, 2005 3:11 am

Re: Error: 2005052004: The JavaScript linter timed out

Post by markwolk »

It is a small .html file 18.4kB . It does have some small scripts inside (mainly AdSense). The only security program I use is ESET NOD32. The problem prompted me to update CSE HTML Validator... which did not fix the problem.

About 2 months ago, I upgraded from Win7 to Win10. I cannot recall if the Error: 2005052004 appeared with Win10 Home 64, as I haven't used CSE HTML Validator very often in the meantime.
Mark Wolk
markwolk
Rank III - Intermediate
Posts: 56
Joined: Mon Jul 04, 2005 3:11 am

Re: Error: 2005052004: The JavaScript linter timed out

Post by markwolk »

Having checked, the error occurs seemingly only on .html pages with AdSense. Pages that have no AdSense, but other javascripts do not cause the error. Whether the AdSense code is placed between

Code: Select all

<!--cseignore--><!--/cseignore-->
tags does not make any difference.
Mark Wolk
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Error: 2005052004: The JavaScript linter timed out

Post by Albert Wiersch »

Hi Mark,

That's strange. Are you able to send me a (preferably small) sample document that I can use to reproduce the problem? If so then can you send it to support at htmlvalidator dot com via email attachment?
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
markwolk
Rank III - Intermediate
Posts: 56
Joined: Mon Jul 04, 2005 3:11 am

Re: Error: 2005052004: The JavaScript linter timed out

Post by markwolk »

Done. Thank you.
Mark Wolk
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Error: 2005052004: The JavaScript linter timed out

Post by Albert Wiersch »

markwolk wrote: Wed Oct 23, 2019 1:25 pm Done. Thank you.
Got it. Thank you!

And, as you confirmed in an email, the problem was that JavaScript Lint was enabled in the Validator Engine Options. This is the old deprecated JavaScript linter (not JSHint and not JSLint). Somehow it must have gotten turned on or the setting was kept throughout the years because you may have run old versions of CSS HTML Validator that defaulted with JavaScript Lint being enabled.

And there was probably an issue with JavaScript Lint that caused it to timeout when it checked certain scripts you were using on certain pages.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial