js-padavan / atom-css-class-checker

This plugin checks matching of used classes and ids in HTML files with classes and ids described in CSS files
MIT License
4 stars 2 forks source link

Uncaught TypeError: Cannot read property 'start' of undefined #2

Open BMOv2600 opened 9 years ago

BMOv2600 commented 9 years ago

It just seems like editing html or CSS in any way is enough to create this issue. I'd like to be more help, but this issue seems to have come from nowhere.

Atom Version: 0.201.0 System: Mac OS X 10.10.3 Thrown From: atom-css-class-checker package, v0.4.3

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35

TypeError: Cannot read property 'start' of undefined
  at Function.module.exports.Range.fromObject (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:35:31)
  at Range.module.exports.Range.containsRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:215:31)
  at Manager.removeEditorMarkersInRange (/Users/deauberts/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:143:16)
  at Manager.parseTextRage (/Users/deauberts/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:111:6)
  at /Users/deauberts/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:94:9
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1172:25

Commands

     -0:45 editor:newline (atom-text-editor.editor.is-focused)
     -0:44.5.0 core:paste (atom-text-editor.editor.is-focused)
     -0:07.2.0 core:save (atom-text-editor.editor.is-focused)
     -0:02.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:02.3.0 core:paste (atom-text-editor.editor.is-focused)
  2x -0:01.7.0 core:undo (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "zenburn"
    ],
    "disabledPackages": [
      "css-color-underline",
      "css-color-highlight",
      "achievements"
    ],
    "projectHome": "/Users/Deauberts/desktop/fayz/my_site"
  }
}

Installed Packages

# User
atom-css-class-checker, v0.4.3
atom-lint, v0.20.1
auto-indent, v0.1.0
color-picker, v1.7.0
css-comb, v2.0.4
css-snippets, v0.8.0
file-icons, v1.5.5
highlight-line, v0.10.2
indent-guide-improved, v1.2.0
linter, v0.12.6
linter-csslint, v0.0.13
linter-xmllint, v0.0.6
project-quick-open, v0.4.4
slash-closer, v0.7.1
tag, v0.3.0
xml-formatter, v0.9.0
zenburn, v3.0.0

# Dev
No dev packages