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
 1216: AutoComplete is deleting it's own entries...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Feb 19 2004 :  12:23:52 PM  Show Profile
Hard to explain, but I'll try...

Imagine you have "Suggest bits of code from surrounding lines" ENABLED.

Now, when I start to type:

EnableWindow(

VA_X 1216 suggests "bits of code from surrounding lines", which is good! It suggests "hDlg,", which I choose wuth TAB...

EnableWindow(hDlg,

at this point, VAX suggests "TRUE);", which is also good!

BUT when I press TAB to select that suggestion, I end up with:

EnableWindow(hDl TRUE);

which is a bug, for sure!

I can provide screenshots, if needed!

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Feb 19 2004 :  12:35:58 PM  Show Profile
Coincidentally, I just noticed something like this. I have a template class called CRange<T>. I already had
CRange<DWORD> range;
on a previous line. After I typed CRange on another line, I was offered <DWORD> and then range, both of which I accepted. The <DWORD> got inserted OK, but after I accepted the range, the right bracket got deleted and it ended up as
CRange<DWORD range

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Feb 20 2004 :  07:37:59 AM  Show Profile
I just hit an even nastier one. I had a line
m_slFilesToRead.RemoveAt(posOld);
which was identical to a previous line. The autocomplete got me as far posOld. Then I typed the ");" myself. At that point, a questionable-tomato popped up again with a blank line beside it. I had already hit return in order to go to the next line. That must have selected the blank suggestion, which had the effect of deleting the ");", and not moving me to the next line. The only way I could finish the command and get to the next line was to use the right-arrow.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Feb 20 2004 :  08:21:46 AM  Show Profile
Yup, but that's another Bug...

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1147

Bug 1147 comes up when you enter a ")" or "}" everytime...

Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Feb 20 2004 :  09:30:50 AM  Show Profile
It may be two bugs interacting, because when I selected it, it also deleted part of my code.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

Cezariusz
Tomato Guru

Poland
244 Posts

Posted - Feb 22 2004 :  09:13:53 AM  Show Profile
Similar example:

	int nTestVariable;
	nTestVariable = ::GetTickCount();

now in the next line type "nT" and VA will suggest "nTestVariable" - accept it and type " = ", now VA will suggest "::GetTickCount()" - accept it again, but instead of
	nTestVariable = ::GetTickCount()

you'll have
	nTestVariable =::GetTickCount()

Note missing (deleted) space after the equals sign.

Cezariusz Marek
https://midicat.net/

Edited by - Cezariusz on Feb 22 2004 09:15:14 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000