atom-community / atom-community/ide-python

Uncaught TypeError: Cannot read property 'current' of undefined

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

Mô tả

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.58.0 x64
**Electron**: 9.4.4
**OS**: Microsoft Windows 10 Home
**Thrown From**: [ide-python](https://github.com/lgeiger/ide-python) package 1.9.7

### Stack Trace

Uncaught TypeError: Cannot read property 'current' of undefined

```
At C:\Users\adghr\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:250

TypeError: Cannot read property 'current' of undefined
at Pj (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:250:24)
at Tj (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:250:104)
at Lj (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:243:163)
at Jg (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:237:175)
at lk (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:285:27)
at /packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:289:301
at Xj (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:244:244)
at tk (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:289:287)
at Object.exports.render (/packages/ide-python/node_modules/react-dom/cjs/react-dom.production.min.js:296:69)
at HTMLElement.connectedCallback (/packages/atom-ide-debugger/node_modules/@atom-ide-community/nuclide-commons-ui/ReactMountRootElement.js:64:23)
at HTMLElement.activeItemChanged (/app.asar/src/pane-element.js:152:22)
at Function.simpleDispatch (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:1186925)
at Emitter.emit (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:1188366)
at Pane.setActiveItem (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:458925)
at Pane.activateItem (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:461173)
at DebuggerLayoutManager._appendItemToDock (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:323:20)
at DebuggerLayoutManager._addPaneContainerToWorkspace (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:648:10)
at DebuggerLayoutManager.showDebuggerViews (/packages/atom-ide-debugger/dist/ui/DebuggerLayoutManager.js:593:44)
at /packages/atom-ide-debugger/dist/main.js:412:24)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:352326)
at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:350801)
at BreakpointDisplayController._handleGutterClick (/packages/atom-ide-debugger/dist/BreakpointDisplayController.js:316:25)
```

### Commands

```
-1:55.1.0 core:paste (input.hidden-input)
8x -1:20.2.0 core:backspace (input.hidden-input)
-0:18.8.0 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
```

### Non-Core Packages

```
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-console 0.0.2
atom-ide-datatip 0.25.0
atom-ide-debugger 0.0.3
atom-ide-definitions 0.4.2
atom-ide-hyperclick 1.0.11
atom-ide-markdown-service 2.1.0
atom-ide-outline 3.2.0
atom-ide-signature-help 0.16.0
atom-material-ui 2.1.3
atom-python-run 0.9.7
busy-signal 2.0.1
Hydrogen 2.16.3
ide-python 1.9.7
intentions 2.1.1
linter 3.4.0
linter-ui-default 3.4.1
python-tools 0.6.9
script 3.32.2
zentabs 0.8.9
```

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi với lệnh debugger:show đã được báo cáo sau khi nhấp vào gutter, sau đó lần theo stack qua DebuggerLayoutManager._appendItemToDock và ReactMountRootElement.js:64. So sánh các phiên bản đã cài đặt của ide-python, atom-ide-debugger và React; hoàn tất khi chế độ xem debugger mở mà không gặp TypeError chưa được bắt trong môi trường đã báo cáo.

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

Đánh giá

Công nghệ
javascript, react
Lĩnh vực
devtools, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
15/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.