egeloen / IvoryCKEditorBundle

Provides a CKEditor integration for your Symfony project.
MIT License
336 stars 114 forks source link

Error in Ivory\\CKEditorBundle\\Composer\\CKEditorScriptHandler::install #347

Closed ghettovoice closed 6 years ago

ghettovoice commented 6 years ago

Hello! I'm having an issue with composer script handler

> Ivory\CKEditorBundle\Composer\CKEditorScriptHandler::install

 [RuntimeException]                                                                                                                                                                                                                                         
  An error occurred when executing the "'ckeditor:install'" command:                                                                                                                                                                                         

  ----------------------                                                                                                                                                                                                                                     
  | CKEditor Installer |                                                                                                                                                                                                                                     
  ----------------------                                                                                                                                                                                                                                     

  In QuestionHelper.php line 53:                                                                                                                                                                                                                             

    Notice: Undefined index: Drop the directory & reinstall CKEditor                                                                                                                                                                                         

  ckeditor:install [--release [RELEASE]] [--tag [TAG]] [--clear [CLEAR]] [--exclude [EXCLUDE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<path>]  

And seems like the bug is here https://github.com/egeloen/IvoryCKEditorBundle/blob/master/Command/CKEditorInstallerCommand.php#L323. As I understand the constructor of ChoiceQuestion accepts key of default choice, not the value. Or I misunderstood something?

I' using

Thanks

rampmaster commented 6 years ago

drop vendor folder and reinstall

ghettovoice commented 6 years ago

I added "ckeditor-clear": "drop" to composer "extra" section to avoid look up for default choice option.

COil commented 6 years ago

@ghettovoice how did you found this setting?

ghettovoice commented 6 years ago

Sorry, forgot to add link. Look here http://symfony.com/doc/master/bundles/IvoryCKEditorBundle/usage/ckeditor.html#clear-previous-installation

COil commented 6 years ago

Thank you, close the ticket please. :smiley: