alibaba / alibaba/structure-view

Failed to activate the structure-view package

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
12
PR merge metrics
No merged PRs in 30d

Description

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.53.0 x64
**Electron**: 6.1.12
**OS**: Unknown Windows version
**Thrown From**: [structure-view](https://github.com/alibaba/structure-view) package 0.2.1

### Stack Trace

Failed to activate the structure-view package

```
At Cannot find module 'jquery'
Require stack:
- C:\Users\sofia\.atom\packages\structure-view-master\lib\main.js
- C:\Users\sofia\AppData\Local\atom\app-1.53.0\resources\app.asar\static\index.html

Error: Cannot find module 'jquery'
Require stack:
- C:\Users\sofia\.atom\packages\structure-view-master\lib\main.js
- C:\Users\sofia\AppData\Local\atom\app-1.53.0\resources\app.asar\static\index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Module._resolveFilename (~/AppData/Local/atom/app-1.53.0/resources/electron.asar/common/reset-search-paths.js:41:16)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:155481)
at Module.require (/app.asar/static/index.js:61:43)
at require (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:146814)
at /packages/structure-view-master/lib/main.js:2:43)
at /packages/structure-view-master/lib/main.js:77:2)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:147498)
at Object.value [as .js] (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:151046)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:16:16)
at customRequire (~/AppData/Local/atom/app-1.53.0/resources/app/static/:1:736531)
at Package.requireMainModule (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:3711337)
at Package.activateNow (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:3699321)
at ~/AppData/Local/atom/app-1.53.0/resources/app/static/:14:1879
at Function.simpleDispatch (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:1190051)
at Emitter.emit (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:1191492)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:349897)
at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:1230852)
at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:1226986)
at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/:11:284919)
```

### Commands

```
-0:54.8.0 application:reopen-project (div#add-projects-view.)
-0:45.6.0 application:open-folder (div.tool-panel.tree-view)
-0:13.6.0 structure-view:toggle (input.hidden-input)
```

### Non-Core Packages

```
structure-view 0.2.1
clang-format 2.0.8
hey-pane 1.2.0
highlight-selected 0.17.0
structure-view 0.2.1
structure-view 0.2.1
symbols-tree-view 0.14.0
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lib/main.js, where activation fails while requiring jquery, and reproduce the error with Atom 1.53.0 and structure-view 0.2.1. Confirm that the package activates successfully without the reported missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.