atom-community / atom-community/ide-python

Failed to activate the ide-python package

未关闭
#462 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 10 Pro
**Thrown From**: [ide-python](https://github.com/lgeiger/ide-python) package 1.9.7

### Stack Trace

Failed to activate the ide-python package

```
At Cannot find module 'C:\Users\deakinj\.atom\packages\ide-python\node_modules\vscode-languageserver-protocol\lib\node\main.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module 'C:\Users\deakinj\.atom\packages\ide-python\node_modules\vscode-languageserver-protocol\lib\node\main.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:301:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:532:18)
at Module._resolveFilename (internal/modules/cjs/loader.js:784:27)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:157920)
at Module.require (/app.asar/static/index.js:61:43)
at require (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/languageclient.js:23:13)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/languageclient.js:552:3)
at Module.get_Module._compile (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (C:/ProgramData/deakinj/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 (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/convert.js:3:12)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/convert.js:209:3)
at Module.get_Module._compile (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (C:/ProgramData/deakinj/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 (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149207)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/auto-languageclient.js:17:22)
at /packages/ide-python/node_modules/atom-languageclient/build/lib/auto-languageclient.js:952:3)
at Module.get_Module._compile (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:149891)
at Object.value [as .js] (C:/ProgramData/deakinj/atom/app-1.58.0/resources/app/static/:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
```

### Commands

```
-2:20 core:save (input.hidden-input)
```

### Non-Core Packages

```
ide-python 1.9.7
```

贡献指南

打开贡献指南

调研方向

首先在 Windows 10 上的 Atom 1.58.0 x64 中复现 ide-python 1.9.7 的激活,然后检查 package.json 条目以及 vscode-languageserver-protocol/lib/node/main.js 的依赖路径。检查 stack trace 中指出的 atom-languageclient 文件。软件包能够在没有 missing-module 错误的情况下激活,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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