jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
565 stars 50 forks source link

Uncaught TypeError: Cannot read property 'start' of undefined #286

Open pedro-w opened 6 years ago

pedro-w commented 6 years ago

Steps to reproduce

  1. Start proto-repl with the ink console disabled
  2. Position the cursor in the read-only area above the '----' separator
  3. Type any key that inserts a character

This is reproducible always for me.

Atom: 1.23.1 x64 Electron: 1.6.15 OS: Microsoft Windows 10 Pro Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At C:\Users\P\AppData\Local\atom\app-1.23.1\resources\app\node_modules\text-buffer\lib\text-buffer.js:948

TypeError: Cannot read property 'start' of undefined
    at Selection.insertText (~/AppData/Local/atom/app-1.23.1/resources/app/src/selection.js:474:70)
    at mutateSelectedText.selection (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1324:37)
    at getSelectionsOrderedByBufferPosition.map (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1359:92)
    at Array.map (native)
    at transact (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1359:66)
    at TextBuffer.module.exports.TextBuffer.transact (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/text-buffer/lib/text-buffer.js:941:24)
    at TextEditor.transact (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1811:30)
    at mergeIntersectingSelections (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1358:25)
    at TextEditor.mergeSelections (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:3194:26)
    at TextEditor.mergeIntersectingSelections (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:3165:42)
    at TextEditor.mutateSelectedText (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1357:23)
    at TextEditor.insertText (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor.js:1323:23)
    at TextEditor.object.(anonymous function) [as insertText] (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/underscore-plus/lib/underscore-plus.js:77:33)
    at TextEditorComponent.didTextInput (~/AppData/Local/atom/app-1.23.1/resources/app/src/text-editor-component.js:1647:30)

Commands

     -0:30.3.0 core:move-right (input.hidden-input)
     -0:29.9.0 proto-repl:execute-text-entered-in-repl (input.hidden-input)

Non-Core Packages

ink 0.7.11 
language-lua 0.9.11 
language-svg 0.9.2 
proto-repl 1.4.22 
svg-preview 0.12.1