AtomLinter / linter-stylelint

A plugin for Atom Linter providing an interface to stylelint.

Home Page:https://atom.io/packages/linter-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash - Error running stylelint Error: Column start (11) greater than line length (0) for line 8

aubreyz opened this issue · comments

linter-stylelint crashes on some code in a very obscure way. This does not appear to be due to stylelint itself as the same code does not misbehave with stylelint directly.

Produced by this semi-minimal code below in the atom style.less

The crash can be prevented by apparently unrelated changes to the code
a) Removing just the bracketed word (don't) in the comment
b) Reducing the first double line space to a single line space (but not the second double line space)
c) Deleting the whole 4 line block at the end starting ul
d) deleting just the ' in the commented word don't although this is clearly not the only cause of the error as the ' can be retained without error with other deletions.

The line numbers reported do not seem to relate to anything and with longer code do not point to anywhere apparently related

On version 13.6.1, Windows 10

Probably related to #176 which was not resolved it seems

atom-text-editor.editor {
  .line-number.foldable .icon-right {
    visibility: visible;
  }


}
// NOTE: atom-text-editor, color various stuff (don't)

atom-text-editor {
  .invisible-character {
    color: yellow;
  }

  .syntax--punctuation.syntax--definition.syntax--comment {
    color: #008C3F;
  }
}


ul.tab-bar > li.tab[is='tabs-tab'].active,
ul.tab-bar > li.tab[is='tabs-tab'].active > div.title {
  color: white;
}

Clipboard-20200720

I'm seeing this as well. The trigger in my code seems to be adding the following comments immediately after a main block:

    """Main""""
    #synchronous

But this does not seem to be exclusive. A plain test.py file that contains only the following also triggers it:

def main():