T O P I C R E V I E W |
jhoffmann |
Posted - Nov 05 2009 : 10:43:47 AM I'm using Visual Studio 2005 with a non-Windows C++ development plugin, which does not appear to use the standard project files and does not support the builtin assist / code snippet functions.
VAX seems to work out of the box for the most part. However, I had to change the VS default search directories to include my code directories for the Open Document option when right clicking on include file to work - switching to custom directories did not work.
Also, the goto definiation / goto declaration option on classes do not work: I get a symbol not defined dialog. Code assist does work with the classes.
Currently I have VAX configured to use the custom directories.
Any thoughts on whether or not I can get the goto def / dec options working? |
5 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - May 25 2010 : 1:06:42 PM For the registry, I would suggest the following outline for a script / batch file. This assumes that all instances of the IDE are closed.
Assuming you have two sets of custom directories that you need to swap between, first prepare them. Edit the VA custom directory list so you have list 1.
Restart the IDE and load solution 1 so VA rebuilds its symbol database. When this has finished close the IDE, and then find and rename the directory:
C:\\Documents and Settings\\ USERNAME \\Local Settings\\Application Data\\VisualAssist\ perhaps to "VA-custom1"
Now load the IDE again, set the custom directories to set 2, restart the IDE and load solution 2. VA will recreate the missing directory, and populate it with the symbol database for custom directory list 2.
Close the IDE and rename this newly created directory to "VA-custom2"
Now the script file can first edit the registry, perhaps by simply importing a .reg file, or by manipulating the keys directly, and setting the keys in:
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet\\Custom\ so they are the directories for custom list 1.
Then rename the directories, so that "VA-custom1" becomes "VisualAssist"
Then load the IDE and the matching solution, I would recommend passing the solution as a parameter to the IDE, so that you will always have the correct solution open, to match the current VA symbol database and registry keys.
I hope this is clear. I have never actually done this myself, but the principle is sensible. You will just have to add some sanity checks to the script, to handle the directory you want already being in place.
|
fspafford |
Posted - May 24 2010 : 6:29:13 PM I am not sure how to answer the first question.
I am interested in the registry workaround. (I believe I used that approach before the custom directories feature was added, but that was at a previous job.)
|
feline |
Posted - May 20 2010 : 6:37:42 PM Are you able to use project specific additional include directories instead of stable include directories here?
One possible work around is to use a script file to change the registry before loading the IDE. VA's stable include directories are stored in the registry, but if you do this without deleting / syncronising VA's symbol database.
So you could rename VA's symbol database directory, swapping between two or three different stored directories, and set the registry key to match. Then have the script load the IDE and the matching solution. I can go into a bit more detail of this idea if it sounds helpful. |
fspafford |
Posted - May 20 2010 : 3:07:05 PM I do cross system development and need the ability to define more than 1 set of custom directories. Could this be added as an enhancement?
In the meantime, do you have any suggested workarounds?
My version:
VA_X.dll file version 10.6.1822.0 built 2010.04.22 DevEnv.exe version 7.10.6030.0 msenv.dll version 7.10.6030.0 Font: Courier New 16(Pixels) Comctl32.dll version 5.82.2900.5512 Windows XP 5.1 Build 2600 Service Pack 3 2 processors (x86) (I also use Visual Studio 2003)
|
accord |
Posted - Nov 05 2009 : 2:32:29 PM "Open document" over an include file, "Go to definition" and "Go to declaration" are Visual Studio features. You can use Alt+G to access these functionalities via Visual Assist.
You mentioned you configured Visual Assist to use your directories. I guess you used:
VA Options -> File handling -> C/C++ Directories
If you do this, make sure that you select the appropriate setting under "show directories for". You should only use "Stable include files" for headers which are change rarely. Select "Other Include files" if you want VA to follow the changes immediately.
You can learn more about this here:
http://www.wholetomato.com/products/features/directories.asp
Visual Assist can parse the files without setting up anything. Read the tooltips over
VA Options -> File handling -> if Solution is empty VA Options -> File handling -> if Solution is not empty
to learn more about this. |
|
|