abe33 / abe33/atom-color-highlight

Uncaught Error: This TextEditor has been destroyed

Đang mở
#63 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
CoffeeScript
Star
80
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Uncaught Error: This TextEditor has been destroyed

**Atom Version**: 0.162.0
**System**: Mac OS X 10.10.1
**Thrown From**: [atom-color-highlight](https://github.com/abe33/atom-color-highlight) package, v2.0.6
### Steps To Reproduce
1. Split panes with a file with unsaved changes
2. Close the left pane
### Stack Trace

```
At /Users/leahbannon/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:989

Error: This TextEditor has been destroyed
at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Users/leahbannon/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:989:15)
at DisplayBuffer.module.exports.DisplayBuffer.screenRangeForBufferRange (/Users/leahbannon/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:854:20)
at Marker.module.exports.Marker.getScreenRange (/Users/leahbannon/Applications/Atom.app/Contents/Resources/app/src/marker.js:173:33)
at Selection.module.exports.Selection.getScreenRange (/Users/leahbannon/Applications/Atom.app/Contents/Resources/app/src/selection.js:95:26)
at AtomColorHighlightView.module.exports.AtomColorHighlightView.updateSelections (/Users/leahbannon/.atom/packages/atom-color-highlight/lib/atom-color-highlight-view.coffee:89:27)
at AtomColorHighlightView.updateSelections (/Users/leahbannon/.atom/packages/atom-color-highlight/lib/atom-color-highlight-view.coffee:1:1)
at /Users/leahbannon/.atom/packages/atom-color-highlight/lib/atom-color-highlight-view.coffee:71:8

```

/cc @atom/core

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The error originates in atom-color-highlight-view.coffee at line 89 in updateSelections, where it tries to access a destroyed TextEditor. Start by examining the view's lifecycle and how it tracks editors across pane splits. Look for event listeners on pane removal and ensure selections are cleared when an editor is destroyed. Run the steps to reproduce in Atom with the package loaded to see the stack trace.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.