Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 ALT-O problems with specific file name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TheRawGod
Junior Member

11 Posts

Posted - Aug 12 2007 :  10:34:15 AM  Show Profile  Reply with Quote
Sorry if I'm duplicating the problem report but I've searched the forum and have found only similar problems, like:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6298
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5681
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5561

and maybe

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6374

The problem can be reproduced very easily in my case (VA 1559, VS 2005 SP1 running on XP SP2 box):
1. Create new plain Win32 project and name it for example "proj"
2. Add to that project files named "proj.test.h" and "proj.test.cpp"

That's all. Now pressing ALT-O in either "proj.test.h" or "proj.test.cpp" would suggest me both "proj.h" and "proj.cpp" instead of silently switching to correct file. This is how it looks on my machine (I've also provided the file tree of the project for your reference):

- -

What is interesting is that for "proj.h" and "proj.cpp" ALT-O works properly and if I remove dot (.) from problematic file names (i.e. rename them to "projtest.h" and "projtest.cpp") everything also works as expected, without any problems and wiered suggestions.

Edited by - TheRawGod on Aug 13 2007 05:54:10 AM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 13 2007 :  07:52:08 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=8177

This only happens if there are files in the solution that match the first section of the problem file name, the section before the first dot. If the file names are more unique then alt-o works correctly on files with two dots in their names.

Is there some reason why you are using file names with two dots in them for you code?

zen is the art of being at one with the two'ness
Go to Top of Page

TheRawGod
Junior Member

11 Posts

Posted - Aug 13 2007 :  09:33:59 AM  Show Profile  Reply with Quote
No-no, there are no strong reasons for that.
I just like long file names consisting of more than one word to look like that, with a dot separator between words.
But with the same success I just can use capital letters for file name, like ProjFile.cpp, and it's really acceptable for me.

I accidently found this strange behavior of VA and decided it might be useful to report it.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 13 2007 :  09:40:34 AM  Show Profile  Reply with Quote
That makes sense Personally I use underscores in file names as separators. This works well, and avoids any possible problems due to confusion with multiple dots in file names.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 14 2007 :  02:38:41 AM  Show Profile  Reply with Quote
case=8177 is fixed in Build 1561
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000