You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When restoring window state Atom threw the following error.
Uncaught TypeError: Cannot read property 'length' of undefined
At C:\temp\atom\out\Atom x64\resources\app\node_modules\text-buffer\lib\display-layer.js:982
TypeError: Cannot read property 'length' of undefined
at DisplayLayer.updateSpatialIndex (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:982:46)
at DisplayLayer.populateSpatialIndexIfNeeded (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:1069:18)
at DisplayLayer.doBackgroundWork (C:/temp/atom/out/Atom x64/resources/app/node_modules/text-buffer/lib/display-layer.js:141:16)
at TextEditor.doBackgroundWork (C:/temp/atom/out/Atom x64/resources/app/src/text-editor.js:313:33)
Steps to Reproduce
Start Atom in safe mode restoring a specific state
Expected behavior:
No error to be thrown.
Actual behavior:
Atom throws an error on launch.
Reproduces how often:
100% of the time... until I tried to dig further and find reproduction steps by starting in --dev, now 0% of the time.
Versions
Atom: 1.28.0-dev-b72501aaa x64 Electron: 1.7.11 OS: Microsoft Windows 10 Enterprise text-buffer: 13.14.1