Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Alt+O to switch to corresponding file only in proj

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
yngwe Posted - May 15 2011 : 08:13:32 AM
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)
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 23 2011 : 09:21:23 AM
I am glad this is now working correctly for you, thank you for the update.
yngwe Posted - May 21 2011 : 04:56:06 AM
I was using 1827 and got the issue. I switched to 1845 and the problem disappeared :)
sean Posted - May 20 2011 : 3:17:33 PM
Are all of the files actually listed in the OFIS dialog?
feline Posted - May 20 2011 : 12:48:40 PM
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.
yngwe Posted - May 20 2011 : 06:14:11 AM
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?
feline Posted - May 16 2011 : 2:26:32 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000