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
 VAX and custom build system.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ClementVidal
New Member

2 Posts

Posted - Jun 18 2012 :  06:24:18 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
19179 Posts

Posted - Jun 18 2012 :  10:31:19 AM  Show Profile  Reply with Quote
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.

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

ClementVidal
New Member

2 Posts

Posted - Jun 19 2012 :  04:00:03 AM  Show Profile  Reply with Quote
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 ?


Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 19 2012 :  06:51:31 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19179 Posts

Posted - Jun 19 2012 :  2:14:32 PM  Show Profile  Reply with Quote
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.

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