hdy.brackets-shell icon indicating copy to clipboard operation
hdy.brackets-shell copied to clipboard

Runtime exception too many arguments laravel

Open darkcyber opened this issue 10 years ago • 8 comments

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.

darkcyber avatar Dec 26 '14 14:12 darkcyber

This I'll have to look into

johnhidey avatar Dec 26 '14 15:12 johnhidey

Thanks, for the respons :D

darkcyber avatar Dec 27 '14 06:12 darkcyber

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"

johnhidey avatar Dec 29 '14 19:12 johnhidey

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 avatar Dec 30 '14 03:12 darkcyber

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.

darkcyber avatar Dec 30 '14 13:12 darkcyber

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.

johnhidey avatar Dec 30 '14 13:12 johnhidey

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

Cmd

darkcyber avatar Dec 31 '14 08:12 darkcyber

Sorry, wrong click. issue still open. thanks.

darkcyber avatar Dec 31 '14 08:12 darkcyber