yujinakayama / atom-lint

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

Handle pre-saved (exists only on Atom) buffer #69

Open yujinakayama opened 10 years ago

yujinakayama commented 10 years ago

Some of the reported bugs might be caused by this.

richrace commented 10 years ago

I get the following error when I do these steps:

  1. Open new file (do not save)
  2. Set language to Ruby
Uncaught TypeError: Cannot call method 'split' of undefined /Users/richard/.atom/packages/atom-lint/node_modules/minimatch/minimatch.js:845
match /Users/richard/.atom/packages/atom-lint/node_modules/minimatch/minimatch.js:845
minimatch /Users/richard/.atom/packages/atom-lint/node_modules/minimatch/minimatch.js:129
(anonymous function) linter-config.coffee:29
module.exports.LinterConfig.isFileToLint linter-config.coffee:28
module.exports.LintRunner.switchLinter lint-runner.coffee:46
(anonymous function) lint-runner.coffee:23
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133
module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132
module.exports.Editor.handleGrammarChange /Applications/Atom.app/Contents/Resources/app/src/editor.js:2046
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/editor.js:183
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133
module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:106
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133
module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132
module.exports.TokenizedBuffer.setGrammar /Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:124
module.exports.DisplayBuffer.setGrammar /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:893
module.exports.Editor.setGrammar /Applications/Atom.app/Contents/Resources/app/src/editor.js:2004
module.exports.GrammarListView.confirmed /Applications/Atom.app/Contents/Resources/app/node_modules/grammar-selector/lib/grammar-list-view.js:57
module.exports.SelectListView.confirmSelection /Applications/Atom.app/Contents/Resources/app/src/select-list-view.js:273
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/select-list-view.js:112
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
module.exports.KeymapManager.dispatchCommandEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:400
module.exports.KeymapManager.handleKeyboardEvent /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:181
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:90
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
johnathanludwig commented 9 years ago

+1

I get this error a lot, same steps as @richrace