Closed netun0 closed 11 years ago
Thanks for reporting! I'll try to fix it.
I created a new nbm for testing. Please try to test it.
https://bitbucket.org/junichi11/cakephp-netbeans/downloads org-cakephp-netbeans-0.9.1.1-for-testing-issue51.nbm
Works like a charm for almost all and from Bdd, Bdd.init works nicely, just two errors in spec and story from Bdd plugin.
Thks so much.
####################### ONE
App : app
PHP Fatal error: Class 'Behat\Behat\Console\BehatApplication' not found in /Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/StoryShell.php on line 27 PHP Stack trace: PHP 1. {main}() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:0 PHP 2. ShellDispatcher::run() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:37 PHP 3. ShellDispatcher->dispatch() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:68 PHP 4. Shell->runCommand() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:200 PHP 5. StoryShell->main() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/Shell.php:392
Fatal error: Class 'Behat\Behat\Console\BehatApplication' not found in /Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/StoryShell.php on line 27
Call Stack: 0.0002 639872 1. {main}() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:0 0.0009 807760 2. ShellDispatcher::run() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:37 0.0195 4387376 3. ShellDispatcher->dispatch() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:68 0.0230 5197736 4. Shell->runCommand() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:200 0.0269 6193184 5. StoryShell->main() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/Shell.php:392
Fatal Error Error: Class 'Behat\Behat\Console\BehatApplication' not found in [/Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/StoryShell.php, line 27]
####################### TWO
Warning Error: require_once(Console/CommandLine/Result.php): failed to open stream: No such file or directory in [/Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/SpecShell.php, line 8]
PHP Fatal error: require_once(): Failed opening required 'Console/CommandLine/Result.php' (include_path='/Users/guilhermesantos/NetBeansProjects/6Stars/lib:.:/Users/guilhermesantos/pear/share/pear') in /Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/SpecShell.php on line 8 PHP Stack trace: PHP 1. {main}() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:0 PHP 2. ShellDispatcher::run() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:37 PHP 3. ShellDispatcher->dispatch() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:68 PHP 4. ShellDispatcher->_getShell() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:190 PHP 5. class_exists() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:240 PHP 6. App::load() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:0 PHP 7. include() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Core/App.php:547
Fatal error: require_once(): Failed opening required 'Console/CommandLine/Result.php' (include_path='/Users/guilhermesantos/NetBeansProjects/6Stars/lib:.:/Users/guilhermesantos/pear/share/pear') in /Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/SpecShell.php on line 8
Call Stack: 0.0002 639872 1. {main}() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:0 0.0008 807760 2. ShellDispatcher::run() /Users/guilhermesantos/NetBeansProjects/6Stars/app/Console/cake.php:37 0.0141 4387376 3. ShellDispatcher->dispatch() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:68 0.0141 4387400 4. ShellDispatcher->_getShell() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:190 0.0141 4389640 5. class_exists() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:240 0.0141 4390184 6. App::load() /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Console/ShellDispatcher.php:0 0.0144 4509512 7. include('/Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/SpecShell.php') /Users/guilhermesantos/NetBeansProjects/6Stars/lib/Cake/Core/App.php:547
Fatal Error Error: require_once(): Failed opening required 'Console/CommandLine/Result.php' (include_path='/Users/guilhermesantos/NetBeansProjects/6Stars/lib:.:/Users/guilhermesantos/pear/share/pear') in [/Users/guilhermesantos/NetBeansProjects/6Stars/app/Plugin/Bdd/Console/Command/SpecShell.php, line 8]
Umm, I'm not sure whether it is cakephp netbeans plugin's problem. If you can reproduce it on CLI (not NetBeans run command: e.g. cmd.exe, terminal), it is not this plugin's problem. Please try it.
yes, you got it, cheers!
@netun0 Those are not problems for cakehp-netbeans plugin. Perhaps, there are two problems.
'default' => array()
// e.g. plugins/Bdd/Console/Command/SpecShell.php
$parser->addOption(
'groups',
array(
'short' => 'g',
'help' => 'run only this group (csv)',
// 'default' => array()
)
);
HTH, Junichi
It's okay.
I'm using Mac OSX Lion, Netbeans 7.3.1, after installed the plugin and created my first project it works until I close the IDE and reopen, then it doesn't show the commands anymore, just a message: "Project's Cake script is not valid".
Appeared in the log:
WARNING [org.cakephp.netbeans.commands.CakeScript]: Not found cake WARNING [org.netbeans.modules.options.TabbedController]: Subcategory CakePhp not found. WARNING [org.cakephp.netbeans.commands.CakeScript]: Not found cake
Thanks
Please check your Console directory. (app/Console) Does exist the directory?
yes, app/Console is there. If I create a new cakePHP project the command start to work again to all projects including the old one, until close and reopen Netbeans then it doesn't work and begins showing the error.
I can't reproduce it yet. Could you submit it as a new issue?
Junichi, it's working now. I forgot to check "Use the relative path to the CakePHP directory (...)"
Thanks
OK :+1:
Hi, Amazing plugin, just note.
All the plugins installed doesn't work in the cakephp project command interface.
*plugin's installed in the app/plugin folder.
teste/app/Console/cake.php Bdd.bdd.init Error: Shell class Bdd.initShell could not be found.
0 /Users/guilhermesantos/NetBeansProjects/teste/lib/Cake/Console/ShellDispatcher.php(190): ShellDispatcher->_getShell('Bdd.bdd.init')
1 /Users/guilhermesantos/NetBeansProjects/teste/lib/Cake/Console/ShellDispatcher.php(68): ShellDispatcher->dispatch()
2 /Users/guilhermesantos/NetBeansProjects/teste/app/Console/cake.php(37): ShellDispatcher::run(Array)
3 {main}
Done.