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
 Refactor and Intellisense not working on some .h
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mjx
New Member

France
5 Posts

Posted - Nov 23 2012 :  09:43:36 AM  Show Profile  Reply with Quote
Hello,

we use libraries from a provider. It is stored in /root/libv1/... and there is many frameworks underneath.

In VS2008 we set in Tools/Option/VC++ Directories/Include files the root for those includes.

Then in Visual Assist, it works well on some project but on other Visual Assist does not recognize some or all classes coming from those includes, like they are not parsed. Not intellisense as well.
And if I try refactor on some line like:
ClassesFromIncludes myobject;
Visual Assist does not even propose to add ClassesFromIncludes as include or so.

What can I do to fix such behavior ?
thanks

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 23 2012 :  2:05:31 PM  Show Profile  Reply with Quote
If I understand your case correctly, the problems here is that Visual Assist X or intellisense did not parse the files yet thus cannot provide assistance.

Visual Assist parses the files in 4 ways:
1. Files that are in your project / solution
2. Include files that are in an opened cpp or header file
3. System files (like <vector>) as per a pre-defined list of files
4. If you tick the following option, VA parses all files in a directory upon opening a file from it:

VA Options -> Projects -> File handling -> ... if solution is not empty

This 4. is the closest but it only applies files that were opened directly, not just indirectly parsed files via include directives.
So one option is to tick this box and open a file from the library. But this wouldn't be very convenient.
Another is to add the library headers to your project.

The most convenient way would be to specify the directory which VA should pre-parse and this is something we are considering doing at some point:

case=21519

Anyway, this problem should only affect "Add Include" command. Once you included the file all other features (including refactoring commands) should work. In fact, once the file is included (thus parsed) Add Include should also work in other files.
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