vsch / laravel-translation-manager

Enhanced Management of Laravel 4 & 5 Translations, with Yandex Translation API assisted translations.
MIT License
181 stars 84 forks source link

There are no commands defined in the "ide-helper" namespace. #143

Open bunsuke06 opened 5 years ago

bunsuke06 commented 5 years ago

I'm new at laravel these are what I use: Laravel : 5.5 php 7.2

I got the error when trying to install laravel-translation-manager (after edite composer.json and composer update ) :

> php artisan clear-compiled                                                    
The compiled services & packages files have been removed.                        
Loading composer repositories with package information                           
Updating dependencies (including require-dev)                                   
 Nothing to install or update                                                     
Generating optimized autoload files                                              
> Illuminate\Foundation\ComposerScripts::postAutoloadDump                        
> @php artisan package:discover                                                  
Discovered Package: anhskohbo/no-captcha                                         
Discovered Package: fideloper/proxy                                              
Discovered Package: laravel/tinker                                               
Discovered Package: laravelcollective/html                                       
Discovered Package: nesbot/carbon                                                
Package manifest generated successfully.

> php artisan ide-helper:generate                                                    
There are no commands defined in the "ide-helper" namespace.  

> php artisan vendor:publish --provider="Vsch\TranslationManager\ManagerServiceP rovider" --tag=public --force    
Copied Directory [\vendor\vsch\laravel-translation-manager\public] To [\public\v endor\laravel-translation-manager]                                               
Publishing complete.
--

I already add ServiceProviders to the providers array in config/app.php

Thank you so much!

vsch commented 5 years ago

@bunsuke06, my bad. I included a line from my configuration for ide-helper package which allows the IDE completions for data models.

I updated the installation wiki to remove the line and you should remove it from your composer file since you do not have the package installed:

            "php artisan ide-helper:generate",

Otherwise, you can ignore the error since it is harmless and has no side-effects other than the error message.