atom-community / atom-community/ide-python

Failed to activate the ide-python package

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

描述

[Enter steps to reproduce:]

1. ...
2. ...

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

### Stack Trace

Failed to activate the ide-python package

```
At Class extends value undefined is not a constructor or null

TypeError: Class extends value undefined is not a constructor or null
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AdbDeviceSelector.js:41:39)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AdbDeviceSelector.js:128:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/DeviceAndPackage.js:18:26)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/DeviceAndPackage.js:113:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachUiComponent.js:30:25)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachUiComponent.js:519:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider.js:14:62)
at /packages/ide-python/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider.js:109:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/:11:149891)
```

### Commands

```
undefined -2:44 core:backspace (input.hidden-input)
2x -0:47.4.0 core:move-right (input.hidden-input)
2x -0:45.3.0 core:backspace (input.hidden-input)
-0:44.2.0 core:move-right (input.hidden-input)
-0:43.6.0 core:backspace (input.hidden-input)
3x -0:40.6.0 intentions:highlight (input.hidden-input)
-0:39.5.0 core:select-all (input.hidden-input)
7x -0:36.9.0 intentions:highlight (input.hidden-input)
-0:35.7.0 core:save (input.hidden-input)
```

### Non-Core Packages

```
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-datatip 0.25.0
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
autocomplete-python-jedi 1.10.3-0
busy-signal 2.0.1
ide-python 1.9.7
intentions 2.1.1
linter 3.4.0
linter-ui-default 3.4.1
script 3.32.2
```

贡献指南

打开贡献指南

调研方向

从 node_modules/@atom-ide-community/nuclide-debugger-common/AdbDeviceSelector.js:41 开始,跟踪通过 DeviceAndPackage.js 和 AutoGenLaunchAttachProvider.js 的激活过程。使用 Atom 1.58.0、ide-python 1.9.7 以及列出的 Windows 环境进行复现,然后确认 ide-python 激活时不会出现报告中的 TypeError。

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

评估

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

把新 issue 发到你的邮箱

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