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
 Custom "Stable include files" is not saved
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahkow
Senior Member

33 Posts

Posted - Jan 20 2014 :  5:26:39 PM  Show Profile  Reply with Quote
I am using build 2023 and Visual Studio 2012. I have tried numerous time to add entries into "Custom" of "Stable include files", then click "Rebuild" in Performance. But when I restart Visual Studio 2012, the new entries are gone. The specific folders I tried are:

C:\\Qt\\Qt5.2.0\\5.2.0\\msvc2012\\include
C:\\Qt\\Qt5.2.0\\5.2.0\\msvc2012\\include\\QtCore

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 20 2014 :  8:45:25 PM  Show Profile  Reply with Quote
Which OS are you using?

Changing this directory list works fine for me, VS2012, VA 2023, running under Windows 7 64bit.

It almost sounds like you don't have permissions to save your VA settings, or something is overwriting the changes. Do you run more than one instance of the IDE at the same time? If you do, when you close the second instance of the IDE it will save out its VA settings, overwriting the changes made to in the first instance you closed.

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

ahkow
Senior Member

33 Posts

Posted - Jan 21 2014 :  08:36:00 AM  Show Profile  Reply with Quote
Windows 8.1 64-bit. I installed Qt Add-in 1.2.2 (http://qt-project.org/downloads) too.
I am running one instance. The option is saved after I exit VS. I confirmed it through this registry:

HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet11\\Custom\\SystemInclude


But after further checks, I found that VAX will delete the Qt entries when I open a Qt project. This is how I test:
1. Create a new non-Qt application, such as "Win32 Console Application".
2. Add C:\\Qt\\Qt5.2.0\\5.2.0\\msvc2012\\include to "Custom" -> "Stable include files".
3. Click "Rebuild".
4. Restart VS. Load the same project. Open Options and the Qt entry is still there.
5. Create a "Qt Application" project (this project item is added by Qt Add-in).
6. Restart VS. Load the Qt project. Open Options and the Qt entry is gone.

Edited by - ahkow on Jan 21 2014 08:42:03 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 24 2014 :  1:22:50 PM  Show Profile  Reply with Quote
This is very strange. So far I cannot reproduce under Windows 7 64bit, now trying this under Windows 8.1.

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

ahkow
Senior Member

33 Posts

Posted - Jan 24 2014 :  7:50:32 PM  Show Profile  Reply with Quote
I think I found the reason: VAX will remove the custom path if the project's Additional Include Directories contain the custom path or subdirectories of the custom path.

Say I add d:\\test to Custom path. Then add d:\\test to Additional Include Directories. Pressing OK to close the project properties will make VAX remove d:\\test from Custom path. If you add a subdirectory of the custom path, restarting VS and load the project will remove the Custom path.

This happens to all projects, not just Qt projects. It "automatically" happens to Qt projects since Qt Add-in automatically add some Qt include paths to Additional Include Directories.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 24 2014 :  8:10:22 PM  Show Profile  Reply with Quote
Interesting, and thank you for the update. I am not sure why this did not happen in my test, perhaps a problem with my Qt setup.

While a bit of a surprise, this actually makes sense, since additional include directories are handled slightly differently to stable include directories, so you don't want the same directory in both lists at once.

For example, you can set symbols from the stable include directories to be shown in italics, and stable include directories are not expected to change. Additional include directories are often much more fluid and need to be rescanned on a regular basis.

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

ahkow
Senior Member

33 Posts

Posted - Jan 25 2014 :  6:29:47 PM  Show Profile  Reply with Quote
Thanks, the workaround I can see is to change permission for the registry key to prevent VAX from changing them. Then move the directories from the project's Additional Include Directories to VC++ Directories -> Include Directories.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 30 2014 :  10:02:54 PM  Show Profile  Reply with Quote
A simple and effective solution, thank you for posting this Obviously you will have to remember you changed the registry key permissions if and when you need to edit VA's stable include directories, but that should be a fairly rare situation.

I have made a note of this for future reference, since you are unlikely to be the only person who encounters this.

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