atom-community / atom-community/atom-script

Unable to use atom-script to run code

Open
#2,672 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

### Prerequisites

* [x] Put an X between the brackets on this line if you have done all of the following:
* Reproduced the problem in Safe Mode:
* Followed all applicable steps in the debugging guide:
* Checked the FAQs on the message board for common solutions:
* Checked that your issue isn't already filed:
* Checked that there is not already an Atom package that provides the described functionality:

### Description

I am unable to run code using ctrl+shift+B and whenever I launch atom I get the following error message.

### Steps to Reproduce

1. Install atom
2. Install GitHub for Windows
3. Download atom-script-3.32.2
4. transfer it to ".atom/packages" address
5. install script package from atom

**Expected behavior:**

run code in separate window as described

**Actual behavior:**

### Versions

**Atom**: 1.60.0 x64
**Electron**: 9.4.4
**OS**: Microsoft Windows 10 Home
**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 'temp'
Require stack:
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammar-utils.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammars\index.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammars.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\code-context-builder.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\script.js
- C:\Users\Pc\AppData\Local\atom\app-1.60.0\resources\app.asar\static\index.html

Error: Cannot find module 'temp'
Require stack:
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammar-utils.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammars\index.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\grammars.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\code-context-builder.js
- C:\Users\Pc\.atom\packages\atom-script-3.32.2\lib\script.js
- C:\Users\Pc\AppData\Local\atom\app-1.60.0\resources\app.asar\static\index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:157942)
at Module.require (/app.asar/static/index.js:61:43)
at require (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:149229)
at /packages/atom-script-3.32.2/lib/grammar-utils.js:6:24)
at /packages/atom-script-3.32.2/lib/grammar-utils.js:128:28)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:149913)
at Object.value [as .js] (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:153507)
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.60.0/resources/app/static/:11:149229)
at /packages/atom-script-3.32.2/lib/grammars/index.js:12:24)
at /packages/atom-script-3.32.2/lib/grammars/index.js:614:29)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:149913)
at Object.value [as .js] (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:153507)
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.60.0/resources/app/static/:11:149229)
at /packages/atom-script-3.32.2/lib/grammars.js:11:22)
at /packages/atom-script-3.32.2/lib/grammars.js:46:24)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:149913)
at Object.value [as .js] (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:153507)
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)
```

### Commands

```
```

### Non-Core Packages

```
script 3.32.2
```

### Additional Information

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.