Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Document Method disabled?

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
hyzerfool Posted - Jul 13 2017 : 12:44:09 PM
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?
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 13 2017 : 4:46:29 PM
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.
hyzerfool Posted - Jul 13 2017 : 1:47:57 PM
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.
feline Posted - Jul 13 2017 : 1:38:25 PM
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
}
hyzerfool Posted - Jul 13 2017 : 1:29:46 PM
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).
feline Posted - Jul 13 2017 : 1:17:26 PM
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.
hyzerfool Posted - Jul 13 2017 : 12:53:13 PM
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.

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