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 #2429

Closed
Betty777JB opened this issue Mar 23, 2021 · 2 comments
Closed

Failed to activate the script package #2429

Betty777JB opened this issue Mar 23, 2021 · 2 comments

Comments

@Betty777JB
Copy link

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Home
Thrown From: script package 3.31.1

Stack Trace

Failed to activate the script package

At OperatingSystem.platform is not a function

TypeError: OperatingSystem.platform is not a function
    at /packages/script/lib/grammars/c.js:7:28)
    at /packages/script/lib/grammars/c.js:183:25)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:147404)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.54.0/resources/app/static/<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 (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:146720)
    at /packages/script/lib/grammars.js:5:18)
    at /packages/script/lib/grammars.js:46:24)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:147404)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.54.0/resources/app/static/<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 (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:146720)
    at /packages/script/lib/code-context-builder.js:5:41)
    at /packages/script/lib/code-context-builder.js:135:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:147404)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.54.0/resources/app/static/<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 (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:146720)
    at /packages/script/lib/script.js:3:43)
    at /packages/script/lib/script.js:239:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:147404)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.54.0/resources/app/static/<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 (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:1:723602)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:3670531)
    at Package.activateNow (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:11:3658515)
    at ~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:14:2607

Commands

Non-Core Packages

atom-beautify 0.33.4 
atom-html-preview 0.2.6 
atom-live-server 2.3.0 
atom-ternjs 0.20.0 
autoclose-html 0.23.0 
busy-signal 2.0.1 
color-picker 2.3.0 
csslint 1.2.0 
emmet 2.4.3 
file-templates 0.2.0 
html-nested-comments 3.4.0 
hyperclick 0.1.5 
intentions 1.1.5 
language-ejs 0.4.0 
linter 3.3.0 
linter-eslint 8.6.2 
linter-ui-default 3.3.0 
pigments 0.40.6 
script 3.31.1 
Sublime-Style-Column-Selection 1.7.5 
@aminya
Copy link
Member

aminya commented Mar 25, 2021

Please re-download. That's an apm issue

@aminya
Copy link
Member

aminya commented Apr 13, 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 Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants