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
 1533: Delete '.' and add '.' bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

thruska
Ketchup Master

71 Posts

Posted - Sep 01 2006 :  7:56:44 PM  Show Profile  Reply with Quote
Bear with me. This bug comes from a bad habit you won't cure me of...but it is still a bug.

I've observed that when I have something like the following:

SomeClass MyInstance;

...
if (MyInstance.MxVarname) DoSomething;

Then I want to copy the 'if' to another line:

SomeClass MyInstance;

...
if (MyInstance.MxVarname) DoSomething;
if (MyInstance.MxVarname) DoSomethingElse;

Then I want to replace the second 'MxVarname' with another variable from the same class:

SomeClass MyInstance;

...
if (MyInstance.MxVarname) DoSomething;
if (MyInstance) DoSomethingElse;

[The above is deleting the variable name _AND_ the '.' operator.]

SomeClass MyInstance;

...
if (MyInstance.MxVarname) DoSomething;
if (MyInstance.) DoSomethingElse;

[The above is where I type the '.' operator back in. This is part of my 'bad habit'. The habit is pressing one key and then performing a counteraction to reverse the effect. I've had the habit for 15 years and you won't succeed in changing it. I can happily sit in front of a computer and press the left and right arrow keys for 20 minutes. In this case, I probably could hit Ctrl+Space, but then I wouldn't be able to "balance" out deleting the '.' with typing it back in.]

Anyway, the keyboard caret sometimes ends up after the '.' (which is correct) but every once in a while it will end up _BEFORE_ the '.' and it usually also shows the wrong suggestion box in the process. It only happens every so often, but I notice that it tends to happen more often when I am copying and pasting lines and then modifying the variable being accessed. The problem doesn't show up when VAX is disabled.

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/

thruska
Ketchup Master

71 Posts

Posted - Sep 01 2006 :  8:01:18 PM  Show Profile  Reply with Quote
I should also mention that I use the 'backspace' key more often than the 'delete' key. So, I usually select the variable with the keyboard and press backspace twice and then type in the '.' again. The bug doesn't always show up but I've seen it happen enough times that surely someone else has run into it too but hasn't bothered to mention it.

And I should also mention VS.NET 2003 is the IDE (if that makes a difference).

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 02 2006 :  4:45:48 PM  Show Profile  Reply with Quote
this reminds me of this thread http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=5159

can you have a look and see if it sounds like you are running into the same issue?

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

thruska
Ketchup Master

71 Posts

Posted - Sep 26 2006 :  4:46:20 PM  Show Profile  Reply with Quote
Sorry about the delayed response. I've been busy. Anyway, I tried the link and it doesn't work. However, I just figured out how to replicate this issue every single time today. I was replacing a function call with another function call and came up with the following steps:

1) Have a class with two variables in it. Preferably some basic type like 'int'.
2) Have some line like this (CmdUIPtr is of type 'CCmdUI *'):

CmdUIPtr->SetCheck(GxConfig.MxFirstVar);

Copy the line to another line (i.e. I'd usually do this to replace the variable with something else).

3) Put the cursor _AFTER_ MxFirstVar but before the ')'.
4) Press Shift+Ctrl+Left Arrow. Press Shift+Left Arrow.
5) Press the '.' key.

Cursor appears on the left-hand side of the '.'.

I should mention I'm running VAX 1534.

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/
Go to Top of Page

thruska
Ketchup Master

71 Posts

Posted - Sep 26 2006 :  5:10:12 PM  Show Profile  Reply with Quote
I just updated to VAX 1535 (and I've been on VS.NET 2003 SP1 for a while now). The problem can still be replicated.

Thomas Hruska
CubicleSoft President
http://www.cubiclesoft.com/
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 27 2006 :  12:28:08 AM  Show Profile  Reply with Quote
This does appear to be the same as the above link.

case=2163

The link is to the private beta forum. Sorry.

Joe Pizzi
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