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

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

Open
aubreyz opened this issue Jul 20, 2020 · 1 comment

Comments

@aubreyz
Copy link

aubreyz commented Jul 20, 2020

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

@pavelatreides
Copy link

pavelatreides commented Sep 17, 2020

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():

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants