mingjunyang / atom-format-lua

MIT License
3 stars 5 forks source link

Uncaught Error: spawn EACCES #4

Open mzgs2 opened 8 years ago

mzgs2 commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.5.4 System: Mac OS X 10.11.2 Thrown From: atom-format-lua package, v0.1.1

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:298

Error: spawn EACCES
    at exports._errnoException (util.js:837:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:351:9)
    at format (/Users/mustafa/.atom/packages/atom-format-lua/lib/atom-format-lua.js:69:20)
    at atom-workspace.atomFormatLuaFormat (/Users/mustafa/.atom/packages/atom-format-lua/lib/atom-format-lua.js:14:13)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:570:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:378:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:01.4.0 atom-format-lua:format (atom-text-editor.editor.is-focused)

Config

{
  "core": {},
  "atom-format-lua": {
    "lua51": "/Users/mustafa/lua-5.3.2"
  }
}

Installed Packages

# User
atom-format-lua, v0.1.1
autocomplete-corona, v1.0.2
color-picker, v2.1.1
file-icons, v1.6.17
highlight-selected, v0.11.2
language-lua, v0.9.4
minimap, v4.19.0
open-recent, v5.0.0
terminal-plus, v0.14.5

# Dev
No dev packages
mingjunyang commented 8 years ago

@mzgs try lua 5.1.x, not support lua 5.3.

mzgs2 commented 8 years ago

i used lua 5.1 still same error

mingjunyang commented 8 years ago

@mzgs Maybe is privilege took this problem.

ryanplusplus commented 6 years ago

@mzgs I think this is because you provided the directory that the Lua binary is in. You need to give the full path to the executable. Try:

{
  "core": {},
  "atom-format-lua": {
    "lua51": "/Users/mustafa/lua-5.3.2/lua"
  }
}