Comments (9)
%WEB_DIR%
has just been replaced with %PUBLIC_DIR%
thanks to #122 and other PRs, have you checked this var in your composer.json file ?
from flex.
Better experience on Symfony 3.4 now thanks to symfony/symfony#24303
from flex.
I don't think the issue is the installation of symfony/console.
The difference is that once symfony/console gets installed, the console command is running instead of being skipped, and so requires being able to boot the kernel without error.
Try booting the kernel after your first command, and you will see that it is the one being broken already (except that you never tried your project at that point)
from flex.
I tried to install a bundle that depends on Symfony Console, and got the same error. Here's how to reproduce the error:
# cd /tmp; rm -rf demo
composer create-project symfony/skeleton:3.3.x-dev demo
cd demo
composer require gnugat/micro-framework-bundle:^0.5
The output of the last command:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing symfony/console (dev-master 0f04702): Loading from cache
Detected auto-configuration settings for "symfony/console"
Setting configuration and copying files
- Installing gnugat/micro-framework-bundle (v0.5.2): Loading from cache
Detected auto-configuration settings for "gnugat/micro-framework-bundle"
Enabling the package as a Symfony bundle
Writing lock file
Generating autoload files
Executing script make cache-warmup [OK]
Executing script assets:install --symlink --relative %WEB_DIR% [KO]
[KO]
Script assets:install --symlink --relative %WEB_DIR% returned with error code 1
!!
!!
!!
!!
!! [Symfony\Component\DependencyInjection\Exception\OutOfBoundsException]
!! Cannot replace arguments if none have been configured yet.
!!
!!
!!
!!
!!
Installation failed, reverting ./composer.json to its original content.
from flex.
🤔 actually, it looks like my error comes from the fact that %WEB_DIR%
isn't set after creating the project.
from flex.
Hmm, personally got this after composer update
command:
wunder@code-2017-VirtualBox:~/PhpstormProjects/symfony-flex-backend$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 21 updates, 0 removals
- Removing symfony/flex (dev-master d4681b5)
- Installing symfony/flex (dev-master d1c0b02): Downloading (100%)
- Removing symfony/stopwatch (3.4.x-dev 162ab93)
- Installing symfony/stopwatch (3.4.x-dev 0a9eecc): Downloading (100%)
- Removing symfony/routing (dev-master e87f6e9)
- Installing symfony/routing (dev-master a53262e): Downloading (100%)
- Removing symfony/debug (dev-master 2b1c9fd)
- Installing symfony/debug (dev-master 78a5af2): Downloading (100%)
- Removing symfony/cache (dev-master 8b89866)
- Installing symfony/cache (dev-master 42c3604): Downloading (100%)
- Removing symfony/doctrine-bridge (3.4.x-dev 6e8fd7f)
- Installing symfony/doctrine-bridge (3.4.x-dev 4cdde1e): Downloading (100%)
- Removing symfony/property-access (dev-master ffd0b28)
- Installing symfony/property-access (dev-master 0da9ebd): Downloading (100%)
- Removing symfony/security (dev-master a732f3f)
- Installing symfony/security (dev-master 768b768): Downloading (100%)
- Removing symfony/intl (dev-master b4eeb6b)
- Installing symfony/intl (dev-master ca86058): Downloading (100%)
- Removing symfony/process (dev-master 8bdb547)
- Installing symfony/process (dev-master 3bce28b): Downloading (100%)
- Removing symfony/translation (dev-master 4d6d3dd)
- Installing symfony/translation (dev-master a87e0cc): Downloading (100%)
- Removing phpunit/phpunit (dev-master 077a638)
- Installing phpunit/phpunit (dev-master db5b7d5): Downloading (100%)
- Removing symfony/var-dumper (dev-master 060ff4d)
- Installing symfony/var-dumper (dev-master 5633848): Downloading (100%)
- Removing symfony/console (3.4.x-dev 0353f8a)
- Installing symfony/console (3.4.x-dev 1053791): Downloading (100%)
- Removing symfony/web-server-bundle (3.4.x-dev a4cdf82)
- Installing symfony/web-server-bundle (3.4.x-dev ab38f26): Downloading (100%)
- Removing symfony/dotenv (3.4.x-dev cbd0766)
- Installing symfony/dotenv (3.4.x-dev aaf1904): Downloading (100%)
- Removing symfony/twig-bundle (3.4.x-dev af0894b)
- Installing symfony/twig-bundle (3.4.x-dev ae41aa0): Downloading (100%)
- Removing symfony/web-profiler-bundle (3.4.x-dev 64adcca)
- Installing symfony/web-profiler-bundle (3.4.x-dev 47e8d1e): Downloading (100%)
- Removing symfony/validator (3.4.x-dev c314bcc)
- Installing symfony/validator (3.4.x-dev 6406c11): Downloading (100%)
- Removing symfony/framework-bundle (3.4.x-dev edc62cf)
- Installing symfony/framework-bundle (3.4.x-dev 607ceec): Downloading (100%)
- Removing symfony/yaml (3.4.x-dev f46d917)
- Installing symfony/yaml (3.4.x-dev 519fb08): Downloading (100%)
Writing lock file
Generating autoload files
Executing script make cache-warmup [OK]
Executing script assets:install --symlink --relative %WEB_DIR% [OK]
Executing script vendor/bin/security-checker security:check --end-point=http://security.sensiolabs.org/check_lock [OK]
Executing script %BIN_DIR%/check.php [OK]
wunder@code-2017-VirtualBox:~/PhpstormProjects/symfony-flex-backend$
And after that if I run composer update
wunder@code-2017-VirtualBox:~/PhpstormProjects/symfony-flex-backend$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Executing script make cache-warmup [OK]
Executing script assets:install --symlink --relative %WEB_DIR% [KO]
[KO]
Script assets:install --symlink --relative %WEB_DIR% returned with error code 1
!!
!!
!!
!!
!! [InvalidArgumentException]
!! The target directory "%WEB_DIR%" does not exist.
!!
!!
!!
!!
!! assets:install [--symlink] [--relative] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<target>]
!!
!!
!!
wunder@code-2017-VirtualBox:~/PhpstormProjects/symfony-flex-backend$
Any ideas?
from flex.
@Pierstoval thanks, yeah that %WEB_DIR%
has been changed to %PUBLIC_DIR%
and web
folder has been renamed to public
. After I make those changes manually all started to working again.
from flex.
After composer req form
I've got two errors on the automated script execution make cache-clear
that The Translation component is required to use the Form component.
and after that The Validator component is required to use the Form component.
from flex.
The Form component itself can work perfect without the validator and translator (which for Form is only required for validation). But when using the Form component with the FrameworkBundle there are additional requirements.
Eg. the FrameworkBundle needs to detect if these other components are installed (and otherwise disable there integration with the Form component). Or we need a form-pack to install the additional requirements for this Flex case.
from flex.
Related Issues (20)
- Renaming of docker-compose.yaml in compose.yaml : postgresql does'nt work anymore HOT 8
- Unclear problem description when Flex blocks package installation (by `extra.symfony.require` rule) HOT 1
- [Feature] Recipe endpoint for private recipe should not be in the project but in the bundle
- Missing tag for version v1.21.5 ? HOT 3
- Remove importmap entries when uninstalling a package
- ComposerScriptsConfigurator can break "composer.json" filename in patch
- Symfony Flex 1.8.5 is not compatible with Composer 2.7.0
- Symfony Flex fails when using Composer 2.7.0, running as root HOT 7
- Unable to update recipe HOT 6
- PackageJsonSynchronizer is not fail safe HOT 1
- Invalid version string "master.9999999" HOT 2
- Make packages.json synchronization optional
- recipe_template_relative processing is broken for gitlab private recipe
- Remove version tag in compose file as marked as obsolete by lastest docker compose version HOT 3
- Allow organize private recipes in subdirectories HOT 5
- Feature request: Update recipes non interactive
- Suggest adding management of the compose.yml file in addition to docker-compose.yml HOT 1
- Optimized key management to avoid duplication
- Support for local stored recipe files
- Resolving dependencies fails for symfony/psr-http-message-bridge after change of recipe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flex.