Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1727: IntelliSense problem (function parameters)

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
pk_asw Posted - Jul 12 2009 : 8:16:11 PM
Hello!
[using MSVC 2003]

Here I get incorrect parameters help. Note ending bracket is missing and "Process_CheckForVirtualization" function is the following one in the .cpp file.
quote:



When I write ending bracket, function help is ok:
quote:


Thanks,
Petr
4   L A T E S T    R E P L I E S    (Newest First)
pk_asw Posted - Jul 16 2009 : 5:54:53 PM
Thanks for sharing!

Yes, I don't like the VAX feature that can be used to automatically insert closing brackets.
accord Posted - Jul 16 2009 : 4:30:51 PM
I was able to reproduce the problem, thank you for the example. The solution lies in the order of the functions.
Visual Assist tries to do its best when you are working with not compiling code, but there are limitations. So I've put in an enhancement request rather than a bug report for this to see what the developers make of it:

case=29706

Certainly this problem does not come up when you keep this option on:

VA Options -> Advanced -> Corrections -> Insert () and closing })]'"

But I guess you don't like it.
pk_asw Posted - Jul 14 2009 : 06:42:28 AM
Thanks for your code example, I've tried it in MSVC 2k3/2k8 and it works well.

Yes, I have turned off:
- Enable Enhanced Syntax Coloring
- Underline (spelling errors + mistyped symbols)
- Corrections (insert () and closing...)

Anyway, I've separated a .CPP source code which still procucts invalid function help (I've sent you a private msg with a download link). Just go to the first function "Process_NotifyCallback" and look at "VA X test" block code. If you remove/insert {/(, just wait for a while than VA X re-reparse the .CPP file (I use PgDn+PgUp to force re-reparsing).

I tried MSVC 2k3/2k8 with the same effect.
accord Posted - Jul 13 2009 : 3:37:18 PM
I wasn't able to reproduce this problem here. I created a simple (probably oversimplified) example:



The first difference is that my '(' is red. Have you turned off

VA Options -> Advanced -> Display -> Highlight mismatching {} and () using <red> ?

Can you please try this code on your computer to see what will happen? The text version of my snippet:
void func1(int all, int ppp)
{

}

void func2(float ooo, float eee)
{
	if (true) {
		func1( 
	
	func3();

}

void func3(int popopo, float rere)
{

}


If it works there then the problem may be caused by some surrounding code, so we have to figure out where is the code that confuses VA's parser.

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