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
 Smart Suggestions one off
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 03 2020 :  08:32:19 AM  Show Profile  Reply with Quote
Occasionally I see smart suggestions showing one off suggestions, like showing what should be the previous parameter and not the current one when completing.





VA_X.dll file version 10.9.2358.0 built 2019.12.19
DevEnv.exe version 16.4.29728.190 Community

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 03 2020 :  08:35:48 AM  Show Profile  Reply with Quote
When you notice this, does it always happen with overloaded functions? The tooltip showing the different overloads is coming from the IDE, not from VA. So I am wondering if VA thinks you are using a different overload to the one you think you are using. Just a guess, but it would help to explain the second screen shot, at least.

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

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 03 2020 :  08:38:33 AM  Show Profile  Reply with Quote
Pretty sure its only on overloaded functions, System.*, as far as I can remember.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 03 2020 :  08:39:03 AM  Show Profile  Reply with Quote
Is this C#, C++ or both?

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

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 03 2020 :  08:40:40 AM  Show Profile  Reply with Quote
C#, not doing much C++ lately so its not tested there.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 03 2020 :  2:25:40 PM  Show Profile  Reply with Quote
When VA knows the parameters, so there is only one overload, smart suggestions should be fairly smart. When there are several overloads VA is going to have to do a bit more guessing.

If the guesses aren't helping, you can always use CTRL-SPACE to replace the suggestion list with a full listbox, which should help.

I have double checked this behaviour here, and in simple tests I am often getting VA's suggestions based on context and surrounding code as well, which are reasonable but not always fully "correct".

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

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 03 2020 :  2:41:37 PM  Show Profile  Reply with Quote
So thats then a "known limitation" or "works as designed within limits"? In that case I�d prefer no suggestion when its not 100% clear as it adds to the work load instead of removing from it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 04 2020 :  10:05:35 AM  Show Profile  Reply with Quote
This is a fair point of view, but how far should we take it? You are seeing smart suggestions, since you have turned these on. But do you also have other suggestions turned on?

Importing the most recent settings you sent me, on the Suggestions settings page, I see everything turned on except for "Enable in C#", so I assume that your current settings are different. Which types of suggestions do you have turned on?

If you have turned on "Include bits of code from surrounding lines" then you are asking VA to give its best guess, which sadly won't always be correct.

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

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 04 2020 :  10:14:31 AM  Show Profile  Reply with Quote
Yes, I added the settings for suggestions. Actually all turned on from the suggestions page. In general it does a good job with the suggestions, just some of the heavier overloads dont do well.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 04 2020 :  12:26:04 PM  Show Profile  Reply with Quote
Given you have suggestions turned on, and are generally happy with them, how should parameter suggestions be handled then? Given that overloads are determined at compile time, its not to difficult to come up with a situation where VA cannot know the type of the current parameter, so any suggestion that is made is possibly wrong.

Suggestions are trying to help, but they are always going to have an error rate. I am just not sure where we want to try and draw the line here.

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

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - Feb 04 2020 :  12:57:49 PM  Show Profile  Reply with Quote
Sure and true. Yet, as in this specific case, there is no other match where the suggested parameter would fit, it should be possible to verify that. After all, there are already parameters which limit the number of possible overloads.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 05 2020 :  09:43:41 AM  Show Profile  Reply with Quote
That's fair and reasonable, I have put in a bug report for this:

case=141852

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