Hi Jose,

i am on 2.0.0-beta

I downloaded again just now and tried it again without the debug_kit
plugin.  Same result.

i'm trying to fiddle about with debug statements, but not getting
far.

The $matches array for that first missing index ('tag') is:

########## DEBUG ##########
Array
(
    [0] => <error>Notice Error:</error>
    [1] => error
    [2] => Notice Error:
    [3] => error
)

###########################

which dosn't look good. Looking up at whats calling this function,

return preg_replace_callback(
                        '/<(?<tag>[a-z0-9-_]+)>(?<text>.*?)<\/(\1)>/ims', 
array($this,
'_replaceTags'), $text
                );
where $text is

<error>Notice Error:</error> Undefined index:  tag in [/Users/
willbarker/Dropbox/elip/lib/Cake/Console/ConsoleOutput.php, line 197]

Obviously if i amend my styleText function to just dish out the $text
as it is fed it, i get something quite passable,

Welcome to CakePHP v2.0.0-beta Console</info>
---------------------------------------------------------------
App : app
Path: /Users/willbarker/dropbox/elip/app/
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
<question>What would you like to Bake?</question> (D/M/V/C/P/F/T/Q)


and the < question > tags etc are ok.  But all this makes me wonder
whats up with my set up.

Thanks for checking this for me. its sort of working with the hacked
ConsoleOutput.php, but I'd be interested in getting to the bottom of
it still.  It makes me wonder what could be up with my setup?

will




On Aug 16, 1:17 am, José Lorenzo <jose....@gmail.com> wrote:
> I am on the same setup as you are, and just ran the command as you described
> without any errors. Can you confirm you have the latest 2.0 code?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to