-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Bug] Error when installing "form" package #26
Comments
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. |
I tried to install a bundle that depends on Symfony Console, and got the same error. Here's how to reproduce the error:
The output of the last command:
|
🤔 actually, it looks like my error comes from the fact that |
Hmm, personally got this after 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 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? |
|
@Pierstoval thanks, yeah that |
After |
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. |
Better experience on Symfony 3.4 now thanks to symfony/symfony#24303 |
… validator (xabbuh) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] allow forms without translations and validator | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/flex#26, symfony/recipes#191, symfony/recipes#193 | License | MIT | Doc PR | The Form component is perfectly usable without the Translation and Validator components. We should allow the same when using the FrameworkBundle to improve the user experience in Symfony Flex applications (see the linked issue). Commits ------- cb6ead1 allow forms without translations and validator
This PR was merged into the master branch. Discussion ---------- added symfony/orm-pack Commits ------- 2b44c26 added symfony/orm-pack
In a fresh Symfony app, I install
form
without problems:However, if I install
cli
afterwards, I see this error (I made no change in the app between the installation of "form" and "cli"):The text was updated successfully, but these errors were encountered: