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
 1727: IntelliSense problem (function parameters)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pk_asw
Ketchup Master

Czech Republic
66 Posts

Posted - Jul 12 2009 :  8:16:11 PM  Show Profile  Reply with Quote
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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 13 2009 :  3:37:18 PM  Show Profile  Reply with Quote
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.

Edited by - accord on Jul 13 2009 3:42:43 PM
Go to Top of Page

pk_asw
Ketchup Master

Czech Republic
66 Posts

Posted - Jul 14 2009 :  06:42:28 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 16 2009 :  4:30:51 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

pk_asw
Ketchup Master

Czech Republic
66 Posts

Posted - Jul 16 2009 :  5:54:53 PM  Show Profile  Reply with Quote
Thanks for sharing!

Yes, I don't like the VAX feature that can be used to automatically insert closing brackets.
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