Closed eric-hansen closed 8 years ago
As a side note I also just tried it by highlighting a service in one of my projects and running the keyboard shortcut and I get the same error, except the ''
is populated with the name of the service.
cd [your symfony project root]
/bin/sh -c /Users/echansen/.atom/packages/syfi/lib/../syfi-cli '[some service name you know that exists]'
Also note, that I'm not really at home at OS X, so there might be some quite obvious reason that the above command does not run. (I have this suspicion that you will not have /bin/sh executable. If that is indeed the case could you run
php /Users/echansen/.atom/packages/syfi/lib/../syfi-cli '[some service name you know that exists]'
instead?)
/bin/sh:
/Erics-MacBook-Pro-2:~ echansen$ /bin/sh
sh-3.2$
Here's the output of the first command you gave me (same output when running it w/ php
):
PHP Fatal error: Cannot redeclare endsWith() (previously declared in /Users/echansen/.atom/packages/syfi/syfi-cli:51) in /Users/echansen/Projects/xxx/PHP/zzz/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php on line 594
PHP Stack trace:
PHP 1. {main}() /Users/echansen/.atom/packages/syfi/syfi-cli:0
PHP 2. require_once() /Users/echansen/.atom/packages/syfi/syfi-cli:9
PHP 3. require_once() /Users/echansen/Projects/xxx/PHP/zzz/app/bootstrap.php.cache:5
PHP 4. require() /Users/echansen/Projects/xxx/PHP/zzz/app/autoload.php:9
PHP 5. ComposerAutoloaderInit2e313ca40c2ac5851f90e89fe2814deb::getLoader() /Users/echansen/Projects/xxx/PHP/zzz/vendor/autoload.php:7a
PHP 6. composerRequire2e313ca40c2ac5851f90e89fe2814deb() /Users/echansen/Projects/xxx/PHP/zzz/vendor/composer/autoload_real.php:45
PHP 7. require() /Users/echansen/Projects/xxx/PHP/zzz/vendor/composer/autoload_real.php:54
Fatal error: Cannot redeclare endsWith() (previously declared in /Users/echansen/.atom/packages/syfi/syfi-cli:51) in /Users/echansen/Projects/xxx/PHP/zzz/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php on line 594
Call Stack:
0.0016 258152 1. {main}() /Users/echansen/.atom/packages/syfi/syfi-cli:0
0.0109 1369112 2. require_once('/Users/echansen/Projects/xxx/PHP/zzz/app/bootstrap.php.cache') /Users/echansen/.atom/packages/syfi/syfi-cli:9
0.0114 1371280 3. require_once('/Users/echansen/Projects/xxx/PHP/zzz/app/autoload.php') /Users/echansen/Projects/xxx/PHP/zzz/app/bootstrap.php.cache:5
0.0116 1373000 4. require('/Users/echansen/Projects/xxx/PHP/zzz/vendor/autoload.php') /Users/echansen/Projects/xxx/PHP/zzz/app/autoload.php:9
0.0127 1384680 5. ComposerAutoloaderInit2e313ca40c2ac5851f90e89fe2814deb::getLoader() /Users/echansen/Projects/xxx/PHP/zzz/vendor/autoload.php:7
0.0199 1526400 6. composerRequire2e313ca40c2ac5851f90e89fe2814deb() /Users/echansen/Projects/xxx/PHP/zzz/vendor/composer/autoload_real.php:45
0.0218 1621832 7. require('/Users/echansen/Projects/xxx/PHP/zzz/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php') /Users/echansen/Projects/xxx/PHP/zzz/vendor/composer/autoload_real.php:54
@eric-hansen : I've added a supposed workaround for it, and published it as version 0.5.0. Could you check it out, and see if it works?
Yup, that works, thanks!
:+1:
Atom Version: 1.0.15 System: Mac OS X 10.10.3 Thrown From: syfi package, v0.4.0
Stack Trace
Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/echansen/.atom/packages/syfi/lib/../syfi-cli ''
Commands
Config
Installed Packages