-
Notifications
You must be signed in to change notification settings - Fork 141
Column start (1) greater than line length (0) #687
Comments
I get the same error on Atom v.1.10.2, Mac OSX 10.10.5 after updating this plugin to v7.3.0 today. Don't really know where to start looking for source of this error or what other info might be helpful. |
Same issue, Ubuntu 14.04, Atom 1.9.7, updated to plugin v7.3.0 |
I am not seeing any problems with Atom For those of you having this problem, can you try restarting Atom and confirm that it still occurs? If so, some more details would be great. e.g. does this happen on every file you try to open, or only certain files? |
@IanVS It happens when user write the code and code have unclosed brackets. Just updated Atom to 1.10.2, issue is still presents |
Just restarted to test, and the issue still persists after a reboot. Running Xubuntu 16.04 (Ubuntu 16.04 base). |
I'm getting this error even after restarting atom. I had a similar issue with Here's a gif of the easiest way I have found to recreate the issue: Here is my .eslintrc.json file.
|
Looking into this now. |
@halleycarleton Your specific case is due to @dev-pro-alexander-subota and @rockerest it looks like you are both hitting the same thing as well. @bigslycat I'm not sure what you are hitting as you provided no information necessesary to reproduce the error (file that shows it + config for I'll get a nice clean reproduction case and file this over on ESLint. |
@Arcanemagus Perhaps we should at least add a safety check to make sure the column number is valid and avoid throwing an error? |
@Arcanemagus Can (probably) confirm that it's the Update for anyone coming here later: It's not just lines where the length is zero, but any rule checking (apparently) at the end of the line. Have seen a bunch of places where it's referencing column 51 when there are only 50 columns, etc. |
Filed over there, turns out this has been broken since |
reverting back to |
ESLint v3.5.0 includes the fix by @IanVS for this bug, update the local copy in your projects and you should stop seeing this error 😉. |
Nope, still facing the same issue.
|
I don't even see eslint's path in the error trace. So why should eslint be responsible for the issue, or is the trace incomplete? |
ESLint itself provides the invalid marker, e.g. column position 1 for line with 0 characters. |
But shouldn't the problem have been fixed with 3.5.0? |
@22sk, would you mind linting the file which is throwing the error using the eslint cli, and post the results? It could well be another rule that is causing your problems. The only one fixed in ESLint so far is |
@IanVS The message appears like completely randomly, if any line length changes. The CLI's output looks just as it should. No thrown errors or such. |
@22sk did you restart Atom after updating |
I've restarted and I'm no longer getting the error related to I did see it for one other error, but I can't remember how I reproduced it. When I figure it out, I'll report it against upstream ESLint. |
@Arcanemagus I did... |
FWIW, ESLint v3.5.0 fixes the issue on my end. edit. After using Atom for a while, I'm still getting this error occasionally, but with a different (higher) column numbers than before. I'm not able to reproduce this consistently though. I guess #689 is the error I'm seeing now. |
v7.3.1 is released which should show the offending error in the message shown to you. As the bug causing the originally reported issue has been fixed in Thanks everyone for taking the time to help track this down and report it! |
Atom v1.10.1, Ubuntu 16.10
The text was updated successfully, but these errors were encountered: