Loading ...
Sorry, an error occurred while loading the content.

2816Re: Lines numbers in error report seem to be off in latest version

Expand Messages
  • mariana.schiff
    Mar 1, 2012
      --- In jslint_com@yahoogroups.com, Satyam <satyam@...> wrote:
      > It seems the line counter is not counting the blank lines, at least
      > that's what it seems in the first few lines when the code causing the
      > error seemed obvious, later on, I could not pinpoint what's setting it
      > off, if anything else is.

      The line counter is off again for me.

      I'm using JSLint as part of my pre-build process, and as an external tool in my development environment. In both cases, I'm using the WSH ReadAll method to read in the JavaScript file.

      I've tried changing the line endings of my source files, but WSH.ReadAll must be changing them all back, because the JSLint line counter gets off by one for every blank line in the source, regardless of line ending character(s).

      I noticed the IE workaround was backed in on Jun 09, 2011, and removed again on Feb 20, 2012. That's when my line counts broke. Is there any hope that this workaround will be put back in? Do I need to use WSH.ReadLine in my script and concatenate the lines before calling JSLINT? I'd expect this change broke anybody using JSLint with WSH.
    • Show all 16 messages in this topic