Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Uncaught TypeError: Cannot read property 'current' of undefined

未关闭
#491 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

缺少复现步骤,因此首先在 Atom 1.57.0 和 ide-python 1.9.7 上,在 run:file 之后点击 gutter,复现报告中的 debugger:show 流程。读取 react-dom.production.min.js、ReactMountRootElement.js、pane-element.js 和 DebuggerLayoutManager.js 中的堆栈位置,尤其是列出的入口点。调试器视图能够在没有未捕获的 TypeError 的情况下打开,即表示完成。

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

描述

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.57.0 x64
Electron: 9.4.4
OS: Ubuntu 20.04.3
Thrown From: ide-python package 1.9.7

Stack Trace

Uncaught TypeError: Cannot read property 'current' of undefined

At /home/henadzi/.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-console/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 (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:1186190)
    at Emitter.emit (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:1187631)
    at Pane.setActiveItem (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:458810)
    at Pane.activateItem (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:461058)
    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 (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:352215)
    at CommandRegistry.dispatch (/snap/atom/282/usr/share/atom/resources/app/static/<embedded>:11:350690)
    at BreakpointDisplayController._handleGutterClick (/packages/atom-ide-debugger/dist/BreakpointDisplayController.js:316:25)
Commands
     -0:48 application:open-folder (div.tool-panel.tree-view)
  2x -0:29.8.0 run:file (input.hidden-input)
     -0:05.3.0 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-light-syntax.theme-one-light-ui)
Non-Core Packages
atom-django 0.3.2 
atom-i18n 0.26.1 
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-live-server 2.3.0 
atom-python-run 0.9.7 
atom-runner 2.7.1 
autocomplete-paths 2.17.0 
busy-signal 2.0.1 
code-peek 1.4.21 
css-spy 0.6.0 
data-atom 0.29.1 
dbg 1.6.3 
emmet 2.4.3 
git-plus 8.7.1 
henadzi undefined 
ide-python 1.9.7 
intentions 2.1.1 
linter 3.4.0 
linter-flake8 2.4.0 
linter-php 1.6.1 
linter-python-pep8 0.2.0 
linter-ui-default 3.4.1 
linter-ui-plus 0.3.2 
output-panel 0.3.4 
platformio-ide-terminal 2.10.1 
python-stero 0.2.0 
quick-query-sqlite 0.4.1 
script 3.32.2 
TabNine 4.0.7 
主要语言
JavaScript
星标
238
派生
41
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

atom-community/ide-python 的其他 Issue

查看 atom-community/ide-python 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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