-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
cake script not valid #54
Comments
Hi Lukas, Could you try to check whether Thanks, |
Hay Junichi, Thank you for your help, |
Hi Lukas, I see. Your directory structure is not what I assumed... I assumed following directory structure: So, plugin is looking at not I'll improve configurations for project properties as enhancement.(next or later) Thanks, |
@sakulstra Please set app directory path from project directory to project properties. nbm for testinghttps://bitbucket.org/junichi11/cakephp-netbeans/downloads |
Hello Junichi, I already tested, if it's cause my cakeversion, but when i:
My settings for this setup: Thanks, |
Hello Lukas, I run your steps but I can't reproduce it. Perhaps, Warning means that Console/cake.php doesn't exist, but I'm not sure this cause... Thanks, |
Hi Lukas,
What does mean this?
Please also check the following: Thanks, |
I see. Probably, I guess that you don't set timezone in php.ini. (or you can set it to app/Config/core.php) Thanks, |
Hay, The error is the same: |
Please try to run the following command with CLI (not plugin): |
Umm, usually, we can get result like this : <?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> If there are no xml elements, this is CakePHP's problem. But I also used the same as your version... |
File encoding of your cake project is UTF-8, isn't it? |
Hay, <?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> properties-> encoding is set to utf-8 |
It's not this. Please check with other editor or terminal. e.g. |
i checked /Console/cake.php -> nobomb |
Thanks for checking it!
I think that xml file created by plugin has problem. Can you run command with /path/to/cakephp project? (i.e. project created by you with plugin at first) |
ahrg ... sorry |
Okay 👍 Thanks, |
Hay there,
i've some similar Problem like this:
#32
we've setup our dev-server with this file structure:
/var/www/cakeroot
/var/www/app1
/var/www/app2
...
so, when we try to create an php project with existing sources we have to set our path for apps with this configuration:
app Project path: "/"
Cakephp directory: "../cakeroot"
-> when i do this the cake symbol appears at the project in sidebar like it should
but when trying to "generate code"
Warning: Project's Cake script is not valid.(Cake script must be selected.)
Error: Cake script must be selected.
appears.
Using:
cakephp 2.3.10
netbeans 7.3.1
Thank you,
Lukas
The text was updated successfully, but these errors were encountered: