atom-community / atom-community/ide-python

Uncaught TypeError: Cannot read property 'current' of undefined

未关闭
#285 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug duplicate
主要语言
JavaScript
星标
238
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

I get this error as soon as I do anything related to the debugger
To avoid confusions about the 2 different locations between my C: drive and E: drive. It is a symlink. So they are both in the same location basically

```TypeError: Cannot read property 'current' of undefined
at Pj (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:250:24)
at Tj (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:250:104)
at Lj (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:243:163)
at Jg (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:237:175)
at lk (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:285:27)
at E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:289:301
at Xj (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:244:244)
at tk (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:289:287)
at Object.exports.render (E:\000 - Configuration profile\Atom\.atom\packages\ide-python\node_modules\react-dom\cjs\react-dom.production.min.js:296:69)
at HTMLElement.connectedCallback (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\node_modules\@atom-ide-community\nuclide-commons-ui\ReactMountRootElement.js:64:23)
at HTMLElement.activeItemChanged (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app.asar\src\pane-element.js:152:22)
at Function.simpleDispatch (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:1190181)
at Emitter.emit (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:1191622)
at Pane.setActiveItem (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:456849)
at Pane.activateItem (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:459097)
at DebuggerLayoutManager._appendItemToDock (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\dist\ui\DebuggerLayoutManager.js:323:20)
at DebuggerLayoutManager._addPaneContainerToWorkspace (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\dist\ui\DebuggerLayoutManager.js:648:10)
at DebuggerLayoutManager.showDebuggerViews (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\dist\ui\DebuggerLayoutManager.js:593:44)
at HTMLElement.debugger:show (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\dist\main.js:412:24)
at CommandRegistry.handleCommandEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:350382)
at CommandRegistry.dispatch (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:348857)
at HTMLElement. (E:\000 - Configuration profile\Atom\.atom\packages\atom-ide-debugger\dist\main.js:427:21)
at CommandRegistry.handleCommandEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:350382)
at Object.didConfirmSelection (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:684525)
at SelectListView.confirmSelection (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:856521)
at HTMLDivElement.core:confirm (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:851400)
at CommandRegistry.handleCommandEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:350382)
at KeymapManager.dispatchCommandEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:1230982)
at KeymapManager.handleKeyboardEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:1227116)
at WindowEventHandler.handleDocumentKeyEvent (C:\Users\Wanty\AppData\Local\atom\app-1.54.0\resources\app\static\:11:284879)```

贡献指南

打开贡献指南

调研方向

使用 debugger:show 命令重现该故障,然后从 dist/ui/DebuggerLayoutManager.js 中的 DebuggerLayoutManager.showDebuggerViews 开始,经过 ReactMountRootElement.js 跟踪调用栈。检查调试器视图的激活路径,并验证打开与调试器相关的视图不再引发 TypeError。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。