GithubHelp home page GithubHelp logo

Comments (4)

dinamic avatar dinamic commented on August 24, 2024

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.

from syfi.

hendricha avatar hendricha commented on August 24, 2024

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...

  1. Could you post the full cli output if you run the command from the folder that you use as your atom project root? (Which you described as your "projects folder".)
  2. Could you run it for me again from the same folder, but with the SYMFONY_APP_FOLDER environment variable set as the folder where your symfony project's AppKernel.php and bootstrap.php.cache is? (The "app" folder normally.)

from syfi.

dinamic avatar dinamic commented on August 24, 2024

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

from syfi.

dinamic avatar dinamic commented on August 24, 2024

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

from syfi.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.