CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

[LogicExpceptiion] "env" already exists #165

Open chaseconey opened 10 years ago

chaseconey commented 10 years ago

Trying to run php artisan assets:generate produces an error that I can't seem to resolve.

Full error:

[LogicException]                       
  An option named "env" already exists.

I have no problem running ANY other artisan command (Jeffrey Way generators, all built in commands, and even a custom built command). I have tried specifying local, development, and production as environments and nothing seems to work.

Any ideas?

Thanks

kdocki commented 10 years ago

@chaseconey the assets:generate command is not working correctly at the moment but I have not seen this error before...

Bodom78 commented 10 years ago

Setting up asset-pipeline for the first time and I too got the same error.

salilbhattarai commented 10 years ago

i have the same error.. is no one responding?

kdocki commented 10 years ago

Don't run assets:generate ... it isn't working properly yet. If you are setting up asset pipeline then you will want to use assets:setup

pvos commented 10 years ago

Problem persists instead using assets:setup :+1:

dyachoksa commented 10 years ago

You don't need to manually add the 'env' option to the AssetsGenerateCommand command.

Comment or delete line

array('env', 'e', InputOption::VALUE_OPTIONAL, 'What environment should we generate assets for? Default: production', 'production'),

in AssetsGenerateCommand.php