Open dinamic opened 8 years ago
Upon manual execution of the syfi-cli
is becomes apparent it should be invoked from the root of the Symfony project. Maybe the plugin fails to determine which is the root folder, because I have opened my projects folder, not only the Symfony project.
Supposedly if you run it from a folder that is not determined to be a symfony project root, the package should show a friendly message to configure the location of the "app" folder of the symfony project manually, in the package's settings.
However since you got an error it is a bit more intriguing than that. So...
If the SYMFONY_APP_FOLDER
is not set, the output is as follows:
#/bin/sh -c /Users/nikola/.atom/packages/syfi/lib/../syfi-cli '@KapinkaShippingContainerPresentationBundle/Resources/config/routing.yml'
Warning: require_once(/Users/nikola/Projects/app/bootstrap.php.cache): failed to open stream: No such file or directory in /Users/nikola/.atom/packages/syfi/syfi-cli on line 10
Call Stack:
0.0003 263648 1. {main}() /Users/nikola/.atom/packages/syfi/syfi-cli:0
Fatal error: require_once(): Failed opening required '/Users/nikola/Projects/app/bootstrap.php.cache' (include_path='.:') in /Users/nikola/.atom/packages/syfi/syfi-cli on line 10
Call Stack:
0.0003 263648 1. {main}() /Users/nikola/.atom/packages/syfi/syfi-cli:0
If the SYMFONY_APP_FOLDER
is set it seems to work, however, the project it finds is not even a Symfony one. Let alone the fact the file is PHP.
#/bin/sh -c /Users/nikola/.atom/packages/syfi/lib/../syfi-cli '@KapinkaShippingContainerPresentationBundle/Resources/config/routing.yml'
/Users/nikola/Projects/Personal/behat/features/bootstrap/FeatureContext.php
[Enter steps to reproduce below:]
app/config/routing.yml
routing.yml
file and click 'Find in Symfony project'Atom Version: 1.0.19 System: Mac OS X 10.11 Thrown From: syfi package, v0.5.0
Stack Trace
Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/nikola/.atom/packages/syfi/lib/../syfi-cli '@KapinkaShippingContainerPresentationBundle/Resources/config/routing.yml'
Commands
Config
Installed Packages