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
 Document Method disabled?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hyzerfool
New Member

4 Posts

Posted - Jul 13 2017 :  12:44:09 PM  Show Profile  Reply with Quote
How do I get Document Method to be enabled? Doesn't work from hotkey, shows as disabled on popup. I'm putting the cursor on the function name each time (have tried various places, in case that was the issue).

I've searched through the VA options to see if I have something off that shouldn't be (by the way, would be very helpful to have a Type to Filter on those options).



The only mentions I see of problems like this on this forum, one was fixed by the user simply putting the cursor on the function name. The other is from 2008 so presumably any software problems from then have been long fixed.

What am I doing wrong?

hyzerfool
New Member

4 Posts

Posted - Jul 13 2017 :  12:53:13 PM  Show Profile  Reply with Quote
Just noticed that if I try this on the function declaration (in the header), then it does give me the option. Of course, it then builds the function comment in the header file, where I don't want it... but thought it might help someone understand what's going wrong.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 13 2017 :  1:17:26 PM  Show Profile  Reply with Quote
That's not what is supposed to happen.

Which IDE and version of VA are you using?

If you look at VA Outline or the Alt-m list for one of the cpp files where this is happening, does everything appear correct? I am wondering if VA is confused about the structure of your cpp file, that might help to explain what is happening here.

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

hyzerfool
New Member

4 Posts

Posted - Jul 13 2017 :  1:29:46 PM  Show Profile  Reply with Quote
Am using Visual Studio 2013

Here are version #'s from the about box:

VA_X.dll file version 10.9.2217.0 built 2017.04.26
DevEnv.exe version 12.0.40629.0 Professional
msenv.dll version 12.0.40629.0
Comctl32.dll version 6.10.10240.17184
Windows 8.1 6.3 Build 9600
12 processors (x86-64, WOW64)
Language info: 1252, 0x409


If I do alt+m the methods listed look correct...

... wait. Except the function I'm trying to document does NOT show up on that list. It is a new function (obviously, since I'm trying to document it).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 13 2017 :  1:38:25 PM  Show Profile  Reply with Quote
If you move to another function, one that is included in the alt-m list, is Document Method offered here as expected? Hopefully it is.

At a guess the error / problem comes from the function above the new function. Is there a mismatched curly bracket, or a missing semi-colon?

Since VA parses inside #if blocks, something like this, which does compile, can confuse VA:

void mismatchedBracketsFunction()
{
#if 0
    {
        {
#endif
}

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

hyzerfool
New Member

4 Posts

Posted - Jul 13 2017 :  1:47:57 PM  Show Profile  Reply with Quote
If I try it for the first function in the file, Document Method does show up. So we'll chalk it up to something funky there in the middle, which will presumably be worked out by the time I'm done with this code. I'll shout if it doesn't fix itself.

Thanks for the help.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 13 2017 :  4:46:29 PM  Show Profile  Reply with Quote
One good test is to see if the code compiles. This often throws up the sort of subtle problem that can cause this sort of problem with our parser. We try to recover when we get confused, but it sometimes takes a little while.

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