Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Invalid position given by 'E043' #574

Open
nemchik opened this issue Mar 16, 2018 · 7 comments
Open

Invalid position given by 'E043' #574

nemchik opened this issue Mar 16, 2018 · 7 comments
Labels

Comments

@nemchik
Copy link

nemchik commented Mar 16, 2018

JSHint returned a point that did not exist in the document being edited.
Rule: E043
Requested point: 605:79

Debug information:

Atom version: 1.25.0
linter-jshint version: v3.1.6
JSHint version: jshint v2.9.5
Hours since last Atom restart: 0.5
Platform: win32
Current file's scopes: [
  "source.js",
  "punctuation.terminator.statement.js"
]
linter-jshint configuration: {
  "lintInlineJavaScript": true,
  "executablePath": "",
  "disableWhenNoJshintrcFileInPath": false,
  "scopes": [
    "source.js",
    "source.js-semantic"
  ],
  "jshintFileName": ".jshintrc",
  "jshintignoreFilename": ".jshintignore"
}
@Arcanemagus
Copy link
Member

Assuming that you are indenting your file with tabs this is another case of jshint/jshint#3151. 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
}

If anyone is directed here and isn't using tabs to indent please provide code to reproduce this so an issue can be filed on JSHint to get this fixed there.

@Arcanemagus
Copy link
Member

I'm leaving this issue open @nemchik so that others hitting it will be directed here by the search the package does. If you aren't interested in getting further notifications for this thread please click the "Unsubscribe" button on the right, thanks!

@Arcanemagus Arcanemagus reopened this Mar 16, 2018
@nemchik
Copy link
Author

nemchik commented Mar 16, 2018

No problem. These all seemed to be duplicates of each other after you started answering them, sorry for opening so many (I couldn't really tell what the errors were for). This is what happens when you open someone else's JavaScript lol.

@Arcanemagus
Copy link
Member

No worries, it's a major bug in JSHint causing it to report invalid positions for any file that has tabs in it.

@nemchik
Copy link
Author

nemchik commented Mar 16, 2018

That's quite ugly. Is there an issue open for this on jshint?

@Arcanemagus
Copy link
Member

As stated above: jshint/jshint#3151 😆

@nemchik
Copy link
Author

nemchik commented Mar 16, 2018

I'm having trouble reading today, it's been a long day, thanks for bearing with me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants