atom-lint icon indicating copy to clipboard operation
atom-lint copied to clipboard

Handle pre-saved (exists only on Atom) buffer

Open yujinakayama opened this issue 11 years ago • 2 comments

Some of the reported bugs might be caused by this.

yujinakayama avatar Jun 12 '14 06:06 yujinakayama

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

richrace avatar Aug 07 '14 11:08 richrace

+1

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

johnathanludwig avatar Feb 14 '15 06:02 johnathanludwig