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 Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Uncaught TypeError: Cannot read property 'selectLine' of undefined #5311
Atom Version: 0.176.0 System: Mac OS X 10.10.2 Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'selectLine' of undefined
At /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:767
TypeError: Cannot read property 'selectLine' of undefined
at [object Object].module.exports.React.createClass.onMouseDown (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:767:36)
at HTMLDivElement.boundMethod (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21)
which means that @editor.getLastSelection() returned undefined. I think I remember seeing another PR from you where you guarded against the situation where packages would somehow destroy all selections. Could that have happened here as well and would it make sense to guard against that here as well? 💭
This shouldn't be happening anymore, because getLastSelection auto-instantiates a new selection in the event one is missing. Have we had reports on recent versions?
No recent reports in the issue tracker. And I also just checked bugsnag and noticed one exception in the last 2 weeks, but that was thrown from someone still on version 0.184.0. 😄
I'm going to close this -- thanks for taking a look, @nathansobo 🍊
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!
Activity
fank commentedon Jan 30, 2015
Can you please add "steps to reproduce"?
mr4torr commentedon Feb 2, 2015
If happen again post here because I do not remember how it happened.
izuzak commentedon Sep 9, 2015
@nathansobo Gonna pull you into this old issue as well. As far as I can tell, this exception happened here:
which means that
@editor.getLastSelection()returnedundefined. I think I remember seeing another PR from you where you guarded against the situation where packages would somehow destroy all selections. Could that have happened here as well and would it make sense to guard against that here as well? 💭nathansobo commentedon Sep 9, 2015
This shouldn't be happening anymore, because
getLastSelectionauto-instantiates a new selection in the event one is missing. Have we had reports on recent versions?izuzak commentedon Sep 9, 2015
No recent reports in the issue tracker. And I also just checked bugsnag and noticed one exception in the last 2 weeks, but that was thrown from someone still on version 0.184.0. 😄
I'm going to close this -- thanks for taking a look, @nathansobo 🍊
lock commentedon Jan 20, 2019
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!