+[tc8.5b8 32]: Invalid filename specified!

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dimidimi
Junior Member
Junior Member
Posts: 5
Joined: 2012-07-17, 11:18 UTC

+[tc8.5b8 32]: Invalid filename specified!

Post by *dimidimi »

Hi all!

After installing 'tc8.5b8 32' and upon executing it I get an error message stating:

Code: Select all

Invalid file name specified!
*.*

TRegExprW(comp): ?+*{Follows Nothing (pos 1)
Has anyone run into this?

Thanks
Dimitrios
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You have probably defined a regular expression for a user-defined color, and this regular expression contains an error. Please check in menu Configuration - Options - Colors - Colors by file type.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:You have probably defined a regular expression for a user-defined color, and this regular expression contains an error.
Yes, it looks like a defined file type is used.

A search is performed for *.* with regex enabled. This is not a valid regular expression and no files will be found.

There is no warning when an invalid search is defined. An error is shown when the search is used. Perhaps it's best to show an error in the OnExit event of the editbox where the user types the regular expression.
dimidimi
Junior Member
Junior Member
Posts: 5
Joined: 2012-07-17, 11:18 UTC

[FIXED] [tc8.5b8 32]: Invalid filename specified!

Post by *dimidimi »

Yes, it is a defined type! It is part of a used defined coloring/search scheme I downloaded a few years ago. The offending definitions are the following:

Code: Select all

Chords_SearchFlags=0|000002001020||||||||22220|0000|
Chords_SearchFor\.(crd|gp|gp[2345]|gtp|ptb|tbt|tef)$
Chords-new_SearchFlags=0|000002001020|||3|1||||22220|0000|
Chords-new_SearchFor=\.(crd|gp|gp[2345]|gtp|ptb|tbt|tef)$
Unfortunately I don't know how to fix that, so I excluded the entire part for the [face=courier]ini[/face] file.

Thanks for your help
Dimitrios

Edit: I got it! An equal sign is missing in the second line. Problem fixed. Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will try to show the name of the filter in which the error is, this should make it easier for the user to find it.
Author of Total Commander
https://www.ghisler.com
dimidimi
Junior Member
Junior Member
Posts: 5
Joined: 2012-07-17, 11:18 UTC

Post by *dimidimi »

That would be great! Thanks for taking that into consideration :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have decided to move the check to some other function, so you will not get this message for existing filters (which could be very annoying). Instead, you will get it when trying to save a new filter.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Test OK using TC 8.50b10 32bit.
Post Reply