Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

Failed to activate the atom-beautify package #2133

Closed the-j0k3r closed 6 years ago

the-j0k3r commented 6 years ago

Description

This is not a beautification issue, following an update to atom beautify 0.32.3 I get.

Atom: 1.26.1 x64 Electron: 1.7.11 OS: Microsoft Windows 10 Pro Thrown From: atom-beautify package 0.32.3

### Stack Trace

Failed to activate the atom-beautify package

At Cannot find module './config/npm-config'

Error: Cannot find module './config/npm-config'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.26.1/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.26.1/resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/winston/lib/winston/config.js:48:17)
    at /packages/atom-beautify/node_modules/winston/lib/winston/config.js:70:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/winston/lib/winston/common.js:15:14)
    at /packages/atom-beautify/node_modules/winston/lib/winston/common.js:510:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/winston/lib/winston.js:24:26)
    at /packages/atom-beautify/node_modules/winston/lib/winston.js:166:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/src/logger.coffee:10:13
    at /packages/atom-beautify/src/logger.coffee:4:18)
    at /packages/atom-beautify/src/logger.coffee:1:1)
    at /packages/atom-beautify/src/logger.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/src/beautifiers/index.coffee:6:10)
    at /packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at /packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.26.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/src/beautify.coffee:9:15)
    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.26.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.26.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (~/AppData/Local/atom/app-1.26.1/resources/app/static/<embedded>:96:26)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.26.1/resources/app/src/package.js:782:33)
    at Package.activateNow (~/AppData/Local/atom/app-1.26.1/resources/app/src/package.js:220:40)
    at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (~/AppData/Local/atom/app-1.26.1/resources/app/src/package.js:901:81)
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.26.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.26.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at PackageManager.triggerDeferredActivationHooks (~/AppData/Local/atom/app-1.26.1/resources/app/src/package-manager.js:717:40)
    at Promise.all.then (~/AppData/Local/atom/app-1.26.1/resources/app/src/package-manager.js:650:18)
    at <anonymous>

Non-Core Packages

atom-beautify 0.32.3 


# Checklist

I have:
- [x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
- x ] Reloaded (or restarted) Atom to ensure it is not a caching issue
- [x] 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

![crash](https://user-images.githubusercontent.com/31389848/40068366-5b451408-5860-11e8-8e6a-10cba56ec3bf.PNG)
ghost commented 6 years ago

Please follow the issue template provided. More specifically, update the original comment for this issue by adding a link to the required debug.md gist which includes debugging information that answers our most commonly asked questions. Thank you.

the-j0k3r commented 6 years ago

@issue-complete

that does not apply to this issue you dumb bot :-1:

Glavin001 commented 6 years ago

@the-j0k3r : This is often an Atom Package Manager installation issue. Please try to uninstall and reinstall:

apm uninstall atom-beautify
apm install atom-beautify
the-j0k3r commented 6 years ago

Please try to uninstall and reinstall:

apm uninstall atom-beautify apm install atom-beautify

I done that once before via UI as you can see by my checklist items checked, but since you specify cmd line I went ahed and did that too just now.

I may as well say that I had started atom with atom --safe and one normally, so I had two instances running when this happened twice, due to trying to duplicate again https://github.com/atom/atom/issues/17308 and https://github.com/atom/atom/issues/17253

Starting atom normally just once doesnt display issue.

stevenzeck commented 6 years ago

@the-j0k3r did the error go away then or is it still saying it failed to activate the package?

the-j0k3r commented 6 years ago

I already answered that question.

Starting atom normally just once doesnt display issue.

stevenzeck commented 6 years ago

Is this still an issue then?

the-j0k3r commented 6 years ago

I already answered that question.

Starting atom normally just once doesnt display issue.

:eyeglasses:

the-j0k3r commented 6 years ago

@Glavin001 please consider revising your extremely complicated ISSUE_TEMPLATE.md its really excessive and doesnt account for anything outside that extremely complicated check box.

Snowcat8 commented 6 years ago

I am also getting this issue.

Error: Cannot find module './winston/transports' at Module._resolveFilename (module.js:470:15) at Module._resolveFilename (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\electron.asar\common\reset-search-paths.js:35:12) at Function.get_Module._resolveFilename (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\module-cache.js:354:58) at Module.require (file:///C:/Users/dc/AppData/Local/atom/app-1.24.0/resources/app.asar/static/index.js:40:43) at require (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:66:33) at Object. (C:\Users\dc.atom\packages\atom-beautify\node_modules\winston\lib\winston.js:19:22) at Object. (C:\Users\dc.atom\packages\atom-beautify\node_modules\winston\lib\winston.js:166:3) at Module.get_Module._compile (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .js] (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\compile-cache.js:239:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///C:/Users/dc/AppData/Local/atom/app-1.24.0/resources/app.asar/static/index.js:47:45) at require (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:66:33) at file:///C:/Users/dc/.atom/packages/atom-beautify/src/logger.coffee:10:13 at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/logger.coffee:4:18) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/logger.coffee:1:1) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/logger.coffee:1:1) at Module.get_Module._compile (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .coffee] (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\compile-cache.js:239:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///C:/Users/dc/AppData/Local/atom/app-1.24.0/resources/app.asar/static/index.js:47:45) at require (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:66:33) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautifiers/index.coffee:6:10) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1) at Module.get_Module._compile (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .coffee] (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\compile-cache.js:239:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///C:/Users/dc/AppData/Local/atom/app-1.24.0/resources/app.asar/static/index.js:47:45) at require (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:66:33) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautify.coffee:9:15) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautify.coffee:2:1) at Object. (file:///C:/Users/dc/.atom/packages/atom-beautify/src/beautify.coffee:2:1) at Module.get_Module._compile (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .coffee] (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\compile-cache.js:239:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///C:/Users/dc/AppData/Local/atom/app-1.24.0/resources/app.asar/static/index.js:47:45) at require (internal/module.js:20:19) at customRequire (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\static\:96:26) at Package.requireMainModule (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\package.js:782:33) at Package.activateNow (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\package.js:220:40) at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\package.js:901:81) at Function.module.exports.Emitter.simpleDispatch (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\node_modules\event-kit\lib\emitter.js:25:20) at Emitter.module.exports.Emitter.emit (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\node_modules\event-kit\lib\emitter.js:141:34) at PackageManager.triggerDeferredActivationHooks (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\package-manager.js:717:40) at Promise.all.then (C:\Users\dc\AppData\Local\atom\app-1.24.0\resources\app\src\package-manager.js:650:18)

kucits commented 6 years ago

Having this issue as well - I've uninstalled via cmd line and re-installed (multiple times)

Failed to activate the atom-beautify package Languages is not a constructor Hide Stack Trace TypeError: Languages is not a constructor at file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautifiers/index.coffee:109:15 at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautifiers/index.coffee:678:16) at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1) at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1) at Module.get_Module._compile (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .coffee] (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\compile-cache.js:240:29) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Module.require (file:///C:/Users/tjbug_000/AppData/Local/atom/app-1.28.2/resources/app.asar/static/index.js:47:45) at require (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\native-compile-cache.js:66:33) at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautify.coffee:9:15) at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautify.coffee:2:1) at Object. (file:///C:/Users/tjbug_000/.atom/packages/atom-beautify/src/beautify.coffee:2:1) at Module.get_Module._compile (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\native-compile-cache.js:106:36) at Object.value [as .coffee] (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\compile-cache.js:240:29) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Module.require (file:///C:/Users/tjbug_000/AppData/Local/atom/app-1.28.2/resources/app.asar/static/index.js:47:45) at require (internal/module.js:11:18) at customRequire (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\static\:96:26) at Package.requireMainModule (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\package.js:782:33) at Package.activateNow (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\package.js:220:40) at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\package.js:901:81) at Function.module.exports.Emitter.simpleDispatch (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\node_modules\event-kit\lib\emitter.js:27:20) at Emitter.module.exports.Emitter.emit (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\node_modules\event-kit\lib\emitter.js:156:34) at PackageManager.triggerDeferredActivationHooks (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\package-manager.js:717:40) at Promise.all.then (C:\Users\tjbug_000\AppData\Local\atom\app-1.28.2\resources\app\src\package-manager.js:650:18) at

zolbayars commented 5 years ago

Is it ever gonna get fixed?

SyntaxError: Invalid or unexpected token
    at Module.get_Module._compile (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\native-compile-cache.js:94:52)
    at Object.value [as .coffee] (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (file:///C:/Users/Zolbayar.b.SKYTEL/AppData/Local/atom/app-1.30.0/resources/app.asar/static/index.js:47:45)
    at require (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\native-compile-cache.js:66:33)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautifiers/index.coffee:6:10)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at Module.get_Module._compile (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\native-compile-cache.js:106:36)
    at Object.value [as .coffee] (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (file:///C:/Users/Zolbayar.b.SKYTEL/AppData/Local/atom/app-1.30.0/resources/app.asar/static/index.js:47:45)
    at require (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\native-compile-cache.js:66:33)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautify.coffee:9:15)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautify.coffee:2:1)
    at Object.<anonymous> (file:///C:/Users/Zolbayar.b.SKYTEL/.atom/packages/atom-beautify/src/beautify.coffee:2:1)
    at Module.get_Module._compile (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\native-compile-cache.js:106:36)
    at Object.value [as .coffee] (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (file:///C:/Users/Zolbayar.b.SKYTEL/AppData/Local/atom/app-1.30.0/resources/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\static\<embedded>:96:26)
    at Package.requireMainModule (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\package.js:782:33)
    at Package.activateNow (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\package.js:220:40)
    at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\package.js:901:81)
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\node_modules\event-kit\lib\emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\node_modules\event-kit\lib\emitter.js:156:34)
    at PackageManager.triggerDeferredActivationHooks (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\package-manager.js:717:40)
    at Promise.all.then (C:\Users\Zolbayar.b.SKYTEL\AppData\Local\atom\app-1.30.0\resources\app\src\package-manager.js:650:18)
    at <anonymous>
denisgnatyuk commented 5 years ago

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

Stack Trace

Failed to activate the atom-beautify package

At Cannot find module './maps/zebra'

Error: Cannot find module './maps/zebra'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.31.2/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.31.2/resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/colors/lib/colors.js:164:21)
    at /packages/atom-beautify/node_modules/colors/lib/colors.js:177:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.31.2/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/colors/safe.js:8:14)
    at /packages/atom-beautify/node_modules/colors/safe.js:10:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.31.2/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/winston/lib/winston/config.js:9:14)
    at /packages/atom-beautify/node_modules/winston/lib/winston/config.js:70:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.31.2/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-beautify/node_modules/winston/lib/winston/common.js:15:14)
    at /packages/atom-beautify/node_modules/winston/lib/winston/common.js:506:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.31.2/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.31.2/resources/app/src/compile-cache.js:240:29)

Commands

Non-Core Packages

atom-beautify 0.33.4 
atom-debug-ui 1.0.4 
atom-ide-ui 0.13.0 
emmet 2.4.3 
file-icons 2.1.25 
git-control 0.9.0 
git-diff-details 1.4.0 
hyperclick 0.0.0 
ide-php 0.7.15 
js-hyperclick 1.13.3 
line-ending-selector-unix 0.0.9 
minimap 4.29.9 
php-debug 0.3.5 
php-hyperclick 1.2.1 
pigments 0.40.2 
project-manager 3.3.6 
DrMiaow commented 5 years ago

I am getting this error - but it resolved itself after restarting Atom.

ENOENT: no such file or directory, open 'C:\Users\james\.atom\packages\atom-beautify\src\beautifiers\index.coffee'
Hide Stack Trace
Error: ENOENT: no such file or directory, open 'C:\Users\james\.atom\packages\atom-beautify\src\beautifiers\index.coffee'
    at Object.fs.openSync (fs.js:646:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Proxy.fs.readFileSync (fs.js:551:33)
    at Proxy.fs.readFileSync (ELECTRON_ASAR.js:545:29)
    at compileFileAtPath (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\compile-cache.js:90:29)
    at Object.value [as .coffee] (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\compile-cache.js:239:26)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (file:///C:/Users/james/AppData/Local/atom/app-1.31.2/resources/app.asar/static/index.js:47:45)
    at require (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\native-compile-cache.js:66:33)
    at Object.<anonymous> (file:///C:/Users/james/.atom/packages/atom-beautify/src/beautify.coffee:9:15)
    at Object.<anonymous> (file:///C:/Users/james/.atom/packages/atom-beautify/src/beautify.coffee:2:1)
    at Object.<anonymous> (file:///C:/Users/james/.atom/packages/atom-beautify/src/beautify.coffee:2:1)
    at Module.get_Module._compile (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\native-compile-cache.js:106:36)
    at Object.value [as .coffee] (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (file:///C:/Users/james/AppData/Local/atom/app-1.31.2/resources/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\static\<embedded>:96:26)
    at Package.requireMainModule (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\package.js:782:33)
    at Package.activateNow (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\package.js:220:40)
    at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\package.js:901:81)
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\node_modules\event-kit\lib\emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\node_modules\event-kit\lib\emitter.js:156:34)
    at triggeredActivationHooks.forEach.hook (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\package-manager.js:706:86)
    at Set.forEach (<anonymous>)
    at PackageManager.activatePackage (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\package-manager.js:706:43)
    at C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\node_modules\settings-view\lib\package-manager.js:491:35
    at exit (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\node_modules\settings-view\lib\package-manager.js:128:22)
    at triggerExitCallback (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\buffered-process.js:267:15)
    at ChildProcess.process.on (C:\Users\james\AppData\Local\atom\app-1.31.2\resources\app\src\buffered-process.js:297:15)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
rzjnzk commented 5 years ago

Edit: My instance is now resolved. See the following. https://github.com/Glavin001/atom-beautify/issues/1923#issuecomment-340983237


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

Stack Trace

Failed to activate the atom-beautify package

At Beautifier is not a constructor

TypeError: Beautifier is not a constructor
    at /packages/atom-beautify/src/beautifiers/index.coffee:121:7
    at arrayMap (/packages/atom-beautify/node_modules/lodash/lodash.js:639:23)
    at Function.map (/packages/atom-beautify/node_modules/lodash/lodash.js:9556:14)
    at /packages/atom-beautify/src/beautifiers/index.coffee:119:22)
    at /packages/atom-beautify/src/beautify.coffee:10:14)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at Module.get_Module._compile (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:146385)
    at Object.value [as .coffee] (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:149932)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:1:622321)
    at Package.requireMainModule (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:3044031)
    at Package.activateNow (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:3032165)
    at string.e.trim.length.activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:14:2445)
    at Function.simpleDispatch (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:1186953)
    at Emitter.emit (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:1188394)
    at PackageManager.triggerDeferredActivationHooks (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:380394)
    at Promise.all.then (E:/d/User/Software Projects/#atom/Atom x64/resources/app/static/<embedded>:11:379192)
    at <anonymous>

Commands

Non-Core Packages

ask-stack 2.2.0 
atom-beautify 0.33.4 
atom-discord 2.0.1 
atom-smart-template 0.3.2 
auto-indent 0.5.0 
autocomplete-paths 2.12.2 
better-git-blame 0.4.7 
busy-signal 1.4.3 
close-unmodified-tabs 1.0.4 
emmet 2.4.3 
file-icons 2.1.26 
git-blame 1.7.0 
git-plus 8.1.0 
git-time-machine 2.1.0 
github-user-datatip 0.3.2 
highlight-selected 0.14.0 
intentions 1.1.5 
linter 2.2.0 
linter-eslint 8.4.1 
linter-ui-default 1.7.1 
minimap 4.29.9 
minimap-find-and-replace 4.5.2 
minimap-highlight-selected 4.6.1 
minimap-pigments 0.2.2 
move-fast 0.0.1 
node-debugger 1.10.1 
node-requirer 0.1.12 
open-recent 5.0.0 
pigments 0.40.2 
platformio-ide-terminal 2.8.4 
project-manager 3.3.6 
sourcefetch-stackoverflow 0.5.0 
swackets 0.35.0 
teletype 0.13.3 
template-generator 0.16.0 
todo-show 2.3.2 
zentabs 0.8.9 
rzjnzk commented 5 years ago

I was able to resolve my instance of this error as per the suggestions given in the following comment. https://github.com/Glavin001/atom-beautify/issues/1923#issuecomment-340983237

HarshVisaria commented 5 years ago

how to solve this ?

Cannot find module 'event-kit' Hide Stack Trace Error: Cannot find module 'event-kit' at Module._resolveFilename (module.js:543:15) at Module._resolveFilename (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\electron.asar\common\reset-search-paths.js:35:12) at Function.get_Module._resolveFilename (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:154667) at Module.require (file:///C:/Users/Harsh/AppData/Local/atom/app-1.33.0/resources/app.asar/static/index.js:40:43) at require (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:145974) at Object.<anonymous> (file:///C:/Users/Harsh/.atom/packages/atom-beautify-master/src/beautify.coffee:7:25) at Object.<anonymous> (file:///C:/Users/Harsh/.atom/packages/atom-beautify-master/src/beautify.coffee:2:1) at Object.<anonymous> (file:///C:/Users/Harsh/.atom/packages/atom-beautify-master/src/beautify.coffee:2:1) at Module.get_Module._compile (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:146684) at Object.value [as .coffee] (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:150231) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Module.require (file:///C:/Users/Harsh/AppData/Local/atom/app-1.33.0/resources/app.asar/static/index.js:47:45) at require (internal/module.js:11:18) at customRequire (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:1:626990) at Package.requireMainModule (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:3039740) at Package.activateNow (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:3027874) at string.e.trim.length.activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:14:2445) at Function.simpleDispatch (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:1190583) at Emitter.emit (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:1192024) at PackageManager.triggerDeferredActivationHooks (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:382925) at Promise.all.then (C:\Users\Harsh\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:381723) at <anonymous>