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.

Shift + Backspace renders deleted characters #2159

Closed

Description

@Duncan-Adams

OS : Arch Linux

When I hit shift + backspace it renders characters previously deleted in the reverse order they were deleted (it seems to miss the character first deleted).
Example:
If i type "foobar" then delete it with backspace, then I hit shift + backspace 6 times, there will be the text "aboof_". (_ is a random character)

Activity

  1. GeoffreyFrogeye commented on May 11, 2014

    @GeoffreyFrogeye
    Contributor

    Doesn't seem to happen on Xubuntu 14.04 64 bits, with 5b0d974.
    shift-backspace is set to native! in base.cson, so do you know if your Arch configuration do something special when using Shift + Backspace in other applications?

  2. trapped commented on May 12, 2014

    @trapped

    I have the same issue, and I'm using Arch Linux as well (3.14.2-1-ARCH, x86_64).
    Also, after restoring the whole text (inverted of course), if there isn't any more text to restore, it opens the DevTools and doesn't let me close them. It then prints errors in the console whenever clicking on the text buffer.
    WebM recording: https://www.pellero.it/atom.webm

  3. kevinsawicki commented on May 16, 2014

    @kevinsawicki
    Contributor

    @trapped Can you expand the errors that appear in the dev tools and copy and paste them here? Thanks

  4. trapped commented on May 16, 2014

    @trapped

    First one:

    Uncaught TypeError: Cannot read property 'textContent' of null /usr/local/share/atom/resources/app/node_modules/react/lib/ReactMountReady.js:69
    mixInto.notifyAll /usr/local/share/atom/resources/app/node_modules/react/lib/ReactMountReady.js:69
    ON_DOM_READY_QUEUEING.close /usr/local/share/atom/resources/app/node_modules/react/lib/ReactReconcileTransaction.js:87
    Mixin.closeAll /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:242
    Mixin.perform /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:175
    ReactComponent.Mixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactComponent.js:478
    ReactCompositeComponentMixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1157
    runBatchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:66
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:86
    Mixin.closeAll /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:242
    Mixin.perform /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:175
    ReactDefaultBatchingStrategy.batchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactDefaultBatchingStrategy.js:70
    batchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:35
    ReactEventEmitterMixin.handleTopLevel /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventEmitterMixin.js:53
    handleTopLevelImpl /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventTopLevelCallback.js:81
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventTopLevelCallback.js:140
    

    Second one (that occurs every time I try to do something):

    Uncaught TypeError: Cannot read property 'textContent' of null /usr/local/share/atom/resources/app/src/lines-component.js:141
    module.exports.React.createClass.measureCharactersInLine /usr/local/share/atom/resources/app/src/lines-component.js:141
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    module.exports.React.createClass.measureCharactersInNewLines /usr/local/share/atom/resources/app/src/lines-component.js:109
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    module.exports.React.createClass.componentDidUpdate /usr/local/share/atom/resources/app/src/lines-component.js:85
    mixInto.notifyAll /usr/local/share/atom/resources/app/node_modules/react/lib/ReactMountReady.js:69
    ON_DOM_READY_QUEUEING.close /usr/local/share/atom/resources/app/node_modules/react/lib/ReactReconcileTransaction.js:87
    Mixin.closeAll /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:242
    Mixin.perform /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:175
    ReactComponent.Mixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactComponent.js:478
    ReactCompositeComponentMixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1157
    enqueueUpdate /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:107
    ReactCompositeComponentMixin.forceUpdate /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1379
    module.exports.React.createClass.requestUpdate /usr/local/share/atom/resources/app/src/editor-component.js:833
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/emissary/lib/emitter.js:133
    module.exports.Emitter.emit /usr/local/share/atom/resources/app/node_modules/emissary/lib/emitter.js:132
    module.exports.Signal.emitValue /usr/local/share/atom/resources/app/node_modules/emissary/lib/signal.js:82
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/emissary/lib/behavior.js:81
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/emissary/lib/emitter.js:133
    module.exports.Emitter.emit /usr/local/share/atom/resources/app/node_modules/emissary/lib/emitter.js:132
    module.exports.Behavior.emit /usr/local/share/atom/resources/app/node_modules/emissary/lib/behavior.js:44
    module.exports.Signal.emitValue /usr/local/share/atom/resources/app/node_modules/emissary/lib/signal.js:82
    module.exports.Model.set /usr/local/share/atom/resources/app/node_modules/theorist/lib/model.js:166
    accessor.set /usr/local/share/atom/resources/app/node_modules/theorist/lib/model.js:57
    module.exports.DisplayBuffer.setHeight /usr/local/share/atom/resources/app/src/display-buffer.js:254
    module.exports.Editor.setHeight /usr/local/share/atom/resources/app/src/editor.js:1961
    module.exports.React.createClass.measureHeightAndWidth /usr/local/share/atom/resources/app/src/editor-scroll-view-component.js:238
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    (anonymous function) /usr/local/share/atom/resources/app/src/editor-scroll-view-component.js:114
    

    Third one (as above):

    Uncaught TypeError: Cannot read property 'textContent' of null /usr/local/share/atom/resources/app/src/lines-component.js:141
    module.exports.React.createClass.measureCharactersInLine /usr/local/share/atom/resources/app/src/lines-component.js:141
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    module.exports.React.createClass.measureCharactersInNewLines /usr/local/share/atom/resources/app/src/lines-component.js:109
    boundMethod /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1434
    module.exports.React.createClass.componentDidUpdate /usr/local/share/atom/resources/app/src/lines-component.js:85
    mixInto.notifyAll /usr/local/share/atom/resources/app/node_modules/react/lib/ReactMountReady.js:69
    ON_DOM_READY_QUEUEING.close /usr/local/share/atom/resources/app/node_modules/react/lib/ReactReconcileTransaction.js:87
    Mixin.closeAll /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:242
    Mixin.perform /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:175
    ReactComponent.Mixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactComponent.js:478
    ReactCompositeComponentMixin.performUpdateIfNecessary /usr/local/share/atom/resources/app/node_modules/react/lib/ReactCompositeComponent.js:1157
    runBatchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:66
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:86
    Mixin.closeAll /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:242
    Mixin.perform /usr/local/share/atom/resources/app/node_modules/react/lib/Transaction.js:175
    ReactDefaultBatchingStrategy.batchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactDefaultBatchingStrategy.js:70
    batchedUpdates /usr/local/share/atom/resources/app/node_modules/react/lib/ReactUpdates.js:35
    ReactEventEmitterMixin.handleTopLevel /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventEmitterMixin.js:53
    handleTopLevelImpl /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventTopLevelCallback.js:81
    (anonymous function) /usr/local/share/atom/resources/app/node_modules/react/lib/ReactEventTopLevelCallback.js:140
    
  5. kevinsawicki commented on May 19, 2014

    @kevinsawicki
    Contributor

    @trapped Does this only happen when you use the react editor?

  6. trapped commented on May 19, 2014

    @trapped

    @kevinsawicki Yes, only with the React editor. Also, speaking of things that happen only with the React editor, when pasting it will prepend the last character of the copied buffer to the buffer: pasting "hello" will result in "ohello".

  7. kevinsawicki commented on May 19, 2014

    @kevinsawicki
    Contributor

    @trapped thanks for letting me know, I've updated the labels on this issue to reflect that

  8. kevinsawicki commented on May 22, 2014

    @kevinsawicki
    Contributor

    @trapped 0.97.0 was just deployed, can you try again using that version?

  9. trapped commented on May 22, 2014

    @trapped

    I'm on 16df6a3, and the issue seems to persist - however it's got slightly better:

    • after printing (stack-like order) the last written characters, it no longer opens the developers console to scream;
    • it restores the text only once: after restoring it the first time (after reaching the start of the buffer it can restore) the issue disappears until the whole file is emptied.

    Also, still speaking of the React editor: atom/grammar-selector#7 only occurs when using it.

  10. kevinsawicki commented on May 22, 2014

    @kevinsawicki
    Contributor

    Thanks for letting me know

  11. probablycorey commented on Jun 2, 2014

    @probablycorey

    @trapped @Hidodey – we added the shift-backspace command in #2474. If you pull the latest version does this bug still happen?

  12. trapped commented on Jun 2, 2014

    @trapped

    @probablycorey No, it seems fixed.

  13. lock commented on Jan 26, 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!

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

    Labels

    linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions