atom-community / atom-community/atom-script

Failed to activate the script package

Open
#2,665 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.57.0 x64
**Electron**: 9.4.4
**OS**: Ubuntu 20.04.4
**Thrown From**: [script](https://github.com/atom-ide-community/atom-script) package 3.32.2

### Stack Trace

Failed to activate the script package

```
At Cannot find module '/home/carolitah/.atom/packages/script/node_modules/uuid/dist/index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module '/home/carolitah/.atom/packages/script/node_modules/uuid/dist/index.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 (/snap/atom/282/usr/share/atom/resources/app/static/:11:157820)
at Module.require (/app.asar/static/index.js:61:43)
at require (/snap/atom/282/usr/share/atom/resources/app/static/:11:149153)
at /packages/script/lib/grammar-utils/matlab.js:6:24)
at /packages/script/lib/grammar-utils/matlab.js:36:34)
at Module.get_Module._compile (/snap/atom/282/usr/share/atom/resources/app/static/:11:149837)
at Object.value [as .js] (/snap/atom/282/usr/share/atom/resources/app/static/:11:153385)
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 (/snap/atom/282/usr/share/atom/resources/app/static/:11:149153)
at /packages/script/lib/grammar-utils.js:96:11)
at /packages/script/lib/grammar-utils.js:128:28)
at Module.get_Module._compile (/snap/atom/282/usr/share/atom/resources/app/static/:11:149837)
at Object.value [as .js] (/snap/atom/282/usr/share/atom/resources/app/static/:11:153385)
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 (/snap/atom/282/usr/share/atom/resources/app/static/:11:149153)
at /packages/script/lib/grammars/index.js:12:24)
at /packages/script/lib/grammars/index.js:614:29)
at Module.get_Module._compile (/snap/atom/282/usr/share/atom/resources/app/static/:11:149837)
at Object.value [as .js] (/snap/atom/282/usr/share/atom/resources/app/static/:11:153385)
at Module.load (internal/modules/cjs/loader.js:815:32)
```

### Commands

```
2x -3:41.8.0 core:move-down (div.package-detail)
2x -3:37.1.0 core:move-up (div.package-detail)
```

### Non-Core Packages

```
script 3.32.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.