careteditor / issues

Caret issues
https://caret.io
327 stars 12 forks source link

Error Report #856

Closed sonokamome closed 5 years ago

sonokamome commented 5 years ago

The following error has occurred:

{
    "message": "Cannot read property 'length' of undefined",
    "version": "4.0.0-rc8",
    "os": "Windows 10",
    "path": "extensions\\Editor\\Editor\\Highlighter.js",
    "code": "r=this._editor.content.lines[this._editor.view.lines[o].index],l=this._editor.content.lines[this._editor.view.lines[o].index+1],d=h+r.length,a=!1",
    "line": 5,
    "column": 2336,
    "count": 2,
    "stack": [
        "at Highlighter._toRects (extensions\\Editor\\Editor\\Highlighter.js:5:2336)",
        "at Highlighter._highlight (extensions\\Editor\\Editor\\Highlighter.js:5:1390)",
        "at Highlighter.update (extensions\\Editor\\Editor\\Highlighter.js:5:1084)",
        "at EditorSpellcheck._moveRanges (extensions\\Editor\\Editor.Spellcheck\\Editor.Spellcheck.js:5:2524)",
        "at EditorDesktop.trigger (node_modules\\desktop\\Events.js:79:19)",
        "at s.forEach.t (extensions\\Editor\\Editor\\Editor.js:5:5413)",
        "at Array.forEach ((<anonymous>)",
        "at EditorDesktop._replaceText (extensions\\Editor\\Editor\\Editor.js:5:5397)",
        "at EditorDesktop.deleteText (extensions\\Editor\\Editor\\Editor.js:5:2509)",
        "at EditorInput.delete (extensions\\Editor\\Editor\\Editor.Input.js:5:2468)",
        "at EditorInput.<anonymous> (extensions\\Editor\\Editor\\Editor.Input.js:5:4243)",
        "at EditorSelection.each (extensions\\Editor\\Editor\\Editor.Selection.js:5:878)",
        "at EditorDesktop.getSelections (extensions\\Editor\\Editor\\Editor.js:5:2943)",
        "at EditorInput.backspace (extensions\\Editor\\Editor\\Editor.Input.js:5:4031)",
        "at ExtensionCommand.exec (node_modules\\desktop\\Extension.Command.js:83:17)",
        "at ExtensionCommand._onKeyDown (node_modules\\desktop\\Extension.Command.js:100:88)"
    ]
}
astoilkov commented 5 years ago

Hi,

This issue has been fixed in the latest version of Caret. In order to update you can go to the website https://caret.io and download the latest version.

Thanks for contacting us. I will close this issue.