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 atom-beautify package #2619

Open
6 tasks
HanaTran2909 opened this issue Apr 11, 2022 · 3 comments
Open
6 tasks

Failed to activate the atom-beautify package #2619

HanaTran2909 opened this issue Apr 11, 2022 · 3 comments

Comments

@HanaTran2909
Copy link

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Versions

Atom: 1.60.0 x64
Electron: 9.4.4
OS: Microsoft Windows 10 Pro
Thrown From: atom-beautify package 0.33.4

Stack Trace

Failed to activate the atom-beautify package

At ENOENT: no such file or directory, open 'C:\Users\Admin\.atom\packages\atom-beautify\node_modules\event-kit\dist\event-kit.js'

Error: ENOENT: no such file or directory, open 'C:\Users\Admin\.atom\packages\atom-beautify\node_modules\event-kit\dist\event-kit.js'
    at Object.openSync (fs.js:440:3)
    at Object.func [as openSync] (electron/js2c/asar.js:140:31)
    at Proxy.readFileSync (fs.js:342:35)
    at Proxy.fs.readFileSync (electron/js2c/asar.js:542:40)
    at compileFileAtPath (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:150809)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:153473)
    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/<embedded>:11:149229)
    at /packages/atom-beautify/src/beautify.coffee:7:25)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:149913)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>: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 (internal/modules/cjs/helpers.js:74:18)
    at customRequire (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:1:802772)
    at requireModule (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:14:1175135)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:3543231)
    at Package.activateNow (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:3531230)
    at ~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:14:2607
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1187666)
    at Emitter.emit (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1189107)
    at ~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:386347
    at Set.forEach (<anonymous>)
    at PackageManager.activatePackage (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:386309)
    at ~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:381221
    at Array.forEach (<anonymous>)
    at ~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:381205
    at ~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:338057
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1187666)
    at Emitter.emit (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1189107)
    at Config.emitChangeEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:340545)
    at Config.setRawValue (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:337785)
    at Config.set (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:333579)
    at Config.removeAtKeyPath (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:335602)
    at Package.enable (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:3528351)
    at PackageManager.enablePackage (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:378824)
    at HTMLButtonElement.enablementButtonClickHandler (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:14:2697622)

Commands

 16x -9:52.6.0 core:backspace (input.hidden-input)
     -5:22 command-palette:toggle (summary.welcome-summary.icon.icon-keyboard)
 12x -4:16.5.0 core:backspace (input.hidden-input)
     -3:56 core:paste (input.hidden-input)
     -3:55.3.0 core:confirm (input.hidden-input)
 16x -3:10.2.0 core:backspace (input.hidden-input)
     -3:08.6.0 core:paste (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-ternjs 0.20.0 
autoclose-html 0.23.0 
csslint 1.2.0 
emmet 2.4.3 
language-ejs 0.4.0 
pigments 0.40.6 

Additional Information

Description

The results of beautification are not what I expect.

Input Before Beautification

This is what the code looked like before:

<INSERT CODE HERE>

Expected Output

The beautified code should have looked like this:

<INSERT CODE HERE>

Actual Output

The beautified code actually looked like this:

<INSERT CODE HERE>

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

Debug

Here is a link to the debug.md Gist:

Checklist

I have:

  • Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • Reloaded (or restarted) Atom to ensure it is not a caching issue
  • Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
  • Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue
@18121A05L2
Copy link

Failed to activate the atom-beautify package

@matiashtml
Copy link

it dont work for me neither, idk what to do

@SilentGlasses
Copy link

If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605

If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks

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

4 participants