linter-jshint icon indicating copy to clipboard operation
linter-jshint copied to clipboard

Invalid position given by 'W098'

Open ianpaschal opened this issue 7 years ago • 3 comments

JSHint returned a point that did not exist in the document being edited. Rule: W098 Requested start point: 459:29

Sorry there's hundreds of lines in this file and I have no idea where this issue is coming from. The error is listed 10 times as well.

Debug information:

Atom version: 1.17.2
linter-jshint version: v3.1.4
JSHint version: jshint v2.9.5
Hours since last Atom restart: 0.4
Platform: darwin
Current file's scopes: [
  "source.js",
  "meta.method-call.js",
  "meta.arguments.js",
  "comment.block.js"
]
linter-jshint configuration: {
  "disableWhenNoJshintrcFileInPath": true,
  "lintInlineJavaScript": true,
  "executablePath": "",
  "scopes": [
    "source.js",
    "source.js-semantic"
  ],
  "jshintFileName": ".jshintrc",
  "jshintignoreFilename": ".jshintignore"
}

ianpaschal avatar Jun 24 '17 12:06 ianpaschal

Known issue in JSHint itself, please follow https://github.com/jshint/jshint/issues/3151 for updates.

Arcanemagus avatar Jun 24 '17 20:06 Arcanemagus

Reopening this as a tracking issue so future users that update to v3.1.5 will get directed here and see the related JSHint issue.

If anyone is directed here and isn't using tabs to indent your file please file a new issue with a file to reproduce it on the JSHint repo, or file one here and I'll try to help you in getting one filed there where it can be fixed.

Arcanemagus avatar Jun 29 '17 23:06 Arcanemagus

There are reports that if you set your indent property of your JSHint configuration to 1 this issue can be worked around. If you don't have a .jshintrc file the following should work:

{
  "indent": 1
}

Arcanemagus avatar Sep 13 '17 17:09 Arcanemagus