Page 1 of 1

Error: 2005052004: The JavaScript linter timed out

Posted: Tue Oct 22, 2019 2:20 pm
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.

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Tue Oct 22, 2019 2:32 pm
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?

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Tue Oct 22, 2019 3:03 pm
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.

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Tue Oct 22, 2019 3:11 pm
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.

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Wed Oct 23, 2019 9:43 am
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?

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Wed Oct 23, 2019 1:25 pm
by markwolk
Done. Thank you.

Re: Error: 2005052004: The JavaScript linter timed out

Posted: Wed Oct 23, 2019 3:59 pm
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.