Thursday, September 4, 2014

Re: DebugKit 3.0 installation

i thought i did, but in the past, updates meant deleting /vendor/cakephp then running composer update to get the newest repo.

So i attempted that again. With no /vendor/cakephp (and also deleted /plugins/DebugKit) i get this:

C:\Sites\kodiakxxxxxxxx.com-cake3>composer update
PHP Fatal error:  Class 'Cake\Composer\Installer\PluginInstaller' not found in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Plugin/PluginManager.php on line 235

Fatal error: Class 'Cake\Composer\Installer\PluginInstaller' not found in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Plugin/PluginManager.php on line 235

Oooooookaaayyy, now it needs Cake in order to update Cake?

So i restored /vendor/cakephp. Now DebugKit installs, but to /plugins.
Also, it appeared to want to update the Cake library, but this happened:

  - Updating cakephp/cakephp 3.0.x-dev (0368cbd => b00de78)

  [RuntimeException]
  The .git directory is missing from C:\Sites\kodiakinvestmentsllc.com-cake3\vendor\cakephp\cakephp, see http://getcomposer.org/commit-deps for more information

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

As of now i have /vendor/cakephp/cakephp (with no .git directory), and that's it. No /plugins/DebugKit & no /vendor/cakephp/plugin-installer (that originally installed with DebugKit).

When i try composer update now, i get the missing Class error from above.

i know it's something i did wrong, but after you're done smacking your head on the desk, some help to repair this stuff would be greatly appreciated. :-)
-joe


On Thursday, 4 September 2014 03:18:15 UTC-4, José Lorenzo wrote:
Do you have the latest cakephp 3 code? Debugkit is installing fine for me

On Thursday, September 4, 2014 7:13:31 AM UTC+2, Joe Theuerkauf wrote:
Dumb question # 3,582,697:

Why is composer installing DebugKit (3.0.*-dev) to /plugins rather than /Plugin?

When i follow the idiot-simple (and i should know!) instructions for the DK3 branch, i end up with this:

Fatal error:  Uncaught exception 'Cake\Core\Exception\MissingPluginException' with message 'Plugin DebugKit could not be found.' 
in C:\Sites\kodiakinvestmentsllc.com-cake3\vendor\cakephp\cakephp\src\Core\Plugin.php:140 Stack trace: #0 C:\Sites\kodiakinvestmentsllc.com-cake3\App\Config\bootstrap.php(99): Cake\Core\Plugin::load('DebugKit', Array) #1 C:\Sites\kodiakinvestmentsllc.com-cake3\webroot\index.php(27): require('C:\\Sites\\kodiak...') #2 {main} thrown in
<b>C:\Sites\kodiakinvestmentsllc.com-cake3\vendor\cakephp\cakephp\src\Core\Plugin.php</b> on line <b>140</b><br />

To me that looks like Cake is trying to load plugins exclusively from /Plugin.

i know the 3.0 work is just getting underway now that Cake 3 beta is out. i'm sure this is something simple i'm missing. i gotta stop trying to be productive at 1am.

Thanks.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: