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
 #include not showing directories from Project|Inc?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eddie
New Member

9 Posts

Posted - Apr 01 2005 :  3:56:25 PM  Show Profile
Hello!

I might be doing something wrong, but here's my issue:

I have in my C++ Project a set of include directories set up under "Additional Include Directories".

Say I have the following tree:

root
- include1
- include1Subdir1
- include1Subdir2
- include2
- include2Subdir1
- include2Subdir2

And my 'additional include directories' were set to include1 and include2.

I was hoping (and thought..?) that VA would then let me do the following:

#include "
------------------- // <-- ASCII dropdown. :)
|include1Subdir1/ |
-------------------
|include1Subdir2/ |
|include2Subdir1/ |
|include2Subdir2/ |
-------------------

That is, as soon as I type the first quote, a dropdown would appear, showing the directories and any files underneath it to select from. I was hoping that then, as I was to start typing (say I finished typing 'include1Subdir1/'), it would then show me the contents of THAT directory, etc, etc.

However, it seems to show everything as if it were 'flattened'. i.e., instead of that listing, I get the *contents* of everything in my project, as if it were all in one directory. :(

Have I set something up wrong? I hope this is a simple user error, as I'd love to get this working!

Thanks!

-e-

User information:

Microsoft Developoment Environment 2003 Version 7.1.3088

VA_X.dll file version 10.1.1293.0
Licensed to:
VA X: [email protected] (11-user license) Support ends 2005.12.23
VA.NET 7.1:
VAOpsWin.dll version 1.2.0.4
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:




feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 04 2005 :  2:50:21 PM  Show Profile
first a couple of questions.

do you have the directories:

root
...\\include1\\include1Subdir1
...\\include1\\include1Subdir2

...\\include2\\include2Subdir1
...\\include2\\include2Subdir2

? the drop down suggests this, but it is not clear from the post. the board tends to eat white space unless you use the code tags to format the text.

are you seeing files from inside these subdirectories? when you type #include " you should get a listbox holding both include files AND directories. if you select a directory you can then select files inside that directory in exactly the manor you are expecting.

this sounds like either duplicate include file names or VA is picking up more include paths than you would expect.

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

eddie
New Member

9 Posts

Posted - Apr 04 2005 :  3:20:57 PM  Show Profile
Sorry, the drop-down I drew was supposed to imply what I was *hoping* would show, but does not.

When i type #include ", I see the files and *some* directories, but not all. I don't understand what I'm doing wrong, or how to visually 'debug'. :(
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 04 2005 :  3:34:55 PM  Show Profile
i don't understand the directory structure you have, so i am not following the problem.

is my guess at the directory structure you have correct? if it is, AND if include1\\ and include2\\ are in the search path for the IDE then i would expect VA to offer up subdirectories in either "include1" or "include2" when you drill down into either "include1" or "include2"

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

eddie
New Member

9 Posts

Posted - Apr 04 2005 :  4:36:33 PM  Show Profile
Oh damn, I didn't even verify my post. Of course you can't see my directory structure! The post sucked away my leading spaces!

Let me do it this way, with numbers listing the indent level:

root
1 - include1
2 - include1Subdir1
2 - include1Subdir2
1 - include2
2 - include2Subdir1
2 - include2Subdir2

Unfortunately, the problem is that VA doesn't offer me include1Subdir1 when I drill down to include1/, nor does it offer me the files underneath. :(

(Once again, my include path is set to be include1;include2)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 05 2005 :  3:29:00 PM  Show Profile
using .NET 2003, C++ and VA 1299 i have a test project called "tomato_test" which lives in the directory:

D:\\documents\\src\\tomato_test

inside this i have created the subdirectories:

D:\\documents\\src\\tomato_test\\include1
D:\\documents\\src\\tomato_test\\include1\\include1Subdir1
D:\\documents\\src\\tomato_test\\include1\\include1subdir2

D:\\documents\\src\\tomato_test\\include2
D:\\documents\\src\\tomato_test\\include2\\include2Subdir1
D:\\documents\\src\\tomato_test\\include2\\include2Subdir2

which i believe reflects what you have. since these are all local it removes one variable.

typing:

#include "|"

VA will happily suggest both "include1" and "include2"

if i accept "include1" then the listbox disappears, leaving me with:

#include "include1|"

if i now type "/", to produce:

#include "include1/|"

the listbox reapears, offering me the suggestions "include1Subdir1" and "include1subdir2"

if i accept either of these then the listbox again disappears. again typing "/" causes the listbox to reapear, and it lists the .h files that live in this directory.

can you try the same and let me know what you see?

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

eddie
New Member

9 Posts

Posted - Apr 05 2005 :  3:38:15 PM  Show Profile
Wow. That does seem to work. So I'm not sure why our existing project isn't working.

I supppose I should've realized that my test case doesn't model our exact usage. Apologies.

What we do is actually bury our .sln file at the root of our tree, then have our project files right down by the code. As such, it seems to be confusing Visual Assist, and our list of files is all flattened. :(

Is there documentation anywhere that tells me how Visual Assist looks to assist me, by using directories? i.e., something like, "It looks first in the directory of the solution file, then the projects, then the %INCLUDE% path", or some such, so I can diagnose what's going on here?

Sorry to be so addled, but I'm kinda confused on this one. :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 09 2005 :  3:24:57 PM  Show Profile
you should see the solution we use where i work "simple" is not the word i would use for the directory structure and layout.

i don't know of any document like the one you are asking for. from what i have pieced together from forum posts by support the rules are probably more complex, with a certain amount of heuristic rules at work.

can you find a case that does not work. then manually insert a complete #include line, one that VA does not understand.

next place the caret inside the file name on the #include line and look at the VA wizard bar, Definition field. this should show you the full path to the include file.

also what happens if you use alt_g while the caret is inside the file name?

these two tests should show if VA can find the file at all or not. it could be something about the directories that is simply upsetting the listbox, but not other elements of VA.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000