Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception 'BadMethodCallException' with message 'Call to undefined method [package]' #139

Closed
Kandown opened this issue Dec 9, 2014 · 7 comments

Comments

@Kandown
Copy link

Kandown commented Dec 9, 2014

Hi,

I downloaded this feature and i got exception in terminal while "Generating autoload files"

exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /home/vagrant/www/kandown/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:111
Stack trace:
#0 /home/vagrant/www/kandown/vendor/barryvdh/laravel-ide-helper/src/IdeHelperServiceProvider.php(34): Illuminate\Support\ServiceProvider->__call('package', Array)
#1 /home/vagrant/www/kandown/vendor/barryvdh/laravel-ide-helper/src/IdeHelperServiceProvider.php(34): Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider->package('barryvdh/larave...', 'laravel-ide-hel...', '/home/vagrant/w...')
#2 [internal function]: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider->boot()

...

@christianmagill
Copy link

I get this error as well. I also get it when I try and run php artisan clear-compiled

@barryvdh
Copy link
Owner

L5 is not supported yet.

@Kandown Kandown closed this as completed Dec 11, 2014
@cgrossde
Copy link

Please keep this bug open, support for L5 might come sooner or later and this bug needs to be fixed for that.

@barryvdh
Copy link
Owner

Does f446326 fix this issue?

@cgrossde
Copy link

Whao, that was fast. Yes the initial error is gone and php artisan clear-compiled works now.

But php artisan ide-helper:generate fails:

vagrant@homestead:~/Code/Private/boogie$ php artisan ide-helper:generate
exception 'InvalidArgumentException' with message 'There are no commands defined in the "ide-helper" namespace.' in /home/vagrant/Code/Private/boogie/vendor/symfony/console/Symfony/Component/Console/Application.php:501
Stack trace:
#0 /home/vagrant/Code/Private/boogie/vendor/symfony/console/Symfony/Component/Console/Application.php(535): Symfony\Component\Console\Application->findNamespace('ide-helper')
#1 /home/vagrant/Code/Private/boogie/vendor/symfony/console/Symfony/Component/Console/Application.php(192): Symfony\Component\Console\Application->find('ide-helper:gene...')
#2 /home/vagrant/Code/Private/boogie/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/vagrant/Code/Private/boogie/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/vagrant/Code/Private/boogie/artisan(34): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 {main}

@barryvdh
Copy link
Owner

Did you add the ServiceProvider?

@cgrossde
Copy link

-.- sorry, no. It works fine now. Thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants