yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

Uncaught Error: Severity must be any of warning,error. undefined is passed. #123

Open treyphillips opened 9 years ago

treyphillips commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.175.0 System: Mac OS X 10.10.1 Thrown From: atom-lint package, v0.20.1

Stack Trace

Uncaught Error: Severity must be any of warning,error. undefined is passed.

At events.js:85

Error: Severity must be any of warning,error. undefined is passed.
  at new Violation (/Users/tlphillipsjr/.atom/packages/atom-lint/lib/violation.coffee:12:17)
  at CSSLint.module.exports.CSSLint.createViolationFromElement (/Users/tlphillipsjr/.atom/packages/atom-lint/lib/linter/csslint.coffee:36:9)
  at CSSLint.module.exports.XmlBase.createViolationsFromXml (/Users/tlphillipsjr/.atom/packages/atom-lint/lib/linter/xml-base.coffee:30:8)
  at /Users/tlphillipsjr/.atom/packages/atom-lint/lib/linter/xml-base.coffee:19:25
  at Parser.<anonymous> (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:384:20)
  at Parser.emit (events.js:107:17)
  at Object.onclosetag (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:348:26)
  at emit (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
  at emitNode (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
  at closeTag (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
  at Object.write (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
  at Parser.exports.Parser.Parser.parseString (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:403:31)
  at Parser.parseString (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:6:61)
  at Object.exports.parseString (/Users/tlphillipsjr/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:433:19)
  at /Users/tlphillipsjr/.atom/packages/atom-lint/lib/linter/xml-base.coffee:17:14
  at ChildProcess.<anonymous> (/Users/tlphillipsjr/.atom/packages/atom-lint/lib/command-runner.coffee:32:7)
  at ChildProcess.emit (events.js:110:17)
  at maybeClose (child_process.js:1009:16)
  at Socket.<anonymous> (child_process.js:1177:11)
  at Socket.emit (events.js:107:17)
  at Pipe.close (net.js:469:12)

Commands

Config

{
  "core": {}
}

Installed Packages

# User
atom-lint, v0.20.1
color-picker, v1.4.4
dash, v1.0.2
emmet, v2.3.2
html-entities, v0.2.0
linter, v0.10.0
linter-htmlhint, v0.0.8
tag, v0.2.3

# Dev
No dev packages

/cc @atom/core