Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot destructure property lineText of 'undefined' or 'null'. #701

Open
martinszy opened this issue May 18, 2020 · 0 comments
Labels

Comments

@martinszy
Copy link

I was scrolling through the file, collapsing code. It was a javascript file. I don't really know how to reproduce it.

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Ubuntu 20.04
Thrown From: minimap package 4.29.9

Stack Trace

Uncaught TypeError: Cannot destructure property lineText of 'undefined' or 'null'.

At /usr/share/atom/resources/app/static/<embedded>:11

TypeError: Cannot destructure property `lineText` of 'undefined' or 'null'.
    at TextEditor.tokensForScreenRow (/usr/share/atom/resources/app/static/<embedded>:11:13619)
    at HTMLElement.eachTokenForScreenRows (/packages/minimap/lib/mixins/canvas-drawer.js:419:14)
    at HTMLElement.drawLines (/packages/minimap/lib/mixins/canvas-drawer.js:453:10)
    at HTMLElement.drawLinesForRanges (/packages/minimap/lib/mixins/canvas-drawer.js:308:14)
    at HTMLElement.redrawRangesOnLayer (/packages/minimap/lib/mixins/canvas-drawer.js:281:12)
    at HTMLElement.updateTokensLayer (/packages/minimap/lib/mixins/canvas-drawer.js:136:10)
    at HTMLElement.updateCanvas (/packages/minimap/lib/mixins/canvas-drawer.js:104:10)
    at HTMLElement.update (/packages/minimap/lib/minimap-element.js:887:10)
    at requestAnimationFrame (/packages/minimap/lib/minimap-element.js:780:12)

Commands

 13x -7:58.1.0 core:move-left (input.hidden-input)
     -7:56.8.0 core:move-right (input.hidden-input)
     -7:56.2.0 intentions:highlight (input.hidden-input)
     -7:56.2.0 core:save (input.hidden-input)
  2x -7:36.5.0 core:delete (input.hidden-input)
     -7:36.1.0 intentions:highlight (input.hidden-input)
     -7:36 core:save (input.hidden-input)
     -7:18.7.0 intentions:highlight (input.hidden-input)
     -7:18.7.0 core:save (input.hidden-input)
 13x -6:25.8.0 core:move-right (input.hidden-input)
     -6:22.9.0 intentions:highlight (input.hidden-input)
     -6:22.8.0 core:save (input.hidden-input)
     -2:16.7.0 intentions:highlight (input.hidden-input)
     -2:16 editor:toggle-line-comments (input.hidden-input)
     -2:15.5.0 intentions:highlight (input.hidden-input)
     -2:15.4.0 core:save (input.hidden-input)

Non-Core Packages

api-workbench 0.8.48 
atom-hydra 0.2.14 
busy-signal 2.0.1 
highlight-selected 0.17.0 
intentions 1.1.5 
language-pug 0.0.22 
language-rust 0.4.12 
linter 2.3.1 
linter-ui-default 1.8.1 
minimap 4.29.9 
minimap-highlight-selected 4.6.1 
nim 0.4.1 
pretty-json 2.1.2 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants