AtomLinter / linter-spell

Multilingual grammar-specific spell checking for Atom and linter using Ispell compatible interface such as GNU Aspell or Hunspell.
https://atom.io/packages/linter-spell
MIT License
14 stars 1 forks source link

TypeError: Cannot read property 'length' of undefined #40

Open greencopper opened 7 years ago

greencopper commented 7 years ago
TypeError: Cannot read property 'length' of undefined
    at TextBuffer.module.exports.TextBuffer.lineLengthForRow (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:494:29)
    at Spell.<anonymous> (/home/foo/.atom/packages/linter-spell/lib/spell.js:102:155)
    at undefined.next (native)
    at step (/home/foo/.atom/packages/linter-spell/lib/spell.js:13:273)
    at process._tickCallback (internal/process/next_tick.js:103:7)

This happens during ordinary text editing.

yitzchak commented 7 years ago

Are you still seeing this?

Arcanemagus commented 7 years ago

If this is still happening, it looks like it would be triggered here, which is only called in two places, both of which seem to be using the range sent to them from the consumer of the provideDictionary, so I'm not sure there is much you could do other than checking for invalid points coming in from that.