Украсить PHP на Atom.io возвращает ошибку Bad Argument

Я столкнулся с камнем преткновения при использовании Atom.io, к сожалению, всякий раз, когда я пытаюсь настроить atom-beautify работать с PHP, он возвращает эту трассировку стека:

TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:278:26)
at exports.spawn (child_process.js:384:9)
at /Users/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:136:17
at Promise._execute (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/debuggability.js:299:9)
at Promise._resolveFromExecutor (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:77:14)
at PHPCSFixer.module.exports.Beautifier.getShellEnvironment (/Users/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:116:16)
at /Users/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:269:38
at tryCatcher (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:636:18)
at PromiseArray._resolve (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:143:14)
at Promise._settlePromise (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:572:26)
at Promise._settlePromise0 (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:636:18)
at PromiseArray._resolve (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:143:14)
at Promise._settlePromise (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:572:26)
at Promise._settlePromise0 (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/Users/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)

Похоже, что на этой строке, где он пытается получить оболочку:

at PHPCSFixer.module.exports.Beautifier.getShellEnvironment (/Users/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:116:16)

Я использую iTerm2, но я не уверен, почему это будет иметь значение! Кто-нибудь сталкивался с этой ошибкой раньше? Если так, как вы решили это?

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]