Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to activate the script package #2457

Closed
gespejo1 opened this issue Apr 27, 2021 · 1 comment
Closed

Failed to activate the script package #2457

gespejo1 opened this issue Apr 27, 2021 · 1 comment

Comments

@gespejo1
Copy link

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.55.0 x64
Electron: 6.1.12
OS: Unknown Windows version
Thrown From: script package 3.31.1

Stack Trace

Failed to activate the script package

At Cannot find module 'ansi-to-html'
Require stack:
- C:\Users\gabri\.atom\packages\script\lib\script-view.js
- C:\Users\gabri\.atom\packages\script\lib\script.js
- C:\Users\gabri\AppData\Local\atom\app-1.55.0\resources\app.asar\static\index.html

Error: Cannot find module 'ansi-to-html'
Require stack:
- C:\Users\gabri\.atom\packages\script\lib\script-view.js
- C:\Users\gabri\.atom\packages\script\lib\script.js
- C:\Users\gabri\AppData\Local\atom\app-1.55.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.55.0/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.get_Module._resolveFilename (<embedded>:11:155387)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (<embedded>:11:146720)
    at /packages/script/lib/script-view.js:23:19)
    at /packages/script/lib/script-view.js:303:3)
    at Module.get_Module._compile (<embedded>:11:147404)
    at Object.value [as .js] (<embedded>:11:150952)
    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 (<embedded>:11:146720)
    at /packages/script/lib/script.js:43:19)
    at /packages/script/lib/script.js:290:3)
    at Module.get_Module._compile (<embedded>:11:147404)
    at Object.value [as .js] (<embedded>:11:150952)
    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 (<embedded>:1:736637)
    at requireModule (<embedded>:14:1122229)
    at Package.requireMainModule (<embedded>:11:3509026)
    at Package.activateNow (<embedded>:11:3497010)
    at <embedded>:14:2607
    at Function.simpleDispatch (<embedded>:11:1190181)
    at Emitter.emit (<embedded>:11:1191622)
    at <embedded>:11:383936
    at Set.forEach (<anonymous>:null:null)
    at PackageManager.activatePackage (<embedded>:11:383898)
    at <embedded>:11:916751
    at r (<embedded>:11:911357)
    at n (<embedded>:14:1121552)
    at ChildProcess.<anonymous> (<embedded>:14:1121758)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

Commands

  2x -8:44 editor:newline (input.hidden-input)
     -8:36.4.0 core:move-right (input.hidden-input)
     -8:36.2.0 editor:newline (input.hidden-input)
     -8:24.1.0 core:save (input.hidden-input)
     -8:07.7.0 command-palette:toggle (input.hidden-input)
     -7:19.9.0 grammar-selector:show (atom-text-editor.editor.is-focused)
  3x -5:59.1.0 command-palette:toggle (input.hidden-input)
     -5:16.3.0 settings-view:install-packages-and-themes (input.hidden-input)
     -5:05.1.0 core:backspace (input.hidden-input)
     -4:58.6.0 core:confirm (input.hidden-input)
  2x -4:35.8.0 core:backspace (input.hidden-input)
     -4:35.1.0 core:confirm (input.hidden-input)
  3x -4:33.9.0 core:backspace (input.hidden-input)
     -4:31.8.0 core:confirm (input.hidden-input)
 14x -4:30.1.0 core:backspace (input.hidden-input)
 13x -2:40.3.0 Python run: run-f5 (input.hidden-input)

Non-Core Packages

run-script 4.0.1 
script 3.31.1 
@aminya
Copy link
Member

aminya commented May 10, 2021

Please re-download. This is an apm issue

apm uninstall script

Clear your cache then

apm install script

atom/apm#919

@aminya aminya closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants