You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
symfony new reproducer-proxy-bug --version=next
cd reproducer-proxy-bug
# Everything still fine after requiring doctrine
composer require orm-pack
# Requiring this package breaks the app
composer require symfony/proxy-manager-bridge
Gives the following output
* Creating a new Symfony 4.4.x@dev project with Composer
(running /usr/bin/composer create-project symfony/skeleton reproducer-proxy-bug 4.4.x@dev)
* Setting up the project under Git version control
(running git init reproducer-proxy-bug)
[OK] Your project is now ready in /home/chris/Projects/reproducer-proxy-bug
Using version dev-master for symfony/orm-pack
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Package operations: 23 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (dev-master 1d32342): Loading from cache
- Installing symfony/stopwatch (4.4.x-dev 3dfa8b3): Loading from cache
- Installing zendframework/zend-code (dev-develop 8003f74): Loading from cache
- Installing ocramius/proxy-manager (2.2.x-dev 4d15474): Loading from cache
- Installing doctrine/event-manager (dev-master e05ae70): Loading from cache
- Installing doctrine/cache (dev-master c29471b): Loading from cache
- Installing doctrine/dbal (dev-master 9ff47e7): Loading from cache
- Installing doctrine/lexer (dev-master 6c4b4c3): Loading from cache
- Installing doctrine/annotations (1.7.x-dev fa4c4e8): Loading from cache
- Installing doctrine/reflection (dev-master 4a97a22): Loading from cache
- Installing doctrine/collections (1.6.x-dev c5e0bc1): Loading from cache
- Installing doctrine/persistence (1.2.x-dev 43526ae): Loading from cache
- Installing doctrine/inflector (1.3.x-dev 45d9b13): Loading from cache
- Installing doctrine/common (dev-master 3773c7b): Loading from cache
- Installing doctrine/migrations (dev-master 50c7d16): Loading from cache
- Installing symfony/doctrine-bridge (4.4.x-dev 6365095): Loading from cache
- Installing doctrine/doctrine-cache-bundle (dev-master c46725e): Loading from cache
- Installing jdorn/sql-formatter (dev-master 7ef9b85): Loading from cache
- Installing doctrine/doctrine-bundle (1.12.x-dev 88e5ac9): Loading from cache
- Installing doctrine/doctrine-migrations-bundle (dev-master 2fa7e62): Loading from cache
- Installing doctrine/instantiator (dev-master 7c71fc2): Loading from cache
- Installing doctrine/orm (2.7.x-dev 9e73672): Loading from cache
- Installing symfony/orm-pack (dev-master 36c2a92): Loading from cache
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Symfony operations: 4 recipes (77c589db09086b98191799482e30ed09)
- Configuring doctrine/annotations (>=1.0): From github.com/symfony/recipes:master
- Configuring doctrine/doctrine-cache-bundle (>=dev-master): From auto-generated recipe
- Configuring doctrine/doctrine-bundle (>=1.6): From github.com/symfony/recipes:master
- Configuring doctrine/doctrine-migrations-bundle (>=1.2): From github.com/symfony/recipes:master
Executing script cache:clear [OK]
Executing script assets:install public [OK]
Some files may have been created or updated to configure your new packages.
Please review, edit and commit them: these files are yours.
Database Configuration
* Modify your DATABASE_URL config in .env
* Configure the driver (mysql) and
server_version (5.7) in config/packages/doctrine.yaml
Restricting packages listed in "symfony/symfony" to "4.4.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Package operations: 1 install, 0 updates, 0 removals
- Installing symfony/proxy-manager-bridge (4.4.x-dev fbba39f): Loading from cache
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! PHP Warning: Uncaught ErrorException: Warning: require(/home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/EntityManager_9a5be93.php): failed to open stream: No such file or directory in /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php:179
!! Stack trace:
!! #0 /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php(179): require()
!! #1 /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php(184): ContainerQEkwsbv\srcApp_KernelDevDebugContainer->load('EntityManager_9...')
!! #2 /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/getDoctrine_Orm_DefaultEntityManagerService.php(18): ContainerQEkwsbv\srcApp_KernelDevDebugContainer->createProxy('EntityManager_9...', Object(Closure))
!! #3 /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php(179): require('/home/chris/Pro...')
!! #4 /home in /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php on line 179
!! PHP Fatal error: ContainerQEkwsbv\srcApp_KernelDevDebugContainer::load(): Failed opening required '/home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/EntityManager_9a5be93.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/chris/Projects/reproducer-proxy-bug/var/cache/dev/ContainerQEkwsbv/srcApp_KernelDevDebugContainer.php on line 179
!!
!! In srcApp_KernelDevDebugContainer.php line 179:
!!
!! Compile Error: ContainerQEkwsbv\srcApp_KernelDevDebugContainer::load(): Fai
!! led opening required '/home/chris/Projects/reproducer-proxy-bug/var/cache/d
!! ev/ContainerQEkwsbv/EntityManager_9a5be93.php' (include_path='.:/usr/share/
!! pear:/usr/share/php')
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json to its original content.
Possible Solution
Additional context
Some added context as I am also running into this problem.
Symfony version(s) affected: 4.4.x-dev
Description
An empty Symfony 4.4.-x dev project with orm-pack and
symfony/proxy-manager-bridge
fails to boot due to a missing file.How to reproduce
Gives the following output
Possible Solution
Additional context
Some added context as I am also running into this problem.
symfony/proxy-manager-bridge
however I suspect the issue could be insymfony/dependency-injection
. Perhaps related to commit c893986 and PR [DI] Allow dumping the container in one file instead of many files #32581 .EntityManager_9a5be93.php
is being generatedEntityManager_9a5be93.php
is NOT being generated\dirname(__DIR__,.php
is attempted to be created insteadPerhaps something is going wrong in
\Symfony\Component\DependencyInjection\Dumper\PhpDumper::generateProxyClasses
? Seesymfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Line 483 in 876cec7
It returns an array like this:
Workaround
I can work around the issue by adding the following to my
App\Kernel
:The text was updated successfully, but these errors were encountered: