Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught TypeError: Cannot read property 'split' of undefined #6831

Closed

Description

@adi-altiscale

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.199.0
System: Mac OS X 10.10
Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property 'split' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/history.js:128

TypeError: Cannot read property 'split' of undefined
    at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:435:28)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:729:31
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:771:29
    at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/history.js:119:18)
    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:647:27)
    at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1132:26)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:765:24
    at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1950:43)
    at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1924:35)
    at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:763:19)

Commands

     -0:57.4.0 time:insert (atom-text-editor.editor.is-focused)
  2x -0:51.6.0 core:undo (atom-text-editor.editor.is-focused)
     -0:49.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:40.5.0 core:move-to-bottom (atom-text-editor.editor.is-focused)
     -0:39.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:35.5.0 time:insert (atom-text-editor.editor.is-focused)
  2x -0:05.5.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -0:04.7.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:00.5.0 time:insert (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "one-dark-syntax"
    ],
    "projectHome": "/Users/adi/Workspace"
  },
  "editor": {
    "invisibles": {},
    "fontSize": 32,
    "softWrap": true
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.2.3
saveallthetime, v0.1.1
time, v1.0.0
time-status, v1.1.0
wakatime, v4.0.9

# Dev
No dev packages

Activity

  1. winstliu commented on May 18, 2015

    @winstliu
    Contributor

    Hi @adi-altiscale, what were you doing when this error occured? If you know how to reproduce it, could you please try in safe mode (atom --safe)? Thanks!

  2. Zireael07 commented on May 19, 2015

    @Zireael07

    I got what looks like the same error after I used find and replace via Search in Directory, and then tried to Search in Directory in another directory immediately afterwards.

  3. pedzed commented on Nov 29, 2016

    @pedzed

    I can confirm this issue, but I think it is rare. I am not sure how to reproduce.

  4. Ben3eeE commented on Nov 29, 2016

    @Ben3eeE
    Contributor

    @pedzed It would be great if you could include all the information from the exception when confirming, thanks.

  5. winstliu commented on Dec 15, 2016

    @winstliu
    Contributor

    Thank you for your issue!

    We haven't gotten a response to our questions in our comment #6831 (comment). With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.

  6. RachelScodes commented on Dec 29, 2016

    @RachelScodes

    I got this same issue when trying to insert a comment via keyboard shortcut (command - '/') on a .slim file. I also have wakatime, and the onedark themes installed. no other overlaps.

  7. Ben3eeE commented on Dec 29, 2016

    @Ben3eeE
    Contributor

    @RachelScodes The issue you are having should be fixed in Atom 1.13 currently in beta.

  8. sllewellyn13 commented on Dec 18, 2017

    @sllewellyn13

    Still broken, I am getting the error with the sample usage code provided.

  9. lock commented on Jun 16, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  10. locked as resolved and limited conversation to collaborators on Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions