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 'length' of undefined #18783

Closed

Description

@chiraggada2911

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Unknown Windows version
Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At C:\Users\Hp Folio\AppData\Local\atom\app-1.34.0\resources\app\static\<embedded>:14

TypeError: Cannot read property 'length' of undefined
    at ScreenLineBuilder.emitText (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:14:1103242)
    at ScreenLineBuilder.buildScreenLines (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:14:1098948)
    at DisplayLayer.getScreenLines (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:14:89306)
    at TextEditorComponent.queryScreenLinesToRender (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:79324)
    at TextEditorComponent.updateSyncBeforeMeasuringContent (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:69977)
    at TextEditorComponent.updateSync (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:67605)
    at TextEditorComponent.didMouseWheel (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:92354)

Commands

Non-Core Packages

atom-beautify 0.33.4 
atom-formatter-jsbeautify 1.1.2 
git-plus 8.4.2 
terminal-tab 0.5.7 

Activity

  1. artuc commented on Feb 4, 2019

    @artuc
  2. nateGeorge commented on Feb 4, 2019

    @nateGeorge

    [Enter steps to reproduce:]

    1. Navigate to a directory with a project.
    2. Open atom in a directory where you were working from previously and had .py files open (atom . from the directory in the terminal).
    3. The issue seems to be cleared when all open files are closed in atom, and it is restarted.

    Atom: 1.34.0 x64
    Electron: 2.0.16
    OS: Ubuntu 18.04.1
    Thrown From: Atom Core

    Stack Trace

    Uncaught TypeError: Cannot read property 'length' of undefined

    At /usr/share/atom/resources/app/static/<embedded>:14
    
    TypeError: Cannot read property 'length' of undefined
        at ScreenLineBuilder.emitText (/usr/share/atom/resources/app/static/<embedded>:14:1108419)
        at ScreenLineBuilder.buildScreenLines (/usr/share/atom/resources/app/static/<embedded>:14:1104125)
        at DisplayLayer.getScreenLines (/usr/share/atom/resources/app/static/<embedded>:14:89306)
        at TextEditorComponent.queryScreenLinesToRender (/usr/share/atom/resources/app/static/<embedded>:11:79324)
        at TextEditorComponent.updateSyncBeforeMeasuringContent (/usr/share/atom/resources/app/static/<embedded>:11:69977)
        at TextEditorComponent.updateSync (/usr/share/atom/resources/app/static/<embedded>:11:67605)
        at TextEditorComponent.didShow (/usr/share/atom/resources/app/static/<embedded>:11:91235)
        at TextEditorComponent.didFocus (/usr/share/atom/resources/app/static/<embedded>:11:91426)
        at HTMLElement.addEventListener (/app.asar/src/text-editor-element.js:36:67)
        at HTMLElement.activeItemChanged (/app.asar/src/pane-element.js:164:16)
        at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1190133)
        at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1191574)
        at Pane.setActiveItem (/usr/share/atom/resources/app/static/<embedded>:11:455431)
        at Pane.activateItem (/usr/share/atom/resources/app/static/<embedded>:11:457679)
        at TabBarView.t.exports.TabBarView.onClick (/usr/share/atom/resources/app/static/<embedded>:11:1140638)
    

    Commands

    Non-Core Packages

    
    
  3. rsese commented on Feb 5, 2019

    @rsese
    Contributor

    Thanks for the report @chiraggada2911!

    We noticed that this looks like a duplicate of #18739 so you can subscribe there for updates if you'd like. If you have steps to reproduce, please let us know in #18739.

    @nateGeorge I'm unable to reproduce with steps you mentioned, I'm assuming that you can no longer reproduce after you've closed all files for that particular project you were working on?


    Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

    For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.

  4. nateGeorge commented on Feb 6, 2019

    @nateGeorge

    @rsese
    Yes, it seemed to be something weird with that one project or my computer state at the time. Doesn't seem to be happening any more.

  5. lock commented on Aug 12, 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!

  6. locked as resolved and limited conversation to collaborators on Aug 12, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions