junichi11 / cakephp-netbeans

CakePHP support in NetBeans
http://cakephp.org
71 stars 18 forks source link

No command available only on WIn 7 #102

Closed cameleonhelp closed 10 years ago

cameleonhelp commented 10 years ago

Netbeans version 8.0 OS : Windows 7 x64 Cakephp : 2.4.7 Cakephp Plugin : 12.3

timezone is define in php.ini and config/core.php

When i try to run command in netbeans there is no command available In the log IDE of netbeans i found these lines WARNING [org.openide.filesystems.Ordering]: Found same position 900 for both Projects/org-netbeans-modules-php-phpproject/Actions/org-cakephp-netbeans-basercms-ui-actions-BaserCmsActionMenu.shadow and Projects/org-netbeans-modules-php-phpproject/Actions/sep-3.instance WARNING [org.cakephp.netbeans.commands.CakeScript]: error is occurred when xml file is created for command list.

When i try to run command cake command_list --xml

These is the return <?xml version="1.0"?> '<'shells'>' '<'shell name="acl" call_as="acl" provider="CORE" help="acl -h"/'>' '<'shell name="api" call_as="api" provider="CORE" help="api -h"/'>' '<'shell name="bake" call_as="bake" provider="CORE" help="bake -h"/'>' '<'shell name="command_list" call_as="command_list" provider="CORE" help="command_list -h"/'>' '<'shell name="console" call_as="console" provider="CORE" help="console -h"/'>' '<'shell name="i18n" call_as="i18n" provider="CORE" help="i18n -h"/'>' '<'shell name="schema" call_as="schema" provider="CORE" help="schema -h"/'>' '<'shell name="server" call_as="server" provider="CORE" help="server -h"/'>' '<'shell name="test" call_as="test" provider="CORE" help="test -h"/'>''<'shell name="testsuite" call_as="testsuite" provider="CORE" help="testsuite -h"/'>' '<'shell name="upgrade" call_as="upgrade" provider="CORE" help="upgrade -h"/'>' '<'/shells'>'

When i try whith the same code and web localhost (same php.ini) with my mac there is no error and i can run the command.

cameleonhelp commented 10 years ago

No problem with Cakephp 2.5.0 RC1 as you can see in screen shot 2014-04-24_111801

junichi11 commented 10 years ago

I can't reproduce that in my environment...

cake102_1

Did you change file encoding?

junichi11 commented 10 years ago

'<'shells'>'

Is this correct? or <shells> ?

cameleonhelp commented 10 years ago

To show it in the comment i have to put '<'shells'>' but in the correct syntaxe is it' < shells > with no space File encoding for my web site is UTF-8, but with Cakephp 2.5.0 RC1 it's always UTF-8 Where do you want me to change another encoding ? In NB ? No it's the english version for my mac capture d ecran 2014-04-25 15 51 58 and for my Windows 2014-04-25_155107

junichi11 commented 10 years ago

I see. Probably, I think that this is not plugin's problem. Please try to check whether file encoding is changed and try to create cake2.4.7 as new project.

cameleonhelp commented 10 years ago

I modified the file CacheEngine.php in release 2.4.7 but it seems to be encoded as the version 2.5.0

cameleonhelp commented 10 years ago

It works with version 2.5.0 so we can close this issue. this problem might be due to an encoding error as you say