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

The command defined in "NunoMaduro\Patrol\Commands\InspectCommand" cannot have an empty name. #14

Open
jleonardolemos opened this issue Apr 10, 2024 · 2 comments

Comments

@jleonardolemos
Copy link

I just installed patrol and i am getting this error:

/var/www/app $ ./vendor/bin/patrol
PHP Fatal error:  Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "NunoMaduro\Patrol\Commands\InspectCommand" cannot have an empty name. in /var/www/app/vendor/symfony/console/Application.php:535
Stack trace:
#0 /var/www/app/vendor/nunomaduro/patrol/bin/patrol(30): Symfony\Component\Console\Application->add()
#1 /var/www/app/vendor/nunomaduro/patrol/bin/patrol(36): {closure}()
#2 /var/www/app/vendor/bin/patrol(119): include('...')
#3 {main}
  thrown in /var/www/app/vendor/symfony/console/Application.php on line 535
/var/www/app $ ./vendor/bin/patrol
PHP Fatal error:  Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "NunoMaduro\Patrol\Commands\InspectCommand" cannot have an empty name. in /var/www/app/vendor/symfony/console/Application.php:535
Stack trace:
#0 /var/www/app/vendor/nunomaduro/patrol/bin/patrol(30): Symfony\Component\Console\Application->add()
#1 /var/www/app/vendor/nunomaduro/patrol/bin/patrol(36): {closure}()
#2 /var/www/app/vendor/bin/patrol(119): include('...')
#3 {main}
  thrown in /var/www/app/vendor/symfony/console/Application.php on line 535

This is my aplication overview in my local environment

  Environment ..............................................................................................................  
  Application Name ................................................................................................. Laravel  
  Laravel Version ................................................................................................... 11.3.1  
  PHP Version ........................................................................................................ 8.3.0  
  Composer Version ................................................................................................... 2.6.5  
  Environment ........................................................................................................ local  
  Debug Mode ....................................................................................................... ENABLED  
  URL ............................................................................................................ localhost  
  Maintenance Mode ..................................................................................................... OFF  

  Cache ....................................................................................................................  
  Config ........................................................................................................ NOT CACHED  
  Events ........................................................................................................ NOT CACHED  
  Routes ........................................................................................................ NOT CACHED  
  Views ............................................................................................................. CACHED  

  Drivers ..................................................................................................................  
  Broadcasting ......................................................................................................... log  
  Cache ............................................................................................................... file  
  Database ........................................................................................................... mysql  
  Logs ....................................................................................................... stack / daily  
  Mail ................................................................................................................ smtp  
  Queue ............................................................................................................... sync  
  Session ............................................................................................................. file  

  Pulse ....................................................................................................................  
  Enabled .......................................................................................................... ENABLED  
  Version .................................................................................................... v1.0.0-beta16  

  Livewire .................................................................................................................  
  Livewire ......................................................................................................... v3.4.10  

  Sentry ...................................................................................................................  
  Enabled ...................................................................................................... MISSING DSN  
  Environment ........................................................................................................ local  
  Laravel SDK Version ................................................................................................ 4.4.1  
  PHP SDK Version .................................................................................................... 4.7.0  
  Release .......................................................................................................... NOT SET  
  Sample Rate Errors .................................................................................................. 100%  
  Sample Rate Performance Monitoring ............................................................................... NOT SET  
  Sample Rate Profiling ............................................................................................ NOT SET  
  Send Default PII ................................................................................................ DISABLED 

I was able to get the command working adding the $this->setName(self::$defaultName) call inside InspectCommand::configure()
I just dont PR because i dont know if it is the best way to fix the problem.

@ya-cha
Copy link

ya-cha commented Apr 11, 2024

+1. We're getting this error while upgrading to Laravel 11.

@nicci296
Copy link

Same here. Fix appreciated

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

3 participants