johnhidey / hdy.brackets-shell

Brackets extension which give you shell access for both Windows and *nix platforms.
MIT License
35 stars 9 forks source link

Runtime exception too many arguments laravel #41

Open darkcyber opened 9 years ago

darkcyber commented 9 years ago

try execute this command

php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"

and i get runtime exception too many arguments error. but if i execute via cmd its work like a charm. using laravel , and jeffry way's generator.

johnhidey commented 9 years ago

This I'll have to look into

darkcyber commented 9 years ago

Thanks, for the respons :D

johnhidey commented 9 years ago

Can you try issuing your command from the cmd.exe like this for me and let me know if you received the too many arguments error. This is how I execute you command from the brackets shell. I'm trying to see if this is a node issue or a actual command line issue.

cmd.exe /c php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"

darkcyber commented 9 years ago

trying execute your command

cmd.exe /c php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"

and it works, and try my previous command which give error result

php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"

and its work , so i don't know whats going on ? sometimes the command is work sometimes no.

here is the screenshoot

Shell

darkcyber commented 9 years ago

Update

Try to check migration file and no one of the fields parameter in command i was create. so it's like create migration file without --fields parameter.

here is the screenshoot Pict

the file name is the same as my previous picture.

i check all migration file which made by brackets shell command using "cmd.exe /c" or without it. and migration file is blank (without fields) as the picture above.

just trying to imagine it, maybe brackets can't handle --fields parameter correctly.

Thanks alot.

johnhidey commented 9 years ago

Can you try to run this from the windows cmd prompt but when you run it from there use the cmd.exe /c before you command to see if you see the same issue

Let me know.

darkcyber commented 9 years ago

nothing error, here is the screenshoot and migration file successfully created without missing --fields parameter.

Cmd

darkcyber commented 9 years ago

Sorry, wrong click. issue still open. thanks.