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

Cannot read property 'split' of undefined #2412

Open SuperMario22922 opened 5 years ago

SuperMario22922 commented 5 years ago

Issue

Cannot beautify PHP code

Description

Cannot read property 'split' of undefined

Error Message

TypeError: Cannot read property 'split' of undefined at PHPCSFixer.module.exports.Beautifier.findFile (/Users/hsak/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:138:25) at PHPCSFixer.module.exports.PHPCSFixer.beautify (/Users/hsak/.atom/packages/atom-beautify/src/beautifiers/php-cs-fixer.coffee:65:39) at /Users/hsak/.atom/packages/atom-beautify/src/beautifiers/index.coffee:363:28 at tryCatcher (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:517:31) at Promise._settlePromise (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:574:18) at Promise._settlePromiseCtx (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:611:10) at _drainQueueStep (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:142:12) at _drainQueue (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:131:9) at Async._drainQueues (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:147:5) at Async.drainQueues (/Users/hsak/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)

Checklist

I have:

WeArtStudioNL commented 4 years ago

Same problem here trying to beautify php:

Cannot read property 'split' of undefined Hide Stack Trace TypeError: Cannot read property 'split' of undefined at PHPCSFixer.module.exports.Beautifier.findFile (file:///C:/Users/Gebruiker/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:138:25) at PHPCSFixer.module.exports.PHPCSFixer.beautify (file:///C:/Users/Gebruiker/.atom/packages/atom-beautify/src/beautifiers/php-cs-fixer.coffee:65:39) at file:///C:/Users/Gebruiker/.atom/packages/atom-beautify/src/beautifiers/index.coffee:363:28 at tryCatcher (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromiseCtx (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:641:10) at _drainQueueStep (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:97:12) at _drainQueue (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:102:5) at Async.drainQueues (C:\Users\Gebruiker\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:15:14)

Has this been looked into?