question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'id' of undefined

See original GitHub issue
  1. Scroll or click in editor while using SplitDiff

Atom: 1.19.1 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property ‘id’ of undefined

At /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:2201

TypeError: Cannot read property 'id' of undefined
    at horizontalPositionsToMeasure.forEach (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:2201:73)
    at Map.forEach (native)
    at TextEditorComponent.measureHorizontalPositions (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:2197:45)
    at TextEditorComponent.measureContentDuringUpdateSync (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:384:16)
    at TextEditorComponent.updateSync (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:276:18)
    at TextEditorComponent.didMouseWheel (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:1516:43)

Commands

     -8:44.4.0 split-diff:toggle (input.hidden-input)
     -8:22.5.0 split-diff:ignore-whitespace (input.hidden-input)
  2x -8:12.1.0 core:copy (input.hidden-input)
     -7:01.8.0 split-diff:prev-diff (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-material-syntax-dark.theme-atom-material-ui)
     -7:00.2.0 split-diff:next-diff (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-material-syntax-dark.theme-atom-material-ui)
     -6:58.4.0 split-diff:prev-diff (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-material-syntax-dark.theme-atom-material-ui)

Non-Core Packages

atom-html-preview 0.1.22 
atom-material-syntax-dark 1.0.0 
atom-material-ui 2.0.4 
atom-text-transformer 0.7.0 
autocomplete-swift 1.0.3 
drag-drop-text 0.1.4 
hex-editor 0.1.1 
highlight-selected 0.13.1 
language-applescript 0.3.0 
language-log 1.8.0 
language-markdown 0.25.1 
language-scala 1.1.9 
language-swift 0.5.0 
markdown-preview-plus 2.4.10 
markdown-writer 2.6.5 
minimap 4.29.6 
minimap-highlight-selected 4.6.1 
sort-lines 0.14.0 
split-diff 1.4.3 
Sublime-Style-Column-Selection 1.7.4 
transform 0.4.0 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mupchrchcommented, Aug 17, 2017

Ok this is a weird one. I found a specific way to reproduce it like 50% of the time. Documenting it here so I won’t forget.

  1. In the split-diff git repo, have “split-diff.coffee” file open and visible.
  2. Also have “README.md” open in another tab but not visible.
  3. Right click “README.md” tab and choose “Diff with Active File”.
  4. Half of the time you will see the reported error.
0reactions
mupchrchcommented, Mar 14, 2018

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'id') - TrackJS
TypeError is a subset of JavaScript Error that is thrown when code attempts to do something that does not exist on the target...
Read more >
"Cannot read property 'id' of undefined" when parsing an array ...
First, as said in the comments, you need to make sure the message object passed is really the one you're looking for.
Read more >
Uncaught TypeError: Cannot read property 'id' of undefined
When the app try to init the component you will get Fatal error that says “Uncaught TypeError: Cannot read property 'id' of undefined”...
Read more >
TypeError: Cannot read property 'id' of undefined - JavaScript
I am trying to work around the problem but it seem strange as I am not proficient with JS Objects. Following is my...
Read more >
ERROR Cannot read property 'id' of undefined #190 - GitHub
Hi. I retrieve this error: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'id' of undefined when i add the module ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found