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

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

Open
bhojkamal opened this issue Sep 20, 2023 · 1 comment
Open

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

bhojkamal opened this issue Sep 20, 2023 · 1 comment
Labels

Comments

@bhojkamal
Copy link

Versions:

  • ide-helper Version: latest
  • Laravel Version: 9.52
  • PHP Version: 8.1.13

Question:

I removed the this package using composer remove barryvdh/laravel-ide-helper. I removed this from composer too.

"extra": {
  "laravel": {
    "dont-discover": [
      "barryvdh/laravel-ide-helper"
    ]
  }
}

I removed Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, from config/app.php too.

I remove following from the AppServiceProvider too.

public function register()
{
    if ($this->app->isLocal()) {
        $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
    }
    // ...
}

I removed _ide_helper.php and _ide_helper_models.php files too.
Still I got the error following error.

[2023-09-20 17:06:33] local.ERROR: There are no commands defined in the "ide-helper" namespace. {"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"ide-helper\" namespace. at /home/kamal/lara-projects/chotkari-app/vendor/symfony/console/Application.php:657)

with more stacktrace lot of lines in couple seconds and my logs file is getting bigger bigger soon.

So What is missing to remove it, Please suggest me. Thanks.

@bhojkamal
Copy link
Author

After doing everything like removing the vendor and composer update and all at last I went vs code setting. on laravel helper, I untick the Helper: Facades and Helper: models, now it stopped the producing that error on my log file. I spent 2 hours to figure it out.

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

No branches or pull requests

1 participant