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

Invalid position given by 'W027' #458

Open
spir1donov opened this issue Jul 18, 2017 · 8 comments
Open

Invalid position given by 'W027' #458

spir1donov opened this issue Jul 18, 2017 · 8 comments
Labels

Comments

@spir1donov
Copy link

JSHint returned a point that did not exist in the document being edited.
Rule: W027
Requested point: 219:16

Debug information:

Atom version: 1.18.0
linter-jshint version: v3.1.5
JSHint version: jshint v2.9.5
Hours since last Atom restart: 0.1
Platform: darwin
Current file's scopes: [
  "source.js",
  "constant.other.object.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 code indented using tabs?

@spir1donov
Copy link
Author

spir1donov commented Jul 18, 2017 via email

@Arcanemagus
Copy link
Member

It looks like this is another case of jshint/jshint#3151 then. Please follow that issue for when this will be fixed in JSHint.

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.

@spir1donov
Copy link
Author

spir1donov commented Jul 18, 2017 via email

@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
}

@spir1donov
Copy link
Author

Hi! Thank you for your help, I really appreciate it

@Arcanemagus
Copy link
Member

@spir1donov I'm actually leaving this issue open as a "catchall" for other users hitting this. If you don't want to receive notifications feel free to unsubscribe 😉.

@Arcanemagus Arcanemagus reopened this Sep 20, 2017
@spir1donov
Copy link
Author

Nice idea! I'll unsubscribe then

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