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

Uncaught Error: Can't undo with an open transaction #4817

Closed

Description

@DavidSouther

Uncaught Error: Can't undo with an open transaction

Atom Version: 0.161.0
System: Mac OS X 10.10.1
Thrown From: Atom Core

Steps To Reproduce

  1. Type
  2. Press Cmd+Z

Stack Trace

At /Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:73

Error: Can't undo with an open transaction
  at History.module.exports.History.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:73:15)
  at TextBuffer.module.exports.TextBuffer.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:675:27)
  at TextEditor.module.exports.TextEditor.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1137:26)
  at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:19)
  at atom-text-editor.newCommandListeners.(anonymous function) (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:272:32)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)

Activity

  1. maxbrunsfeld commented on Dec 31, 2014

    @maxbrunsfeld
    Contributor

    Hi @DavidSouther, can you try upgrading to the latest Atom to see if this still occurs? Also, does it happen if you run atom --safe? Thanks!

  2. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author

    Oh my... running Window: Update Available from the command pallet got me

    /Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/release-notes/lib/main.js:34
    Hide Stack Trace
    TypeError: Cannot read property '0' of null
      at atom-workspace.<anonymous> (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/release-notes/lib/main.js:34:46)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
      at /Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
      at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
      at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete/node_modules/atom-space-pen-views/lib/select-list-view.js:335:21)
      at space-pen-div.atom.commands.add.core:confirm (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
      at /Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)
    

    Is there a good way to update from the CLI?

  3. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author

    Ah, Application: Install Update worked. On 0.165.0 now. Will see how the undo actions work.

  4. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author

    Negative - when pasting a block of text (the above stack trace) into an empty file, pressing Cmd+Z, gets

    Error: Can't undo with an open transaction
      at History.module.exports.History.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:73:15)
      at TextBuffer.module.exports.TextBuffer.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:675:27)
      at TextEditor.module.exports.TextEditor.undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1137:26)
      at TextEditor.atom.commands.add.stopEventPropagation.core:undo (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:19)
      at atom-text-editor.newCommandListeners.(anonymous function) (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:272:32)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
      at /Users/southerd/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/southerd/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/southerd/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)
    
  5. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author

    Running 0.165.0 with --safe seems to have expected history behavior.

  6. maxbrunsfeld commented on Dec 31, 2014

    @maxbrunsfeld
    Contributor

    Can you list your installed packages (apm list)?

  7. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author
    % apm list
    Built-in Atom packages (79)
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]
    
    /Users/southerd/.atom/packages (8)
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]
    
  8. maxbrunsfeld commented on Dec 31, 2014

    @maxbrunsfeld
    Contributor

    Try upgrading vim-mode. There have been a lot of changes to that package since 0.11.1.

  9. DavidSouther commented on Dec 31, 2014

    @DavidSouther
    Author

    Tentatively, that looks like the issue. Thanks so much for your help, @maxbrunsfeld

  10. lock commented on Jan 24, 2019

    @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!

  11. locked as resolved and limited conversation to collaborators on Jan 24, 2019
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