sindresorhus / atom-esformatter

Beautify JavaScript
https://atom.io/packages/esformatter
MIT License
113 stars 14 forks source link

Failed to activate the esformatter package #58

Closed betteryourweb closed 8 years ago

betteryourweb commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.4 System: Linux Mint Thrown From: esformatter package, v1.25.0

Stack Trace

Failed to activate the esformatter package

At Cannot find module '../array/indexOf'

Error: Cannot find module '../array/indexOf'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (/usr/share/atom/resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/administrator/.atom/packages/esformatter/node_modules/esformatter/node_modules/mout/function/partial.js:1:94)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/administrator/.atom/packages/esformatter/node_modules/esformatter/lib/plugins.js:3:15)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/administrator/.atom/packages/esformatter/node_modules/esformatter/lib/esformatter.js:9:15)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/home/administrator/.atom/packages/esformatter/index.js:9:20)
    at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app.asar/src/package.js:715:27)
    at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app.asar/src/package.js:173:16)
    at /usr/share/atom/resources/app.asar/src/package.js:795:25

Commands

     -1:37.4.0 tree-view:move (span.name.icon.icon-file-text)
     -1:34.9.0 core:move-right (atom-text-editor.editor.mini.is-focused)
     -1:31.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:26.2.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -1:21 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -1:06.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -0:55.3.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:46.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:15.8.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:15.4.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:15.4.0 snippets:expand (atom-text-editor.editor.is-focused)
     -0:15.4.0 editor:indent (atom-text-editor.editor.is-focused)
     -0:03.8.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-htmltidy"
    ]
  }
}

Installed Packages

# User
Quick-JavaScript, v0.16.0
atom-beautify, v0.29.7
atom-typescript, v8.10.2
atom-webbrowser, v2.1.4
atomino, v0.4.6
browser-plus, v0.0.60
build-coffee, v0.3.2
build-coffeescript, v0.2.4
console-panel, v0.2.0
double-tag, v0.2.0
drag-drop-text, v0.1.4
drop-up, v0.5.0
ember-snippets, v1.4.0
esformatter, v1.25.0
formatter-jsbeautify, v1.0.2
html-entities, v0.4.0
jade-beautify, v0.1.4
javascript-snippets, v1.2.1
javascript-standard-snippets, v0.2.1
language-arduino, v0.4.1
language-ino, v0.1.0
language-javascript-better, v1.7.1
language-riot-tag, v0.2.1
language-vue, v0.13.0
language-vue-component, v0.4.6
linter, v1.11.4
platformio-ide-terminal-plus, v0.15.2
simple-drag-drop-text, v0.3.1
tag, v0.4.0
terminal-plus, v0.14.5
tool-bar, v0.4.0
vue-autocompile, v0.0.5
vue-autocomplete, v0.1.0
vue-snippets, v0.6.0
web-lookup, v1.3.1

# Dev
No dev packages
sindresorhus commented 8 years ago

Looks like an Atom issue. Try reinstalling this plugin, if still doesn't work, open an issue on Atom.