-
Notifications
You must be signed in to change notification settings - Fork 37
Error: Column start (20) greater than line length (1) #176
Comments
The most helpful thing is figuring out which specific rule is triggering it, if you can. |
OK, by progressively cutting down the rule list, starting by the less likely to be the culprit, I got a suspect:
If I use the "never-multi-line" value, for example, and use the so called "one true brace" style, it doesn't crash. Also it happens only in Scss mode, doesn't happen in .css files. |
Awesome, thanks! It happens in SCSS files because of the way |
OK. I first thought it happened only with your plugin, but indeed now I can reproduce it with the command line. Well, more exactly, I get the spurious error:
Not sure why it makes your plugin to crash instead of reporting this "error". |
The problem is that We have this check in there to catch when linters themselves have a bug and are feeding invalid data back to us, and it's resulted in many bugs in lots of different linters being found (and fixed!). Getting the linters working better is worth a little bit of annoyance here I would say, although we should work more on limiting the amount of times the error gets thrown. |
Yeah. @PhiLhoSoft put in a good issue at stylelint to address this. |
Frankly, this kind of error has no interest for the end user... |
Just an FYI, this is fixed in stylelint/stylelint#1168, just waiting on a release to include it here. |
Seems like Stylelint 6.3.1 has included the fix for this and you've just merged in #187. Any ETA for the next version release? |
@diagramatics Waiting on integration of the HTML CSS extraction before releasing, if #142 hasn't been fixed up by the time I wake up tomorrow that's the first thing I'll be doing. |
v2.8.0 is now published 🎉. |
Yes, it is an error similar to the one reported in #166 where I initially posted.
As asked, I create a new issue... 😄
First, the file with a small file reproducing the problem, and the config.
Stylelint-issue.zip
I originally wrote:
Windows 7, Atom 1.7.2, atom-stylelint 2.6.0 (I uninstalled it and re-installed it just in case the upgrade went bad).
I still see the issue.
This one appeared right after I installed (back) the package and went to a .scss file.
Actually, I could pinpoint what triggers it.
It appears as soon as I put a line comment in a .scss file, after a selector.
Line comments are harmless after variable declarations, or plain CSS declarations, but fatal after a selector.
I join a sample SCSS file and my config file, hoping you can reproduce it.
(see above)
See the comment // Triggers the bug!
Remove it, no problem. Paste it back, the error above appears after a second or two.
In other words:
is OK, while
triggers the above error.
As a workaround, I have moved these comments before the selectors...
Thanks for your useful tool.
The text was updated successfully, but these errors were encountered: