October update 2.x -> 3.x plugin disapear

I have my own created plugin after update to OC3 framework doesnt see my plugin

  • when i set app_debug=true i see in logs: Plugin mkinternet\cms\Plugin could not be instantiated.
  • when i ser app_debug=false no error in logs appear
  • my other plugins works
  • plugin.yaml exist
  • php artisan plugin:install Mkinternet.Cms returns "Package not found
  • php artisan plugin:enable Mkinternet.Cms returns [ERROR] Unable to find plugin ‘Mkinternet.Cms’
  • php artisan create:plugin Mkinternet.Cms returns
    Process halted! This file already exists: \xxx\public_html\plugins/mkinternet/cms/Plugin.php

Really strange

  • fully deleted plugin
  • created sucsessfully empty with php artisan create:plugin Mkinternet.Cms
  • plugin is disabled in plugins list
  • enabled plugin with php artisan plugin:enable Mkinternet.Cms
  • on plugins list i see Plugin has missing dependencies or disabled by system.

I found the problem.

In registerNavigation() definend array had missed coma.

I wonder why Octobercms didn’t return syntax error here:

public function registerNavigation(){
		return [
			'cms' => [
				'label'       => 'CMS ',
				'url'         => Backend::url('mkinternet/cms/url'),
				'icon'        => 'icon-car',
				'order'       => 520,
				'roles' => ['developer'] //missed coma
				'sideMenu' => []
				],
			];
}

I checked int boot() and i also cannot produce syntax error backtrace.

by default, invalid plugin may not break whole cms, right? that’s why plugin is not loaded, or is loaded but not showing in navigation… thats correct behaviour