Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 too automatic !

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
elenzil Posted - Jan 10 2008 : 5:05:52 PM
i must be missing something.

i'm editing a non-C++ file in VS 2005 sp1,
and want to type the line:

function myClass::parse()

but as soon as i type the open-paren, VA changes it to:

function myClass::parse_date()

"parse_date()" doesn't even appear in my codebase !

how do i make it so that it waits for me to press return
before accepting these useful suggestions ?

thanks!

fwiw,
this just started happening when i "upgraded" VA today
from a previous version who's installer was named "VA_X_Setup1446.exe".
15   L A T E S T    R E P L I E S    (Newest First)
elenzil Posted - Jan 15 2008 : 3:03:47 PM
quote:
Originally posted by feline

The underlining, are you seeing this in cpp files? Actual C++ code?
Earlier on you were talking about some scripting language, not actual C++ code.


correct. that's what i was hinting at when i wrote:
quote:

actually, it automatically inserts incorrect completions even for C++.


and
quote:

it's still wildly wrong about really simple C++ stuff.



actually i've already gotten a refund. the previous version worked better w/ my source tree for whatever reason, and tracking down what's confusing the latest version of VA seems like it's going to take more effort than i'm willing to put in.

thanks for taking all the time with this!

feline Posted - Jan 15 2008 : 2:55:02 PM
The underlining, are you seeing this in cpp files? Actual C++ code?
Earlier on you were talking about some scripting language, not actual C++ code.

Accepting a suggestion listbox is controlled by:

VA Options -> Advanced -> Listboxes -> Selections committed with: Tab
VA Options -> Advanced -> Listboxes -> Selections committed with: Enter
VA Options -> Advanced -> Listboxes -> Selections committed with: Any character not valid in a symbol

However there is one exception. A suggestion listbox that appears after a dot or arrow (so a suggestion listbox where you should get a member listbox) behaves like a member listbox - it is accepted by any character not valid in a symbol.

So how suggestion listboxes after a dot are accepted is actually a problem because the code is being underlined and VA does not know what is going on.

But without some idea what the code looks like, and where you are seeing this problem, there is not much I can say.
elenzil Posted - Jan 15 2008 : 1:34:51 PM
any advice in that department ?
i rebuilt the symbol database (including closing and restarting VS)
and it's still wildly wrong about really simple C++ stuff.

w/r/t "is there a way to make it so that i need to take positive action such as pressing enter to accept a suggestion ?", i'm finally figuring the answer is no.
feline Posted - Jan 15 2008 : 08:22:38 AM
In this picture the variable "objectList" is underlined. Is this the colour you have told VA to use for mistyped symbols?

Assuming it is, you are not going to get good results here, since VA has no idea what is going on. It does not understand "objectList", that's why it is underlined. Since it does not know what type "objectList" is you are not going to get a helpful listbox.

We probably need to start by finding out why everything is underlined. Fix that and VA should work a lot better.
elenzil Posted - Jan 14 2008 : 8:43:33 PM
for example, in this image: ,
i just typed the last letter in "last", and you can see that i've got a list of suggestions (none of which are correct, the correct suggestion would be the method "last()"), and as soon as i type the character "(", VA replaces "last" with "LASTINPUTINFO". this is annoying in the extreme. is there a way to make it so that i need to take positive action such as pressing enter to accept a suggestion ?
elenzil Posted - Jan 14 2008 : 8:37:46 PM
actually, it automatically inserts incorrect completions even for C++.
am i totally missing something ?
feline Posted - Jan 14 2008 : 07:21:31 AM
You can download previous builds of VA from this page:

http://www.wholetomato.com/support/history.asp

you can simply install an older version over the top of your current version if you want.
elenzil Posted - Jan 11 2008 : 2:40:48 PM
hi, thanks again.

yes, i've tried having "VA Options -> Advanced -> Listboxes -> Selections committed with: Any character not valid in a symbol" both set and not set, and the behaviour i'm seeing is the same.

do you know is it easy to reinstall a previous version ?
feline Posted - Jan 11 2008 : 2:07:40 PM
Assuming you are working in C++ when you type dot or arrow after a variable you are actually triggering a member listbox, not a suggestion listbox. If you do this in the IDE without VA installed you will find that the IDE accepts the current item in the listbox when you type any character not valid in a symbol.

The logic here seems to be that the listbox must be correct, so you obviously want to accept the current item.

Currently VA is doing the same thing the IDE does, for consistency. The option "Any character not valid in a symbol" only applies to suggestion listboxes, which only contain VA's best guess, and cannot be assumed to be always correct.

We are looking to change this, and to apply the listbox options to all listboxes.

If however you are looking at suggestion listboxes that appear when just typing, rather than typing after a dot, then the VA option:

VA Options -> Advanced -> Listboxes -> Selections committed with: Any character not valid in a symbol

should be what you want.

I am not sure what VA thinks your file is, so I don't know if this is a helpful answer or not.
elenzil Posted - Jan 11 2008 : 12:10:38 PM
thanks again, feline.

let me maybe rephrase my question:

is there a way to make VA only accept suggestions when i choose the item from a list by pressing "Enter" ?
ie, avoid the behaviour where it accepts suggestions when i simply type on to the next word.

thanks!

feline Posted - Jan 11 2008 : 09:11:04 AM
Is VA active in these files? Are you seeing VA's context and definition fields?

I am assuming you have told VA about this file extension.

http://docs.wholetomato.com?W328

If so then VA will be treating this as C/C++ code, even if the syntax does not match. If you have not told VA about the files then it should not be a factor at all.
elenzil Posted - Jan 10 2008 : 7:09:19 PM
another example:
i type "%this.username ",
and as soon as i type the space, it immediately changes to "%this.this.this.username] ".
elenzil Posted - Jan 10 2008 : 6:30:24 PM
hi feline,
thanks for responding.

as i mentioned, the file is not a C++ file,
it's a funky scripting language file. (TorqueScript)

i wouldn't mind if VA merely suggested something which was meaningless,
but when it automatically goes and accepts the suggestion for me it actually makes my productivity way slower than w/o VA.
feline Posted - Jan 10 2008 : 6:17:04 PM
This will be happening because suddenly VA does not properly understand the type "myClass", the question is why.

If you use alt-g on this type are you taken to the correct place?
Are the members being listed in the listbox even slightly correct? Or are they all totally wrong?

Is there anything "odd" about the declaration of "myClass" that might be confusing VA's parser?
elenzil Posted - Jan 10 2008 : 5:08:27 PM
i realize that i can disable VA for that file extension,
but some of the suggestions it gives for that file type are handy indeed,
not to mention syntax highlighting, etc.

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