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
 Feature Requests
 Alt+O to switch to corresponding file only in proj
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yngwe
New Member

3 Posts

Posted - May 15 2011 :  08:13:32 AM  Show Profile  Reply with Quote
Alt+O can decide to list files with similar names in various projects of the solution. Chances are, if there is a corresponding file, it will be in the same project.
I have issues when Alt+O lists too many file names (files like "context.cpp", "manager.cpp", "stdafx.h" or similar are just a pain)

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 16 2011 :  2:26:32 PM  Show Profile  Reply with Quote
Where you have this problem, perhaps for "context.cpp", can you make sure that all instances of "context.cpp" and "context.h" are closed, and then look in VA's Open File dialog, Alt-Shift-O, and filter it to show "context." files. Do you have an even or an odd number of files?

The number of files matching the filter is shown in the title bar, it is the first of the two numbers.

If VA finds an even number of files then it tries to pair them up, so that Alt-O goes directly to the matching file without having to ask you which file you want. You should only get a menu of files to pick from if VA cannot pair up the files automatically.

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

yngwe
New Member

3 Posts

Posted - May 20 2011 :  06:14:11 AM  Show Profile  Reply with Quote
I tried with two files and I got the same result: VA is unable to get the correct file.
I have this setup: a project that has an include directory and a source directory.
In include/loaders/mesh there is meshloader.script.hh
in src/loaders/mesh there is meshloader.script.cc

Another project has exactly the same setup.

A third project should have exactly the same setup later.

So right now I have two meshloader.script.cc in two projects, and two meshloader.script.hh which correspond, in the same projects as the .cc (although ot in the same directory)


VA fails to pair them.
More complicated setups fail as well (pairing stdafx.h with the stdafx.cpp in the same projects)

it could be that they are in the same projects but in different folders maybe? it should be like:
*+- is there a file in the same folder?
if no => is there a file in the same project?
if no => is there a file in the solution?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 20 2011 :  12:48:40 PM  Show Profile  Reply with Quote
VA should correctly handle this situation, I have a similar test case here and alt-o is working as expected.

Which IDE and version of VA are you using?

Can you post the full paths of the two pairs of files, I can then try to set up a similar test here.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 20 2011 :  3:17:33 PM  Show Profile  Reply with Quote
Are all of the files actually listed in the OFIS dialog?
Go to Top of Page

yngwe
New Member

3 Posts

Posted - May 21 2011 :  04:56:06 AM  Show Profile  Reply with Quote
I was using 1827 and got the issue. I switched to 1845 and the problem disappeared :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 23 2011 :  09:21:23 AM  Show Profile  Reply with Quote
I am glad this is now working correctly for you, thank you for the update.

zen is the art of being at one with the two'ness
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