These are chat archives for symfony2admingenerator/GeneratorBundle

11th
Dec 2014
ioleo
@ioleo
Dec 11 2014 11:02
hi @sescandell I've just installed vagrant and I'll be attemting to install the demo project :)
i hope it's as easy as vagrant up ... :P
ioleo
@ioleo
Dec 11 2014 11:07
and the first problem is... ubuntu 14.04 has vagrant 1.4 while 1.6 is needed... ehh:P
ioleo
@ioleo
Dec 11 2014 11:19
all rite, vagrant 1.7.0 installed :>
now virtualbox :>
ioleo
@ioleo
Dec 11 2014 11:32
mhmm vangrant is installing boxes :)
Stéphane
@sescandell
Dec 11 2014 11:39
hi Loostro
there is an error in my initiization script
i'm ging to push a fix
I'm going to eat
and be back there
ioleo
@ioleo
Dec 11 2014 11:39
oki
i did vagrant up
but since it's a clean install
it is still downloading the boxes
also its a very good idea with vagrant box :)
Stéphane
@sescandell
Dec 11 2014 11:41
pushed
ioleo
@ioleo
Dec 11 2014 11:42
thx
about #58 , this is not AdminLTE related i think? i'll try to get into this today, but first i want to see the AdminLTE theme :)
ioleo
@ioleo
Dec 11 2014 12:41
hmm "It appears your machine doesn't support NFS, or there is not an..."
Stéphane
@sescandell
Dec 11 2014 12:45
Yes I think it is a Core bug ... ot a Theme one
But I still have to fix the following :
Scopes design
Excel list action button design
Pagination integration when there is no filters and only one page
I think I'll make them tonight
ioleo
@ioleo
Dec 11 2014 12:46
ok
i solved another error by installing nfs-common and nfs-kernel-server
it seems its installing properly
Stéphane
@sescandell
Dec 11 2014 12:48
oh yes, you're under Linux... so you had to make nfs working first....
ioleo
@ioleo
Dec 11 2014 12:48
ok a lot of "loading..." messages...
like ==> default: Info: Loading facts in /tmp/vagrant-puppet-3/modules-0/stdlib/lib/facter/root_home.rb
Stéphane
@sescandell
Dec 11 2014 12:48
yes
VM is provisionning
ioleo
@ioleo
Dec 11 2014 12:49
(it my first time useing vagrant, im a bit excited)
Stéphane
@sescandell
Dec 11 2014 12:49
(Pupet is installing for you everything)
ioleo
@ioleo
Dec 11 2014 12:49
i see its written in ruby?
all those files end with .rb
Stéphane
@sescandell
Dec 11 2014 12:50
you were not cnstraint to use it if you "just" wanted to check the branch
Yes, if I'm not wrong Vagrant is based on Ruby
and puppet..... I'm not sure
ioleo
@ioleo
Dec 11 2014 12:50
i like to learn
i heard about puppet a year ago on symfony warsaw
but had no time to check it oput
Stéphane
@sescandell
Dec 11 2014 12:51
it's great... But I think I'll merge to Ansible... I have to test it... I also planned to give a look to Docker
not merge but "move to"
We also have an error in this demo with the JMS bundle
cache initialization is not working with the CLI
I'll take a look about that later
ioleo
@ioleo
Dec 11 2014 12:55
JMS is throwing (on cache-clear) errors randomly
just make another cache-clear if it fails
i've reported it here schmittjoh/JMSSecurityExtraBundle#177
Stéphane
@sescandell
Dec 11 2014 12:57
It's exactly that error
ioleo
@ioleo
Dec 11 2014 12:58
i just bumped that issue
vagrant takes a lot of time..
Stéphane
@sescandell
Dec 11 2014 13:02
The first time yes
next it will be quick
ioleo
@ioleo
Dec 11 2014 13:02
ah, good
Stéphane
@sescandell
Dec 11 2014 13:03
I hope you'll not have some issues with Ubuntu and NFS
ioleo
@ioleo
Dec 11 2014 13:03
about yesterday - the meeteing ended with me singning a contract for the next year
Stéphane
@sescandell
Dec 11 2014 13:03
On one of my computers, it's very slow and I had to move nfs to something else...

"about yesterday - the meeteing ended with me singning a contract for the next year"

Yes !!! Good for you!

ioleo
@ioleo
Dec 11 2014 13:03
which makes me safe in terms of money for the next year
thats why i could not leave it heheh:)
(and thats why im so happy about everything :P )
o
a lot of downloading messages
i think composer is running
in the box
Stéphane
@sescandell
Dec 11 2014 13:09

i think composer is running
in the box

Yes, it is

ioleo
@ioleo
Dec 11 2014 13:09
hmm its stuck on something :P
probably symfony/symfony dependencies
Stéphane
@sescandell
Dec 11 2014 13:10
hmmmm... I think you have th same issue I had with my Ubuntu
nfs is very slow... let's see if it succeed or not
ioleo
@ioleo
Dec 11 2014 13:11
well there is no error message
it just last output is "Downloading 100%" and it has not changed for 1 song (aka 5 minutes) :P
Stéphane
@sescandell
Dec 11 2014 13:11
If you see things are slow, will try to move to the vfs protocol
ioleo
@ioleo
Dec 11 2014 13:14
also earlier i had 2 red messages
This message was deleted
Stéphane
@sescandell
Dec 11 2014 13:14
ok, not important
ioleo
@ioleo
Dec 11 2014 13:14
oo
something moved :)
Stéphane
@sescandell
Dec 11 2014 13:15
It's strange it is so slow
I already had time to destroy mine
and make it runnng again
ioleo
@ioleo
Dec 11 2014 13:15
hmm
==> default: Waiting for cleanup before exiting...
i think i had accidentally clicked Ctrl + C
Stéphane
@sescandell
Dec 11 2014 13:15
:D
Fail!!
ioleo
@ioleo
Dec 11 2014 13:16
ahh
i wanted t COPY :D
the red message
what a fail :D
Exiting immediately, without cleanup!
how do i cleanup?
Stéphane
@sescandell
Dec 11 2014 13:17
let's try vagrant halt && vagrant up --provision
ioleo
@ioleo
Dec 11 2014 13:19
haha
vagrant half :D
another fail
Stéphane
@sescandell
Dec 11 2014 13:19
I think you need to rest :D
ioleo
@ioleo
Dec 11 2014 13:20
i am rested :P i dont know im just to much in hurry :P
Stéphane
@sescandell
Dec 11 2014 13:22
we also will have to take a decision about nested list
it's a subject I left from AdminLTE migration
I just adapted the layout but didn't really manage "actions"
(like protecting the root node, adding any drag and drop or not, neither filters management on nested lists)
ioleo
@ioleo
Dec 11 2014 13:26
i think the "protected root" should probably be dropped
and instead the JS "move" should validate if you're moveing within the same "root tree"
(and do not allow moveing between trees)
Stéphane
@sescandell
Dec 11 2014 13:27
yes, when I say "protecting the root node" I was more thinking about server side protection and not display it in the DOM on client side
ioleo
@ioleo
Dec 11 2014 13:33
ok its again at composer
Stéphane
@sescandell
Dec 11 2014 13:34
it's too long...
ioleo
@ioleo
Dec 11 2014 13:34
(with the --provision option)
Stéphane
@sescandell
Dec 11 2014 13:34
will next time try to move on vboxfs (or default) mount option
ioleo
@ioleo
Dec 11 2014 13:34
it may be my computers fault
Stéphane
@sescandell
Dec 11 2014 13:34
Or check why NFS is sometimes not efficient
as I told you I also one day encountered this issue
ioleo
@ioleo
Dec 11 2014 13:35
i have my /home/loostro symlinked to /media/Storage/Profile/Ubuntu/loostro
and under /media/Storage i have an NTFS drive mounted
(which i see both from linux and windows)
maybe the symlink is makeing things slower?
or the fact, that its NTFS?
Stéphane
@sescandell
Dec 11 2014 13:38
I don't think because of a symlink it is slower
because of NTFS.... Actually I don't know :)
ioleo
@ioleo
Dec 11 2014 13:44
hmm
seems stuck again
at ==> default: - Installing symfony/symfony (v2.6.1)
==> default: Loading from cache
maybe the composer resolver is so slow?
manageing the dependency tree?
Stéphane
@sescandell
Dec 11 2014 13:48
could you try to update the config.yaml file into the puphpet directory
look for the sync_folder entry
and change the sync_type param by
default
ioleo
@ioleo
Dec 11 2014 13:49
its installing
i mean
Stéphane
@sescandell
Dec 11 2014 13:50
if it is too slow
ioleo
@ioleo
Dec 11 2014 13:50
it moved
Stéphane
@sescandell
Dec 11 2014 13:50
you can try that
(maybe one day yu'll see the AdmiLTE template :D)
ioleo
@ioleo
Dec 11 2014 13:50
i want it for christmas! :P
Stéphane
@sescandell
Dec 11 2014 13:50
it's okay for that
ioleo
@ioleo
Dec 11 2014 13:51
well actually it would be nice to see it today, coz tomorrow i need to do math excercises :P
Stéphane
@sescandell
Dec 11 2014 13:52
You can also take a look here:
ioleo
@ioleo
Dec 11 2014 13:59
YES
"Read above" :D
and 2 happy elephants :P
Stéphane
@sescandell
Dec 11 2014 13:59
yeah
now you just have to eit your hosts file
(/etc/hosts)
and add the following :
ioleo
@ioleo
Dec 11 2014 14:00
and what to add?
Stéphane
@sescandell
Dec 11 2014 14:00
192.168.56.105 www.generator.dev

for information:
To connect to the VM : vagrant ssh
To Stop the VM : vagrant halt
To wakeup the VM : vagrant up

But now next vagrant up will just wake up the VM and everything will be ready

(no installation process ...)
ioleo
@ioleo
Dec 11 2014 14:02
hm
stil something is wrong
Warning: require_once(/var/www/web/../var/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/web/app_dev.php on line 21
Fatal error: require_once(): Failed opening required '/var/www/web/../var/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web/app_dev.php on line 21
Stéphane
@sescandell
Dec 11 2014 14:03
...
ioleo
@ioleo
Dec 11 2014 14:03
btw is the virtual machine installed somewhere so i can browse it? or only through ssh?
Stéphane
@sescandell
Dec 11 2014 14:04
only through ssh
it's a no GUI install
ioleo
@ioleo
Dec 11 2014 14:04
fine with me
Stéphane
@sescandell
Dec 11 2014 14:04
if you open VirtualBox you will see it listed
but you only can connect through CLI
something to know is that
the /var/www directory into the VM is a mounted directory to your current directory
ioleo
@ioleo
Dec 11 2014 14:05
hmm
i sshed into the box
then /var/www
i see the project there
but php app/console cache:clear -e=dev does not work
the app/console is not there
Stéphane
@sescandell
Dec 11 2014 14:05
because I'm not using app/console
but bin/console
sf3 scaffolding
ioleo
@ioleo
Dec 11 2014 14:06
ah oki
Stéphane
@sescandell
Dec 11 2014 14:06
there is an alias
in the VM : sf
it calls php bin/console for you
ioleo
@ioleo
Dec 11 2014 14:06
k
the cache:clear has the same error as in the browser
Stéphane
@sescandell
Dec 11 2014 14:07
try a composer install
ioleo
@ioleo
Dec 11 2014 14:07
the bootstrap.php.cache file does not exist in /var/www/var
Stéphane
@sescandell
Dec 11 2014 14:07
(I though this comes from composer install)
ok nevermind
I'll push it
don't move
ioleo
@ioleo
Dec 11 2014 14:08
kk
so my composer install (in the script) seems to have skipped/failed at creating bootstrap.php.cache
Stéphane
@sescandell
Dec 11 2014 14:08
ahhhh
ioleo
@ioleo
Dec 11 2014 14:08
and yes
Stéphane
@sescandell
Dec 11 2014 14:09
that's interesting
ioleo
@ioleo
Dec 11 2014 14:09
its red in the output
of vagrant up
Stéphane
@sescandell
Dec 11 2014 14:09
any information why it failed?
ioleo
@ioleo
Dec 11 2014 14:09
red lines:
==> default: PHP Warning: require_once(/var/www/bin/../var/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/bin/console on line 10
==> default: PHP Fatal error: require_once(): Failed opening required '/var/www/bin/../var/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/bin/console on line 10
Stéphane
@sescandell
Dec 11 2014 14:09
I thought bootstrap file was generated by composer
ioleo
@ioleo
Dec 11 2014 14:09
and previous to that
==> default: PHP Fatal error: require_once(): Failed opening required '/var/www/bin/../var/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/bin/console on line 10
Stéphane
@sescandell
Dec 11 2014 14:09
maybe on composer install project...
can you run the composer run-script post-install-cmd comand?
ioleo
@ioleo
Dec 11 2014 14:10
==> default: Now trying to download from dist
==> default: - Installing symfony2admingenerator/generator-bundle (dev-feature-adminlte 7f6c09c)
==> default:
==> default:
==> default: [UnexpectedValueException]
==> default: RecursiveDirectoryIterator::__construct(/var/www/vendor/symfony2admingenerator/generator-bundle/Admingenerator/GeneratorBundle): failed to open dir: No such file or directory
==> default:
==> default:
==> default:
==> default: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Stéphane
@sescandell
Dec 11 2014 14:10
(into the VM)
ok it seems you had some issues with the mounted drive
let's try this:
exit the VM
run vagrant halt
edit the config.yaml file (see above)
then run vagrant up
then vagrant ssh
cdWww
composer install
cacheClearAndAssetsInstall
if it works, will put an information in the documentation
ioleo
@ioleo
Dec 11 2014 14:13
k, changed to sync_type: default
running vagrant up
Stéphane
@sescandell
Dec 11 2014 14:13
if it doesn't... that's sad
ioleo
@ioleo
Dec 11 2014 14:13
its running
Stéphane
@sescandell
Dec 11 2014 14:14
(can we imagine some screen sharing... not now but maybe later or.... ?)
ioleo
@ioleo
Dec 11 2014 14:14
and it took no time almost :)
composer install running
Stéphane
@sescandell
Dec 11 2014 14:16
Wahou
awesome: how to test generated Twig : https://github.com/symfony/symfony/pull/12948/files
ioleo
@ioleo
Dec 11 2014 14:18
this should be very useful :)

Script Admingenerator\GeneratorBundle\Composer\ScriptHandler::installAssets handling the post-install-cmd event terminated with an exception

[ErrorException]
Undefined index: symfony-assets-install

Stéphane
@sescandell
Dec 11 2014 14:22
Yes I know that error
ioleo
@ioleo
Dec 11 2014 14:23
what do i do? ignore it?
Stéphane
@sescandell
Dec 11 2014 14:23
but no worries, the cacheClearAndAssetsInstall will execute bower for you
by the way the current VM doesn't include (yet) uglify... so "prod" is not working
but this is not a GeneratorBundle issue
ioleo
@ioleo
Dec 11 2014 14:24
ok running cacheClearAndAssetsInstall
Stéphane
@sescandell
Dec 11 2014 14:24
it's related to the demo repository
oh no
cancel it
run
initProjectcommand
ioleo
@ioleo
Dec 11 2014 14:24
(running away...)
Stéphane
@sescandell
Dec 11 2014 14:24
I'm stupid... my mistake
ioleo
@ioleo
Dec 11 2014 14:25
np it didnt finish cache clear yet :P
so.. the vagrant box uses the project directory
Stéphane
@sescandell
Dec 11 2014 14:26
yes
ioleo
@ioleo
Dec 11 2014 14:26
or it "copies" it ?
Stéphane
@sescandell
Dec 11 2014 14:26
no it's a mounted drive
ioleo
@ioleo
Dec 11 2014 14:26
ok
Stéphane
@sescandell
Dec 11 2014 14:27
so all changes made in you computer are immediately applied in the VM
ioleo
@ioleo
Dec 11 2014 14:27
cool
:)
Stéphane
@sescandell
Dec 11 2014 14:27
you can so develop and tst without doing anything
ioleo
@ioleo
Dec 11 2014 14:27
actually i will copy your script
and move my projects into boxes
seems like a very good idea
not installing thousands of software on the host
just to "try it out" in a project
Stéphane
@sescandell
Dec 11 2014 14:28
That's what I've done... the best thing I see in this is that my computer have no PHP Redis MySQL Node blablabla and so on
and not speaking about different versions : eveyrhing is in a dedicated VM
ioleo
@ioleo
Dec 11 2014 14:28
what about the client (production)?
do you somehow "ship your VM box" to the prod server?
Stéphane
@sescandell
Dec 11 2014 14:29
Not for now
I know some people do that
But I didn't have enough time to make it possible. And actualy, main of my client are on Microsoft Azure, where, as far as possible, I try to use PaaS services
ioleo
@ioleo
Dec 11 2014 14:30
ah
Stéphane
@sescandell
Dec 11 2014 14:30
so deployment are differnt then my development environment
ioleo
@ioleo
Dec 11 2014 14:30
my clients use their own servers
i've got a few machines for my projects
i think they're just virtual machines set up by some other company for them
Stéphane
@sescandell
Dec 11 2014 14:31
ok
I have some like that
ioleo
@ioleo
Dec 11 2014 14:31
but i dont actually care :P for me i ssh to IP and i am on a ubuntu system
initProject ready
anything else i need to do?

Whoops, looks like something went wrong.

1/1
RuntimeException in ClassCollectionLoader.php line 239:
Failed to write cache file "/tmp/generator/cache/dev/classes.php".

Stéphane
@sescandell
Dec 11 2014 14:34
boring !!!!
sudo chmod -R 777 /tmp/generator
ioleo
@ioleo
Dec 11 2014 14:35
on host?
Stéphane
@sescandell
Dec 11 2014 14:35
(I'll check the VM scripts)
into the VM
"/tmp/generator" is in the VM
ioleo
@ioleo
Dec 11 2014 14:36
yay!
Stéphane
@sescandell
Dec 11 2014 14:36
Is it working?
ioleo
@ioleo
Dec 11 2014 14:38
yes... but... WAIT
no sorry, it's gotta be some bug... it's all FRENCH
;) ;)
xD
Stéphane
@sescandell
Dec 11 2014 14:39
:D
Sorry....
that a good way to check that you can simply change the config file from Your computer
and refresh the page
and tadaaaaa
not the config but the parameters file
ioleo
@ioleo
Dec 11 2014 14:41
the font used for Tableau de bord
i wonder if it supports russian, polish, japanese
etc
Stéphane
@sescandell
Dec 11 2014 14:41
Don't know...
ioleo
@ioleo
Dec 11 2014 14:41
if not, we probably should make it configurable
or at least have a doc entry about it
but anyways
this is gorgeous :)
good job! :D
Stéphane
@sescandell
Dec 11 2014 14:42
Thanks ;)
I also by the way improve DOM and Twig
better classes, more logic
splitting files.....
ioleo
@ioleo
Dec 11 2014 14:43
in general, i think templates need to be well seperated and independent
so we can test them
Stéphane
@sescandell
Dec 11 2014 14:44
Because we can simply render one "block" I think the most important is splitting "blocks" not necessary files
ioleo
@ioleo
Dec 11 2014 14:44
(eg. test security_action.php.twig without rendering the whole Controller)
yes exacly
Stéphane
@sescandell
Dec 11 2014 14:45
But I agree with you
ioleo
@ioleo
Dec 11 2014 14:47
Zrzut ekranu z 2014-12-11 15:46:39.png
some icons are missing
but the font seems to be loaded
Stéphane
@sescandell
Dec 11 2014 14:48
Yes, as I said in my coment
I identified 3 bugs:
Scopes design to do
Excel list action button design
Pagination integration when there is no filters and only one page
ioleo
@ioleo
Dec 11 2014 14:48
ah yes
there are some minor things
Stéphane
@sescandell
Dec 11 2014 14:49
so yes please list them into a comment to the PR
so I don't forget them
Stéphane
@sescandell
Dec 11 2014 15:07
For all things like breadcrumbs and menu builder and so on
I also have thousand ideas
but I think this is "out of the PR"
Probably more like an issue as "enhancement"
could we please stay focus on "AdminLTE migration" iso-functionnal (almost) with legacy ones?
what do you think?
My main goal with this PR is: if you never change anything in your templates, just with one or two config update you can move to AdminLTE
(without havig to create additionnal services and so on)
which is what I've done with the demo repository
That's said : I agree with you, that would be a very good feature... but maybe not for v2.0
(which is priority in my opinion: let's get a Roadmap)
ioleo
@ioleo
Dec 11 2014 15:10
ok
basically
i think this theme is very nice
actually, I love it
apart for some minor things listed in #52 (not all realated to AdminLTE) its good to merge
Stéphane
@sescandell
Dec 11 2014 15:11
Good to read :)
ioleo
@ioleo
Dec 11 2014 15:12
so i am :+1: to merge
just make a "pre-merge" tag (eg beta.25)
and "after-merge" tag (beta.26)
Stéphane
@sescandell
Dec 11 2014 15:13
I'll do
ioleo
@ioleo
Dec 11 2014 15:14
after you merge, i'll work on updateing the demo project
to include more entities/examples with edge cases (like, list with 20 columns)
Stéphane
@sescandell
Dec 11 2014 15:14
I also have many ideas about the demo project :)
let's try to work with R also on that one, what do you think?
creating first an issue
so everyone (actually you and me) know who is working on what (to avoid overlaps)
ioleo
@ioleo
Dec 11 2014 15:15
ok
created symfony2admingenerator/symfony2-admingenerator-demo-edition#9
Stéphane
@sescandell
Dec 11 2014 15:17
:+1:
ioleo
@ioleo
Dec 11 2014 15:24
ok i think im done with testing :)
good job mate, i'll be definately switching to this theme and i'd like it to be the default for Admingenerator
i gotta go, see you around