These are chat archives for symfony2admingenerator/GeneratorBundle

12th
Dec 2014
ioleo
@ioleo
Dec 12 2014 23:14
@sescandell are you there perhaps?
Stéphane
@sescandell
Dec 12 2014 23:14
yes
ioleo
@ioleo
Dec 12 2014 23:15
after upgrade to tag beta.25 (my fix to QueryFilter) i am getting error
PHP Fatal error: Call to undefined method Admingenerator\GeneratorBundle\Builder\Generator::setTwigExtensions() in /media/Storage/Projekty/prognozy-demo/vendor/symfony2admingenerator/generator-bundle/Admingenerator/GeneratorBundle/Generator/DoctrineGenerator.php on line 51
it's probably caused by beta.24 changes
(before i was useing tag beta.23)
do you have any clues what could be the reason/fix?
Stéphane
@sescandell
Dec 12 2014 23:15
let me check changes in beta.24
Stéphane
@sescandell
Dec 12 2014 23:16
I also have it :)
ioleo
@ioleo
Dec 12 2014 23:17
beta 25 is only this fix symfony2admingenerator/GeneratorBundle@ea14830
Stéphane
@sescandell
Dec 12 2014 23:17
Did you also update the twig/generator lib ?
ioleo
@ioleo
Dec 12 2014 23:18
no i didnt
Stéphane
@sescandell
Dec 12 2014 23:18
maybe this is it...
ioleo
@ioleo
Dec 12 2014 23:18
this is my composer.json require
"require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.5.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.2",
        "twig/extensions": "~1.0",
        "symfony/assetic-bundle": "~2.3",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~3.0",
        "sensio/framework-extra-bundle": "~3.0",
        "incenteev/composer-parameter-handler": "~2.0",
        "symfony2admingenerator/generator-bundle": "v2.0-beta.25",
        "symfony2admingenerator/form-extensions-bundle": "v2.0-beta.9",
        "symfony2admingenerator/user-bundle": "v2.0-beta.1",
        "liuggio/excelbundle": "~2.0",
        "jms/security-extra-bundle": "1.5.*",
        "jms/serializer-bundle": "~0.11",
        "liip/imagine-bundle": "~0.11",
        "vich/uploader-bundle": "dev-master",
        "stof/doctrine-extensions-bundle": "~1.0",
        "doctrine/doctrine-fixtures-bundle": "2.2.*",
        "friendsofsymfony/user-bundle": "~1.3",
        "liip/imagine-bundle": ">= 0.11.0",
        "willdurand/faker-bundle": "dev-master",
        "Trsteel/ckeditor-bundle": "1.4.*",
        "helios-ag/fm-elfinder-bundle": "2.*",
        "oldsound/rabbitmq-bundle": "~1.2.1",
        "icap/html-diff": "1.0.*",
        "luxifer/doctrine-functions": "1.2.3",
        "beberlei/DoctrineExtensions": "~0.1",        
        "behat/behat": "2.5.*@stable",
        "behat/mink": "1.5.*@stable",
        "behat/mink-extension": "*",
        "behat/mink-browserkit-driver": "*",
        "behat/mink-goutte-driver": "*",
        "behat/mink-selenium2-driver": "*",
        "behat/mink-sahi-driver": "*",
        "behat/symfony2-extension": "~1.1.0",
        "phpunit/phpunit": "3.7.*",
        "raveren/kint": "~0.9",
        "cg/kint-bundle": "0.0.2-alpha"
    },
Stéphane
@sescandell
Dec 12 2014 23:18
and moving to the symfony2admingenerator/twig-generator
ioleo
@ioleo
Dec 12 2014 23:20
actually i dont have twig generator, it must be automatically copied from generator-bundle's composer.json
Stéphane
@sescandell
Dec 12 2014 23:20
yes
Do you override any generator or builder in your application?
ioleo
@ioleo
Dec 12 2014 23:21
no
i only override the "generated classes"
when i make changes to admingenerator - i always submit them as PRs (or merge directly) to master branch :)
this is my composer.lock entry
{
            "name": "cedriclombardot/twig-generator",
            "version": "v1.0.0",
            "source": {
                "type": "git",
                "url": "https://github.com/cedriclombardot/TwigGenerator.git",
                "reference": "b4a846956d330ed464070f6276801d16c92ae5c5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/cedriclombardot/TwigGenerator/zipball/b4a846956d330ed464070f6276801d16c92ae5c5",
                "reference": "b4a846956d330ed464070f6276801d16c92ae5c5",
                "shasum": ""
            },
Stéphane
@sescandell
Dec 12 2014 23:23
ok this is not good
you should be on symfony2admingenerator/twig-generator
on version 1.1.4
don't know why it doesn't automatically update your dependency
ioleo
@ioleo
Dec 12 2014 23:24
wait
i have both old and new in /vendors dir
Stéphane
@sescandell
Dec 12 2014 23:25
ah
ioleo
@ioleo
Dec 12 2014 23:25
a few lines below in composer.lock

        {
            "name": "symfony2admingenerator/twig-generator",
            "version": "v1.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony2admingenerator/TwigGenerator.git",
                "reference": "d7765c3b7203cbfa9db793123849dcaae99b7a5e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony2admingenerator/TwigGenerator/zipball/d7765c3b7203cbfa9db793123849dcaae99b7a5e",
                "reference": "d7765c3b7203cbfa9db793123849dcaae99b7a5e",
                "shasum": ""
            },
Stéphane
@sescandell
Dec 12 2014 23:26
ok... you are in a strange state
can you : delete your vendors dir and composer.lock file and run composer install ?
ioleo
@ioleo
Dec 12 2014 23:29
loostro@Earth:~/Projekty/prognozy-demo$ composer depends --link-type=require cedriclombardot/twig-generator
There is no installed package depending on "cedriclombardot/twig-generator".
it seems i just didn't get deleted properly
and i probably have a wrong entry in AppKernel
Stéphane
@sescandell
Dec 12 2014 23:29
"and i probably have a wrong entry in AppKernel"
Good point
ioleo
@ioleo
Dec 12 2014 23:30
actualy its not in appKernel at all
Stéphane
@sescandell
Dec 12 2014 23:30
I just fixed latests issues on adminLte template + ComposerScriptHandler + some other changes
ioleo
@ioleo
Dec 12 2014 23:30
should it be? can you check your project?
do you have TwigGenerator in AppKernel?
Stéphane
@sescandell
Dec 12 2014 23:30
no it should not
it's not a bundle
it's just a library
ioleo
@ioleo
Dec 12 2014 23:31
ah yes
now i deleted the wrong generator
but probably mu bootstrap.cache is still wrong
ok composer dump-autoload didnt help
im removeing the whole vendors then and .lock file as you said
Stéphane
@sescandell
Dec 12 2014 23:34
it usually works :D
ioleo
@ioleo
Dec 12 2014 23:34
im always afraid of removeing the lock file
sometimes "too many" libraries get updates
and i have to update my code to match the changes
Stéphane
@sescandell
Dec 12 2014 23:35
well... it depends how long you didn't update it or if you are on dev
ioleo
@ioleo
Dec 12 2014 23:35
instead of quick fix, i end up 2 days updateing code :P
Stéphane
@sescandell
Dec 12 2014 23:35
:D
Did you try to "just" remove the cedric library form vendors ?
then dumping autoload?
ioleo
@ioleo
Dec 12 2014 23:36
yes
Stéphane
@sescandell
Dec 12 2014 23:36
ok...
ioleo
@ioleo
Dec 12 2014 23:36
i probably shoul've removed it from the lock file too
but now its too late to test that :)
Stéphane
@sescandell
Dec 12 2014 23:36
manually changing the composer.lock is not really good neither
I updated quickly the demo to get connected to the latest version of Symfony and the AdminLte integration
ioleo
@ioleo
Dec 12 2014 23:37
yeah.. we love magic tools... until something goes wrong and we have to understand them :P
i probably need to upgrade to sf2.6 my main project soon
(the one i signed a contract for the next year :P)
Stéphane
@sescandell
Dec 12 2014 23:38
:+1:
I also have some projects to update
ioleo
@ioleo
Dec 12 2014 23:38
and probably change the directories to sf3.0 structure
Stéphane
@sescandell
Dec 12 2014 23:38
but I will not update the admingen :(
too many customizations
ioleo
@ioleo
Dec 12 2014 23:39
i think of updateing my main project
also many customizations
Stéphane
@sescandell
Dec 12 2014 23:39
on server and CSS...
ioleo
@ioleo
Dec 12 2014 23:39
but..
Stéphane
@sescandell
Dec 12 2014 23:39
let me show you how it looks like... you'll imagine I cannot migrate
ioleo
@ioleo
Dec 12 2014 23:39
i think of this as a christmas gift to the company i work for :P
Stéphane
@sescandell
Dec 12 2014 23:39
:D
ioleo
@ioleo
Dec 12 2014 23:42
poor ksn is on deadline
he confessed that in one of the issues
im so happy i have no more deadlines this year ^^
finally a quitet, peacefull christmas :P
Stéphane
@sescandell
Dec 12 2014 23:47
I know what you mean :)