Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing bin folder #351

Open
computamike opened this issue Jul 28, 2023 · 4 comments
Open

Missing bin folder #351

computamike opened this issue Jul 28, 2023 · 4 comments

Comments

@computamike
Copy link
Contributor

When installing Symfony, and creating a new project - a bin folder is added to the project structure. This contains a file called : console.

This allows the user to issue the command : symfony console - this console is used as part of the composer install / symfony flex commands to clear the cache.

I had a go - and from what I can see the latest version of symfony is 6.3 - whereas the composer files seems to suggest that it was built against 6.2

@edent - is it possible to add the missing bin/console file, or should I go to 6.3?

currently when running composer install - the following error is displayed :

image

@edent
Copy link
Collaborator

edent commented Jul 29, 2023

I can't add the /bin folder because that will be created by your Symfony install. And, I think, you may choose to install it somewhere else.

This was built against 6.2.7 - I guess it should work with 6.3.

@computamike
Copy link
Contributor Author

The bin folder isn't created by a symfony install - but is created as part of the symfony new command. If I were to install symfony, then clone this project, then the file wouldn't be present. Issuing composer install installs the dependancies - but doesn't restore the missing bin/console file.

The only way to restore that is to create a new symfony project (using symfony new TESTPROJ --version 6.2) - and then copy the bin/console php file from that project to the OpenBenches clone.

There is a Stack Overflow article about this https://stackoverflow.com/questions/25530432/bin-console-missing-after-running-composer-install. - one of the answers suggests that it can be generated using composer require symfony/console, and then running composer install again - however I have tested that on a 6.2.x new project and was unable to get it to work.

@edent
Copy link
Collaborator

edent commented Aug 1, 2023

I don't know enough about Docker to be able to help here, sorry. I just ran the Symfony installer on my web host.

@computamike
Copy link
Contributor Author

should be fixed by #358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants