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
 1532: AutoComplete still not right
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 16 2006 :  9:12:06 PM  Show Profile  Reply with Quote
I have seen AutoComplete choose the wrong item in this case

public void MethodTest() { }
public void Met()

now, inside the C# code, type "obj.Met(" It autocompletes to MethodTest() a lot of time... I am not quite sure why, but, MethodTest is listed first and selected in the listbox. "(" apparently completes and assumes that what is highlighted is what is desired, even though there is an exact match 3 items down in the list.

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.

support
Whole Tomato Software

5566 Posts

Posted - Aug 17 2006 :  01:51:12 AM  Show Profile  Reply with Quote
What IDE do you have?

Are you looking at a suggestion list with question marks, or a members listbox with various icons in the left?

If VS2003, do you have "Intellisense preselects most frequently used members" enabled in Tools|Options|Text Editor|C#|Formatting?

If VS2005, do you have the option in ...|C#|Intellisense?

If VS2005, what do you have listed for "committed by typing the following characters" in ...|C#|Intellisense?
Go to Top of Page

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 17 2006 :  2:24:25 PM  Show Profile  Reply with Quote
Icons on the list. VS2005 is the IDE;

OK, the ( commiting it makes sense that setting is: {}[]().,:;+-*/%&|^!~=<>?@#'"\
Yes, I have the Intellisense pre-selects most recently used members. however, it appears to not work, even if the item I am wanting to select was something I just created and used... the list is constant regardless.

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Aug 17 2006 :  2:29:30 PM  Show Profile  Reply with Quote
Similar to http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5129 ?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 19 2006 :  10:26:59 AM  Show Profile  Reply with Quote
as an initial test, using VS2005, VA 1532 and a C# console project i added the following code:


namespace VA_testing
{
    public class suggestionList
    {
        public void MethodTest() { }
        public void Met() { }

        public void callThings()
        {
            Met();
            Met();
        }
    }
}


when typing in "callThings()" i actually had to fight VA to get a completion listbox, the one with the icons. every time i typed 'm' on a new line i am getting a suggestion listbox (question mark icons) with "Met()" as the default suggestion.

are you getting suggestion listboxes at all? can you try turning off the option:

IDE tools menu -> options -> Text Editor -> C# -> IntelliSense -> Show completion list after a character is typed

and see if that makes any difference.

or am i testing the wrong thing?

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

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 21 2006 :  4:50:45 PM  Show Profile  Reply with Quote
I am getting the suggestion listboxes, they were wrong. I'll try it with the setting you mentioned, seems like I went through this onetime before.

This is the right thing... when you type 'Meth', does the default change?

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 21 2006 :  7:42:27 PM  Show Profile  Reply with Quote
for what it is worth, placing this code into an existing C# project, this is what i get. i am not quite sure where VA picked MessageBox up from, but certainly i often call this when running up a quick and dirty test, to it is a reasonable suggestion to my mind.







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

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 23 2006 :  10:34:40 AM  Show Profile  Reply with Quote
Hmmm. What settings would affect this behavior?

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 23 2006 :  3:44:24 PM  Show Profile  Reply with Quote
Emailed another example showing the problem.

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 23 2006 :  7:53:46 PM  Show Profile  Reply with Quote
Do you have shorthand enabled in our options dialog? In your example, "set" is shorthand for all entries in the listbox.

We assume you have "shrink" enabled as well.

Go to Top of Page

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 25 2006 :  11:42:05 AM  Show Profile  Reply with Quote
Yes, I did. I'll change them and see if the behavior is better for me. (Thanks!)

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Aug 26 2006 :  12:05:47 PM  Show Profile  Reply with Quote
OK, its better, but in C#, it looks to me like set still isnt represented correctly... it never works like I expect. I have to press space after it no matter what otherwise it autocompletes to something other than set.

I would like a setting that indicates that autocomplete should complete to what is an exact match in the list, (including keywords), rather than guessing at what I want.

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 27 2006 :  1:37:28 PM  Show Profile  Reply with Quote
you may want to turn off both options:

VA Options -> Text Editor -> listboxes -> allow acronyms
VA Options -> Text Editor -> listboxes -> allow shorthand

which should get you to the completion listboxes you are after.

i have just gone back and checked. in the screen shots i posted i have both of these options turned on. you are not the only person reporting that VA suggestions seem wrong, but so far i have not had any luck reproducing the problems.

do you have time to create a C# console project, paste in the code i posted and see what happens for you? currently i am searching for any clues that might help explain what is going on here.

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Aug 28 2006 :  01:03:27 AM  Show Profile  Reply with Quote
FYI, I reported to Support this weekend a bug in 1533 that keeps Acronyms active all the time whenever Shorthand is active. Deselecting the Acronyms box in config while Shorthand is still active has no effect. Clearing both checkboxes is the only way to turn off Acronyms. In John's case, typing obj.Met would bring up MethodTest in the suggestion list since it matches the M-E-T acronym sequence.

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 28 2006 :  2:09:11 PM  Show Profile  Reply with Quote
your email has made it into the system

case=2257

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

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2007 :  02:44:26 AM  Show Profile  Reply with Quote
The acronyms and shorthand options UI is improved in Build 1614.
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