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 'activeView' of undefined #72

Closed samuela closed 10 years ago

samuela commented 10 years ago

I just got this interesting stacktrace. Unfortunately, I'm not exactly sure what caused it.

Uncaught TypeError: Cannot read property 'activeView' of undefined         /home/skainswo/Atom/resources/app/src/react-editor-view.js:65
module.exports.Object.defineProperty.get         /home/skainswo/Atom/resources/app/src/react-editor-view.js:65
module.exports.LintView.onLint lint-view.coffee:58
(anonymous function) lint-view.coffee:26
(anonymous function)         /home/skainswo/.atom/packages/atom-lint/node_modules/emissary/lib/emitter.js:133
module.exports.Emitter.emit         /home/skainswo/.atom/packages/atom-lint/node_modules/emissary/lib/emitter.js:132
(anonymous function) lint-runner.coffee:80
(anonymous function) xml-base.coffee:18
(anonymous function)         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:384
EventEmitter.emit events.js:101
(anonymous function)         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:348
emit         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/s…:615
emitNode         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/s…:620
closeTag         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/s…:861
write         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/node_modules/sax/lib/s…:1294
exports.Parser.Parser.parseString         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:403
(anonymous function)         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:6
exports.parseString         /home/skainswo/.atom/packages/atom-lint/node_modules/xml2js/lib/xml2js.js:433
(anonymous function)         xml-base.coffee:16
(anonymous function)         command-runner.coffee:99
EventEmitter.emit         events.js:104
maybeClose         child_process.js:821
(anonymous function)         child_process.js:1038
EventEmitter.emit         events.js:101
(anonymous function)       net.js:459
yujinakayama commented 10 years ago

This seems to be caused by React editor (currently not supported in atom-lint). I'm working on it.

yujinakayama commented 10 years ago

It seems that this issue is now fixed by a compatilibity improvement in Atom 0.116.0. See https://github.com/atom/atom/issues/2853 also.

If you still get the error, please reopen this.