Author Topic: the Path X contains too many ".."!  (Read 8228 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
the Path X contains too many ".."!
« 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?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: the Path X contains too many ".."!
« Reply #1 on: January 17, 2006, 05:37:55 pm »
Yes.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: the Path X contains too many ".."!
« Reply #2 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 :)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: the Path X contains too many ".."!
« Reply #3 on: January 17, 2006, 08:06:43 pm »
No, it is a matter of not prepending half a dozen ../ to all paths ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: the Path X contains too many ".."!
« Reply #4 on: January 17, 2006, 10:04:39 pm »
That means you'll fix it? :)

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: the Path X contains too many ".."!
« Reply #5 on: January 18, 2006, 02:13:01 am »
Is that why code completion was crashing on me?
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: the Path X contains too many ".."!
« Reply #6 on: January 18, 2006, 03:14:21 am »
280: I have NO idea.

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: the Path X contains too many ".."!
« Reply #7 on: January 18, 2006, 04:49:26 am »
I get that message pretty often now but not a single crash since the update.  8)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: the Path X contains too many ".."!
« Reply #8 on: January 18, 2006, 08:14:39 am »
Is that why code completion was crashing on me?
No.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: the Path X contains too many ".."!
« Reply #9 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.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool: