Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1533: Delete '.' and add '.' bug

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
thruska Posted - Sep 01 2006 : 7:56:44 PM
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.
5   L A T E S T    R E P L I E S    (Newest First)
jpizzi Posted - Sep 27 2006 : 12:28:08 AM
This does appear to be the same as the above link.

case=2163

The link is to the private beta forum. Sorry.
thruska Posted - Sep 26 2006 : 5:10:12 PM
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.
thruska Posted - Sep 26 2006 : 4:46:20 PM
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.
feline Posted - Sep 02 2006 : 4:45:48 PM
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?
thruska Posted - Sep 01 2006 : 8:01:18 PM
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).

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