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: Phantom tooltip from deleted line
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Aug 22 2006 :  12:56:29 PM  Show Profile  Reply with Quote
I've found in 1532 that when deleting a few lines of text, then hovering the cursor on one of the remaining lines, VA X gives a tooltip defining a symbol from a deleted line:

Before:


After:


If you save the file before hovering, the correct tooltip is shown.


VA_X.dll file version 10.3.1532.0 built 2006.08.10
VAOpsWin.dll version 1.3.3.6
VATE.dll version 1.0.5.8
DevEnv.exe version 7.10.6030.0 (Service Pack 1)
msenv.dll version 7.10.6030.0
Font: Bitstream Vera Sans Mono 16(Pixels)
Comctl32.dll version 5.82.2900.2180
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
d:\\compiler\\sdkfeb03\\include;
d:\\compiler\\DX9\\Include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
d:\\compiler\\ntddk\\inc;
d:\\compiler\\mp3;
d:\\compiler\\qdesign;
d:\\compiler\\wmsdk\\wmfsdk9\\include;
d:\\compiler\\sentinel;
d:\\compiler\\id3lib-3.8.3\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;


Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 26 2006 :  1:54:41 PM  Show Profile  Reply with Quote
using VS2003, C++ and VA 1533 i cannot reproduce this. i am using the test code:


#define AAC_BITRATE_10000 1
#define AAC_BITRATE_20000 2
#define AAC_BITRATE_30000 3
#define AAC_BITRATE_40000 4
#define AAC_BITRATE_50000 5
#define AAC_BITRATE_60000 6
#define AAC_BITRATE_70000 7
#define AAC_BITRATE_80000 8
#define AAC_BITRATE_90000 9

static int getCounter()
{
    int nValue;
    nValue = AAC_BITRATE_10000;
    nValue = AAC_BITRATE_20000;
    nValue = AAC_BITRATE_30000;
    nValue = AAC_BITRATE_40000;
    nValue = AAC_BITRATE_50000;

    return 3;
}


and deleting lines from the function, and then hovering over the #define. can you try this test code on your system and see what result you get? it is possible this only happens with more complex code, or that there is some other difference.

do you have any other plugin's installed?

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 :  12:52:02 AM  Show Profile  Reply with Quote
Hi Colin,

Your code results in the same behavior in a new Win32 project on my machine. This is after a complete reinstall of 1533:



I either have to save the file to wake up the parser, or as I discovered while trying to take a screen shot, allow an inordinate amount of time and/or navigate away from the text editor and back.

I have Perforce integration, but it is not implemented as an add-in; VS simply loads the SCC-compatible DLL. The only thing that shows up in Add-In Manager is VA X. I do have a HyperThreading CPU, which seems to pop up as a suspect now and then on the forum.

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 28 2006 :  1:44:23 PM  Show Profile  Reply with Quote
i am currently setting up a dual core virtual machine test system. when the system is up and running i will run this test there.

for now i have re-tested this in my normal test system, and it still works perfectly for me.

how are you deleting the lines? this is clutching at straws, but it might matter.
i am placing the caret in the first column, and then using the down arrow + shift to select entire lines, and then i am pressing the delete key to delete them. next i am giving VA a second or two to catch up before hovering the mouse over one of the remaining lines, and i am getting the correct tooltip.

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 28 2006 :  4:32:23 PM  Show Profile  Reply with Quote
the new machine is now up and running, which should be useful in future. i am making the assumption that a dual processor machine is going to behave the same as a hyperthreading system as far as VA is concerned.

i have just re-run the same test, and still no problems. i am always getting the correct tooltips.

i have just tried turning off VA's enhanced syntax highlighting for tooltips, and infact everything except the source code its self, and that made no difference.

when you say "navigate away from the text editor and back" what are you doing? i wonder if it is simply the time taken, or if some other factor is at work 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 :  4:47:19 PM  Show Profile  Reply with Quote
I am deleting the lines by pressing Alt+D, which I have mapped to the VS command LineDelete. The caret is typically in the middle or end of a line when I press the keystroke.

I navigated away by switching to my screen capture program, then back to VS to take the screen shot. Either time or context switching allowed VA X to catch up.

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 01 2006 :  4:03:10 PM  Show Profile  Reply with Quote
ahha! having mapped alt-d to LineDelete i am able to reproduce this, but only just! i am able to use my left hand to trigger alt-d to delete the current line and my right hand to move the mouse over the next line, to see the tooltip. if i get the mouse there fast enough then i get the wrong tooltip.

however "fast enough" is something like under a second. if i am just slightly to slow then i get the correct tooltip.

going back to your origional post it sounds like you can wait quite a long time and you still get the wrong tooltip. is this true? what happens if you wait about 5 seconds?

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Sep 01 2006 :  4:49:29 PM  Show Profile  Reply with Quote
I can wait many tens of seconds with the same outcome. Only by saving the file, or switching to another file in the editor (or to another application on the computer) and coming back to the source file is the issue resolved. The tooltips are off by n lines, where n is the number of lines I deleted. So in your code example, if I place the caret on the line "nValue = AAC_BITRATE_10000" and delete 3 lines, then hover over "nValue = AAC_BITRATE_50000", I get a tooltip showing "#define AAC_BITRATE_20000 2"

I have tried this on 2 different computers, one running XP Media Center Edition on a hyperthreaded P4, and the other on a Win2000 box with a single P3; both have the same problem.

I did notice that if I select text and press Delete, then the tooltips are correct. Using LineDelete, either from a bound keystroke or toolbar button, causes the problem.


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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 02 2006 :  4:40:08 PM  Show Profile  Reply with Quote
*um*

yep, *um* sums it up quite well.

seeing the same thing on the single P3 machine means we can discount multiple processors as an issue. plus this seems to be specific to the LineDelete command. but if so why does it not happen when i do this? logically there has got to be something specific that you are doing that i am overlooking.

did you use the same solution on the two different machines? or did you create a new test on each machine? my only guess at the minute is that this is somehow solution specific.

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Sep 02 2006 :  9:20:10 PM  Show Profile  Reply with Quote
Nope, I can create a brand new solution and experience the problem. I'll export my settings and send them to Support, referencing this thread.

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 03 2006 :  5:32:09 PM  Show Profile  Reply with Quote
i have now added the Edit -> Line Delete toolbar button to my toolbar in VS2003 and i am a bit closer to this. i am getting the wrong tooltip, but it looks like it is only lasting for maybe 10 or 20 seconds.

so i am a little bit closer, but i am still not seeing the same sort of delay as you *sigh* hopefully your settings will help shed some light on this.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 06 2006 :  2:07:26 PM  Show Profile  Reply with Quote
I wasn't able to repro in vs2005 but was able to in vs2003 using Ctrl+Shift+L in the default keymap. case=2396
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