-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Weird Class name #17
Comments
@BarthyB I was working on that exactly now. See composer/composer#5237 and #16 If you can please look at your bash logs and reproduce the error precisely, that would be awesome to isolate and reproduce composer/composer#5237 |
I did nothing else than requiring another package
in Symfony this triggers methods like:
And it's exaclty during clearCache that it throws the RuntimeException mentioned above. |
Do you have a |
(zip because .json & .lock are not supported by GitHub) |
Reproduced the issue. I had to edit the {
"name": "barthy/mwb",
"license": "proprietary",
"type": "project",
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"symfony/assetic-bundle": "^2.7",
"vich/uploader-bundle": "^1.0",
"symfony/translation": "^2.8",
"javiereguiluz/easyadmin-bundle": "^1.12",
"egeloen/ckeditor-bundle": "^4.0",
"twig/extensions": "^1.3",
"nikic/php-parser": "0.9.*",
"jms/translation-bundle": "1.1.*",
"jms/i18n-routing-bundle": "^2.0",
"jms/di-extra-bundle": "^1.7",
"friendsofsymfony/user-bundle": "~2.0@dev",
"friendsofsymfony/jsrouting-bundle": "^1.6"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7"
},
"minimum-stability": "stable"
} Then running
Then the generated <?php
namespace PackageVersions;
/**
* This class is generated by ocramius/package-versions, specifically by
* @see \PackageVersions\Installer
*
* This file is overwritten at every run of `composer install` or `composer update`.
*/
final class Versions_composer_tmp0
{
const VERSIONS = array (
'doctrine/annotations' => 'v1.2.7@f25c8aab83e0c3e976fd7d19875f198ccf2f7535',
'doctrine/cache' => 'v1.6.0@f8af318d14bdb0eff0336795b428b547bd39ccb6',
'doctrine/collections' => 'v1.3.0@6c1e4eef75f310ea1b3e30945e9f06e652128b8a',
'doctrine/common' => 'v2.6.1@a579557bc689580c19fee4e27487a67fe60defc0',
'doctrine/dbal' => 'v2.5.4@abbdfd1cff43a7b99d027af3be709bc8fc7d4769',
'doctrine/doctrine-bundle' => '1.6.2@e9c2ccf573b59b7cea566390f34254fed3c20ed9',
'doctrine/doctrine-cache-bundle' => '1.3.0@18c600a9b82f6454d2e81ca4957cdd56a1cf3504',
'doctrine/inflector' => 'v1.1.0@90b2128806bfde671b6952ab8bea493942c1fdae',
'doctrine/instantiator' => '1.0.5@8e884e78f9f0eb1329e445619e04456e64d8051d',
'doctrine/lexer' => 'v1.0.1@83893c552fd2045dd78aef794c31e694c37c0b8c',
'doctrine/orm' => 'v2.5.4@bc4ddbfb0114cb33438cc811c9a740d8aa304aab',
'egeloen/ckeditor-bundle' => '4.0.3@161f680774103468e24f8c5f56a8f22e7a2bfa21',
'egeloen/json-builder' => '2.0.1@c6afb2c53ac1070144d5d3330d5f86567b132d23',
'friendsofsymfony/jsrouting-bundle' => '1.6.0@2f52d924692647db02bbcb27c159fef03bf000c9',
'friendsofsymfony/user-bundle' => 'dev-master@16b04c49af05dd3fb381e4abe04f0e5e231ac76d',
'incenteev/composer-parameter-handler' => 'v2.1.2@d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc',
'ircmaxell/password-compat' => 'v1.0.4@5c5cde8822a69545767f7c7f3058cb15ff84614c',
'javiereguiluz/easyadmin-bundle' => 'v1.12.6@4009d0536b74db049fa241315634e51cb010c4fc',
'jdorn/sql-formatter' => 'v1.2.17@64990d96e0959dff8e059dfcdc1af130728d92bc',
'jms/aop-bundle' => '1.2.0@78000d007e74283cc564a58e184d7f62548ad394',
'jms/cg' => '1.1.0@0af1113c7409b8636c5244bbae10b2e0ff792e9c',
'jms/di-extra-bundle' => '1.7.1@27c3fc7150550ccc0731290b2c1ceb57449f909d',
'jms/i18n-routing-bundle' => '2.0.0@9e87d4da564069ffe67234c4326e138236519fc2',
'jms/metadata' => '1.5.1@22b72455559a25777cfd28c4ffda81ff7639f353',
'jms/translation-bundle' => '1.1.0@6f03035a38badaf8c48767c7664c3196df1eebdf',
'kriswallsmith/assetic' => 'v1.3.2@9928f7c4ad98b234e3559d1049abd13387f86db5',
'monolog/monolog' => '1.19.0@5f56ed5212dc509c8dc8caeba2715732abb32dbf',
'nikic/php-parser' => 'v0.9.1@b1cc9ce676b4350b23d0fafc8244d08eee2fe287',
'ocramius/package-versions' => '1.0.3@a108adf44c4663bfb72858ea2fcd174acddd317e',
'ocramius/proxy-manager' => '2.0.1@6c89b7bd6039d8047b1473e2074cb56baa4bc15d',
'oneup/uploader-bundle' => '1.5.0@f5acda92ea3d6aa482408d1ef65a69f46efb3802',
'pagerfanta/pagerfanta' => 'v1.0.3@a874d3612d954dcbbb49e5ffe178890918fb76fb',
'paragonie/random_compat' => 'v1.4.1@c7e26a21ba357863de030f0b9e701c7d04593774',
'psr/log' => '1.0.0@fe0936ee26643249e916849d48e3a51d5f5e278b',
'sensio/distribution-bundle' => 'v5.0.5@3a160355bb1364da55ed9e415c1aa1fa8d457b6f',
'sensio/framework-extra-bundle' => 'v3.0.16@507a15f56fa7699f6cc8c2c7de4080b19ce22546',
'sensiolabs/security-checker' => 'v3.0.2@21696b0daa731064c23cfb694c60a2584a7b6e93',
'swiftmailer/swiftmailer' => 'v5.4.1@0697e6aa65c83edf97bb0f23d8763f94e3f11421',
'symfony/assetic-bundle' => 'v2.8.0@aa5b4f8b712f38745928fa845ddb73300bb2af6d',
'symfony/monolog-bundle' => '2.11.1@e7caf4936c7be82bc6d68df87f1d23a0d5bf6e00',
'symfony/polyfill-apcu' => 'v1.1.1@0c901e4e65a2f7ece68f0fd249b56d6ad3adc214',
'symfony/polyfill-intl-icu' => 'v1.1.1@8328069d9f5322f0e7b3c3518485acfdc94c3942',
'symfony/polyfill-mbstring' => 'v1.1.1@1289d16209491b584839022f29257ad859b8532d',
'symfony/polyfill-php54' => 'v1.1.1@9ba741ca01c77282ecf5796c2c1d667f03454ffb',
'symfony/polyfill-php55' => 'v1.1.1@b4f3f07d91702f8f926339fc4fcf81671d8c27e6',
'symfony/polyfill-php56' => 'v1.1.1@4d891fff050101a53a4caabb03277284942d1ad9',
'symfony/polyfill-php70' => 'v1.1.1@386c1be9cad3ab531425211919e78c37971be4ce',
'symfony/polyfill-util' => 'v1.1.1@8de62801aa12bc4dfcf85eef5d21981ae7bb3cc4',
'symfony/security-acl' => 'v2.8.0@4a3f7327ad215242c78f6564ad4ea6d2db1b8347',
'symfony/swiftmailer-bundle' => 'v2.3.11@5e1a90f28213231ceee19c953bbebc5b5b95c690',
'symfony/symfony' => 'v2.8.4@9e14f9f4869c19188a376eab61d9a1c1f1fee347',
'twig/extensions' => 'v1.3.0@449e3c8a9ffad7c2479c7864557275a32b037499',
'twig/twig' => 'v1.24.0@3e5aa30ebfbafd5951fb1b01e338e1800ce7e0e8',
'vich/uploader-bundle' => '1.0.1@85300145a610b3a087a1f5de5e2d31dce4556eab',
'willdurand/jsonp-callback-validator' => 'v1.1.0@1a7d388bb521959e612ef50c5c7b1691b097e909',
'zendframework/zend-code' => '3.0.1@09405eb04b7199733219cbf1f0803883a7bab842',
'zendframework/zend-eventmanager' => '3.0.1@5c80bdee0e952be112dcec0968bad770082c3a6e',
'gregwar/cache' => 'v1.0.10@0a1a02e4943e95f491b3d2395609247385975622',
'gregwar/image' => 'v2.0.20@2c6bf2fb3b0eb844f0568d6ee55eeb86fc799414',
'sensio/generator-bundle' => 'v3.0.6@ac91535054d025937d897d78ebb5fc2da5e955a4',
'symfony/phpunit-bridge' => 'v2.8.4@a967db6a4cd5d276cf849d01b29dba559e149978',
'barthy/mwb' => 'dev-workaround/composer/composer#5237-class-parsing@083846658edac9dbdaaf22811caf395491a353c0',
);
private function __construct()
{
}
/**
* @throws \OutOfBoundsException if a version cannot be located
*/
public static function getVersion(string $packageName) : string
{
if (! isset(self::VERSIONS[$packageName])) {
throw new \OutOfBoundsException(
'Required package "' . $packageName . '" is not installed: cannot detect its version'
);
}
return self::VERSIONS[$packageName];
}
} |
B̝u̸̫͓ͅg͖̬̗̘͈s̯̖͚͔ ̛i͕n̖̟̪ ̯̖ṛ̲̮͡e͖͕g̤̠̻̬ẹx̺-͓̘͕͟b̫̜̭͙̀a̵̮̺͍s҉͎e̜̖͠d͕͍͍̺̙̼̙ ̳̗̖̬̜còḓ̢̟͇̯̼ḙ͈ ̧͔̤̪̫s̫ca̸͇̘̩̮n̶̥̝̮̠̩n̫͉̯͜e͉̦͙̝̤r̫s̕ |
Findings reported at composer/composer#5237 (comment) - meanwhile, I will release a workaround. |
Hello,
When using
composer update
orcomposer install
theVersions
class is created like it should in my project (Symfony 2.8) except for one thing:The class is called
Versions_composer_tmp0
This breaks the entire project as Smyfony's autoloader can't find the class.
The text was updated successfully, but these errors were encountered: