Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX and custom build system.

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
ClementVidal Posted - Jun 18 2012 : 06:24:18 AM
Hello,

Because i'm using a custom build system, my visual studio project does not contain any file. It just contain an empty project that call the right build tool.

Because of that VAX does not parse any file of my project. Is there any way to force VAX to parse recursivly a given set of directory and to use the result of this parsing in the various VAX tools such as "Find Symbol" ?

Thanks for your help
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 19 2012 : 2:14:32 PM
If you wanted to try an IDE solution, I am seeing the command:

IDE File menu -> New -> Project From Existing Code...

in VS2005 and VS2008 as well as VS2010, so you might want to have a look depending on which IDE you are using.
accord Posted - Jun 19 2012 : 06:51:31 AM
I've done some quick tests, and yes, as I suspected, the parsed files are indeed saved, since VA saves its symbol databases for any solution, when you exit Visual Studio, and it seems to work with empty solutions and it includes external files as well.

There is a "catch", however: if you open 2 instances of Visual Studio, VA will build a new, separate symbol database for the second instance.

An alternative solution that is not necessarily easy to setup but worth mentioning is to use a tool to build you a "dummy" project file, so you could keep it fresh. There is an opensource project for Visual Studio which does this and also can be used to function as a make-like external build system:

http://www.scons.org/

You can use only the project generation part, skipping its custom build system functionality. You would need to setup scons to include the part in the generated project to "call the right build tool.", though. scons is python based so it can be done.

Probably it would be to much hassle, I just mentioned it on the off chance it helps.
ClementVidal Posted - Jun 19 2012 : 04:00:03 AM
Thanks for the answer,

I don't want to create a dummy solution for two reasons:
First: I'm not using VS2010
Second: This mean that i have to maintain the dummy project and the actual code base in synch every time i add or delete a file, which is quite annoying

Your first tip seam to do the job, but this lead me to an other question:
Suppose i open a file, VAX will parse it and also all the other files in the directory.
For how long the related symbols will be kept in tha VAX database ?
If i close all those files in visual studio those symbols will be removed from the VAX db, i'm i right ?


feline Posted - Jun 18 2012 : 10:31:19 AM
Does turning on:

Upon opening a file, parse all other unparsed files in the same directory:
VA Options -> Projects -> File Handling -> if Solution is empty
VA Options -> Projects -> File Handling -> if Solution is not empty

help at all? This will parse the current directory, as the option names suggest, but it will not parse recursively.

Since your build system does not rely on the solution, can you simply make a "dummy" solution, and add all of the files you want VA to know about to this solution?

VS2010 has the command:

IDE File menu -> New -> Project From Existing Code...

which should help you create a solution fairly quickly and easily. VA will then read this solution file, once it has been saved, and know which files to parse.

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