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

Invalid position given by 'W043' #439

Open
guillaumedenece opened this issue Jun 29, 2017 · 6 comments
Open

Invalid position given by 'W043' #439

guillaumedenece opened this issue Jun 29, 2017 · 6 comments
Labels

Comments

@guillaumedenece
Copy link

JSHint returned a point that did not exist in the document being edited.
Rule: W043
Requested start point: 123:23

Debug information:

Atom version: 1.18.0
linter-jshint version: v3.1.4
JSHint version: jshint v2.9.5
Hours since last Atom restart: 2.6
Platform: linux
Current file's scopes: [
  "source.js",
  "comment.line.double-slash.js",
  "punctuation.definition.comment.js"
]
linter-jshint configuration: {
  "executablePath": "",
  "lintInlineJavaScript": false,
  "disableWhenNoJshintrcFileInPath": false,
  "scopes": [
    "source.js",
    "source.js-semantic"
  ],
  "jshintFileName": ".jshintrc",
  "jshintignoreFilename": ".jshintignore"
}
@Arcanemagus
Copy link
Member

Is your file indented with tabs?

@guillaumedenece
Copy link
Author

Yes

@Arcanemagus
Copy link
Member

There is currently a known bug with tab indentation and JSHint, please follow jshint/jshint#3151 for details on when this will be fixed there.

@guillaumedenece
Copy link
Author

ok, thank you !

@Arcanemagus
Copy link
Member

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
Copy link
Member

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
}

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