Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on January 17, 2006, 04:55:14 pm

Title: the Path X contains too many ".."!
Post by: rickg22 on January 17, 2006, 04:55:14 pm
I pinpointed the source for this annoying error.

it's in wxWidgets src/common/filename.cpp

bool wxFileName::Normalize(int flags,
                           const wxString& cwd,
                           wxPathFormat format)
{
...

                if ( m_dirs.IsEmpty() )
                {
                    wxLogError(_("The path '%s' contains too many \"..\"!"),
                               GetFullPath().c_str());
                    return FALSE;
                }

}

Apparently this is an error that should've been taken care of (i.e. if it returns false, is because something's wrong), why do we end up with paths above the root directory? :-S And do the normalizations work in these cases or what?
Title: Re: the Path X contains too many ".."!
Post by: thomas on January 17, 2006, 05:37:55 pm
Yes.
Title: Re: the Path X contains too many ".."!
Post by: rickg22 on January 17, 2006, 07:37:19 pm
So if they work it's safe to ignore the message, right? :) So then it's just matter of adding a null logger to all the normalize calls :)
Title: Re: the Path X contains too many ".."!
Post by: thomas on January 17, 2006, 08:06:43 pm
No, it is a matter of not prepending half a dozen ../ to all paths ;)
Title: Re: the Path X contains too many ".."!
Post by: rickg22 on January 17, 2006, 10:04:39 pm
That means you'll fix it? :)
Title: Re: the Path X contains too many ".."!
Post by: 280Z28 on January 18, 2006, 02:13:01 am
Is that why code completion was crashing on me?
Title: Re: the Path X contains too many ".."!
Post by: rickg22 on January 18, 2006, 03:14:21 am
280: I have NO idea.
Title: Re: the Path X contains too many ".."!
Post by: 280Z28 on January 18, 2006, 04:49:26 am
I get that message pretty often now but not a single crash since the update.  8)
Title: Re: the Path X contains too many ".."!
Post by: thomas on January 18, 2006, 08:14:39 am
Is that why code completion was crashing on me?
No.
Title: Re: the Path X contains too many ".."!
Post by: 280Z28 on January 18, 2006, 04:33:35 pm
Is that why code completion was crashing on me?
No.

I guess I'll go back through things like my toolbar addition and see if I missed something in the switch to wxAUI or something. Although I haven't had any problems for a while now. Maybe it working now is the result of some bug fix that just wasn't affecting anyone else in this way.