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 TypeError: Cannot read property 'length' of undefined #174

Open bmjjr opened 9 years ago

bmjjr commented 9 years ago

[Enter steps to reproduce below:]

  1. meteor create helloworld
  2. cd helloworld
  3. atom helloworld.js

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

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At events.js:141

TypeError: Cannot read property 'length' of undefined
  at TextBuffer.module.exports.TextBuffer.lineLengthForRow (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:349:29)
  at TextBuffer.module.exports.TextBuffer.clipPosition (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:952:53)
  at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1042:27)
  at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:902:20)
  at TextEditor.module.exports.TextEditor.screenRangeForBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1173:33)
  at ViolationView.module.exports.ViolationView.initializeStates (/Users/bmj/.atom/packages/atom-lint/lib/violation-view.coffee:34:27)
  at ViolationView.module.exports.ViolationView.initialize (/Users/bmj/.atom/packages/atom-lint/lib/violation-view.coffee:19:6)
  at ViolationView.View (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/lib/space-pen.js:145:25)
  at new ViolationView (/Users/bmj/.atom/packages/atom-lint/lib/violation-view.coffee:7:3)
  at LintView.module.exports.LintView.addViolationViews (/Users/bmj/.atom/packages/atom-lint/lib/lint-view.coffee:66:27)
  at LintView.module.exports.LintView.onLint (/Users/bmj/.atom/packages/atom-lint/lib/lint-view.coffee:57:8)
  at /Users/bmj/.atom/packages/atom-lint/lib/lint-view.coffee:25:52
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:155:30
  at Array.forEach (native)
  at LintRunner.module.exports.Emitter.emitSlow (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:154:47)
  at LintRunner.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:107:30)
  at /Users/bmj/.atom/packages/atom-lint/lib/lint-runner.coffee:80:8
  at /Users/bmj/.atom/packages/atom-lint/lib/linter/xml-base.coffee:19:9
  at Parser.<anonymous> (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:432:18)
  at emitOne (events.js:77:13)
  at Parser.emit (events.js:166:7)
  at Object.onclosetag (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:401:26)
  at emit (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
  at emitNode (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
  at closeTag (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
  at Object.write (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
  at Parser.exports.Parser.Parser.parseString (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:451:31)
  at Parser.parseString (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:6:59)
  at Object.exports.parseString (/Users/bmj/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:483:19)
  at /Users/bmj/.atom/packages/atom-lint/lib/linter/xml-base.coffee:17:14
  at ChildProcess.<anonymous> (/Users/bmj/.atom/packages/atom-lint/lib/command-runner.coffee:32:7)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at maybeClose (child_process.js:997:16)
  at Socket.<anonymous> (child_process.js:1166:11)
  at emitOne (events.js:77:13)
  at Socket.emit (events.js:166:7)
  at Pipe.close (net.js:464:12)

Commands

Config

{
  "core": {}
}

Installed Packages

# User
angularjs, v0.1.0
atom-handlebars, v0.5.0
atom-lint, v0.20.1
autocomplete-python, v0.4.0
file-icons, v1.5.5
file-types, v0.3.0
filetype-color, v0.1.4
jshint, v1.3.7
language-spacebars, v0.2.2
linter-handlebars, v0.1.1
meteor-api, v2.19.0

# Dev
No dev packages