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
 Option to compute path from root for includes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rryk
Senior Member

Germany
48 Posts

Posted - Feb 03 2011 :  10:20:23 AM  Show Profile  Reply with Quote
In our project we refer all included files from the root of include folder which is specified in Project Properties -> Configuration Propertiees -> NMake -> Include Search Path. Therefore all included files should look like that:

#include <RTSG/XML3D/Data/XML3DDataEvents.hpp>

Visual Assist however when adding references from a refactoring menu for an unknown symbol ("Add include XML3DDataEvent.hpp") adds them as a relative path:

#include "../Data/XML3DDataEvents.hpp"

which is not desired as source files may travel from one directory to another. Please add an option that allows to use a certain directory as a root for all included files.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 04 2011 :  11:35:46 AM  Show Profile  Reply with Quote
I wasn't able to reproduce the problem here.
Did you happen to restart (all instances of) Visual Studio after you set Project Properties/Configuration Properties/NMake/Include Search Path ?
You may also need to rebuild symbol databases: VA Options -> Performance -> Rebuild symbol databases
If these doesn't help, I will dig deeper to see what might cause the problems for you.
Go to Top of Page

rryk
Senior Member

Germany
48 Posts

Posted - Jul 24 2011 :  10:33:10 AM  Show Profile  Reply with Quote
Somehow this bug is gone on its own :).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Jul 25 2011 :  11:27:18 AM  Show Profile  Reply with Quote
You might find this registry setting helpful, which you can use to force VA to always use #include <> or #include "" lines for Add Include:

http://docs.wholetomato.com?W338

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

rryk
Senior Member

Germany
48 Posts

Posted - Feb 16 2012 :  04:12:58 AM  Show Profile  Reply with Quote
Hi,

The problem is again there. Actually it is not a bug, but rather a feature request. Relatives paths are also correct, but they are less robust. There should just be an option to prefer including files by absolute path using one of the include dirs as a root rather than relative path from the file that include is added to.

P.S. I have created a small test project and tested with it. Apparently for some time it was also including the files using relative path and then changed back to absolute (after several times opening/closing the project). You can find the project here: http://dl.dropbox.com/u/16259710/test_include.7z

Edited by - rryk on Feb 16 2012 04:55:45 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 16 2012 :  5:20:48 PM  Show Profile  Reply with Quote
I think that the following FAQ entry will help you, which has the title "How to stop Add Include using relative paths" which sounds like your solution

http://docs.wholetomato.com?W336

What do you think?
Go to Top of Page

rryk
Senior Member

Germany
48 Posts

Posted - Feb 17 2012 :  09:08:23 AM  Show Profile  Reply with Quote
Thanks. This definitely helps. Can I also force VAX to use full path even for the files that are in the same directory?

Edited by - rryk on Feb 17 2012 09:08:44 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Feb 17 2012 :  4:19:33 PM  Show Profile  Reply with Quote
Why would you want to use the full path even for files that are in the same directory? Are your files being moved around the directory structure this often?

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