Author |
Topic |
|
emiljansson
New Member
8 Posts |
Posted - Mar 04 2009 : 09:58:01 AM
|
1. I have a line with the following content:
double maxValue = 0.0;
2. I select the "0.0" part.
3. I begin typing "a_".
4. The auto complete listbox appears, and I select the first entry (which is "a_asp" in my case) by pressing return.
5. The "0.0" is replaced with "a_asp". The cursor moves to the end of the line, which is wrong.
Now the line looks like this:
double maxValue = a_asp;
That is, the expected behavior would by that the cursor is placed before the semi-colon, not after.
This does not happen every time; sometimes the cursor is placed before the semi-colon, as expected. However, in this case, when typing a ".", the cursor jumps over the semi-colon to the end of the line before the auto-completion box appears, which is again wrong.
Language: C++. VA_X.dll file version: 10.5.1715.0. DevEnv.exe version: 8.0.50727.762.
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 04 2009 : 12:35:07 PM
|
Are you selecting the text with the mouse or the keyboard? Approximately how often does this go wrong? 1 time in 3? 1 time in 20?
Do you have any other IDE plugin's installed? Are you running any utilities that might be effecting how the keyboard works?
So far I cannot reproduce either problem, selecting the text with the keyboard. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 05 2009 : 03:37:50 AM
|
The error occurs both when selecting the text with the mouse and when selecting with the keyboard.
This goes wrong approximately 50% of the times.
As far as I know, I do not run any keyboard related utilities at all.
I have other IDE plugins, see the list below, but no editor related plugins.
Thank you for looking into the problem!
From "Help"->"About Microsoft Visual Studio"->"Installed Products":
"Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 SP2
Installed Edition: Professional
Microsoft Web Application Projects 2005 77626-009-1423542-41640 Microsoft Web Application Projects 2005 Version 8.0.50727.762
Microsoft Visual C++ 2005 77626-009-1423542-41640 Microsoft Visual C++ 2005
Microsoft Visual Studio 2005 Tools for Applications 77626-009-1423542-41640 Microsoft Visual Studio 2005 Tools for Applications
AutomatedQA AQtime AutomatedQA AQtime for Visual Studio
Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB935225) This Hotfix is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this Hotfix will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/935225
Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB941098) This Hotfix is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this Hotfix will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/941098
Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB943969) This Hotfix is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this Hotfix will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/943969
Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB947315) This Hotfix is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this Hotfix will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/947315
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601) This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this service pack will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/926601
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB947738) This Security Update is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this Security Update will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/947738
Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2009 Whole Tomato Software, Inc.
Xoreax IncrediBuild 3.20 (build 867) Xoreax IncrediBuild 3.20 (build 867)"
|
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 05 2009 : 12:07:41 PM
|
Can you try creating a new default solution please, and see if you can reproduce the problem there? I am wondering if something in your main solution is a factor here.
IncrediBuild is a common plugin, that should not be causing any problems.
AutomatedQA AQtime for Visual Studio - this should be safe, but it is a possible factor. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 06 2009 : 03:29:43 AM
|
Yes, the problem is still reproducible, but now the variant with the ".".
1. I started Visual Studio.
2. I created a new empty solution, with a Win32 console project.
3. In the main file ("test.cpp"), I removed all the code generated by Visual Studio and pasted the following code instead:
class ASP { public: int m_a; };
int _tmain(int argc, _TCHAR* argv[]) {
ASP a_asp;
double maxValue = 0.0;
return 0; }
4. I again selected the "0.0" part, with the keyboard.
5. I typed "a". This opened the completion listbox, with "a_asp" as the first choice.
6. I pressed return. The lined changed to:
double maxValue = a_asp;
with the cursor between the "p" and the ";". This is correct.
7. I typed ".". The line changed to:
double maxValue = a_asp.;
with the cursor after the ";". This is clearly wrong. Moreover, the completion listbox opened, but since the cursor was after the ";", the suggestions showed was not the "m_a" member of "a_asp", but instead "a_asp", "argc" etc.
|
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 10 2009 : 3:56:19 PM
|
I still cannot reproduce the problem. Your description is very clear, thank you for that.
Exactly how are you selecting "0.0"? Starting at the end and using Shift + Left arrow key? Some other method? The exact method might matter.
Can you disable "AutomatedQA AQtime for Visual Studio" and see if this makes any difference? It may have a check box in:
IDE tools menu -> Add-in Manager -> list of available add-ins
I am trying to find the difference in what we are doing, or our systems, that is causing the problem. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 11 2009 : 06:30:25 AM
|
Yes, I can reproduce it by starting at the end and pressing the left arrow key while holding down the left shift key.
Sure, I now have done a full uninstall (not just disabled) of AQTime, and I removed the Incredibuild IDE plugin. So, the only IDE plugin installed is now Visual Assist X, and the problem is still reproducible exactly as I described it above.
Again, thank you very much for trying to solve the problem! |
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 11 2009 : 2:47:08 PM
|
This reminds me of:
case=2163
but that problem happens when you select text right to left, and type a dot to replace the selected text. Here you are replacing the selected text with a variable and then typing a dot, entering the variable "a_asp" should "wipe out" any problems caused by how you selected the text.
Can you please try downloading and opening this VS2005 solution:
http://forum.wholetomato.com/colin/forumimages/8589_dot_position.zip
This is the test solution I created, and am using. It is placed onto my local C drive, and I cannot reproduce the problem. I am wondering if there is some important difference in the two solutions we are using. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 12 2009 : 04:35:43 AM
|
Ok, I used you solution, and it is still reproducible in that solution.
Moreover, I managed the reproduce the problem in an even simpler way, without selecting any text, so I don't think it is related to the selection activity. Here is how I did:
I replaced the problem line with the following:
double maxValue = a_;
Then I saved the solution, shut down Visual Studio, and opened it fresh again.
Then I put the cursor (with the keyboard) between the "_" and the ";".
Then I simply typed a ".", and the cursor again jumped to the right of the ";".
So, it may be related to case 2163 since both problems are about typing a "." resulting in the wrong cursor movement, but apparently my problem does not have anything to do with text selection. Is case 2163 unsolved? Are you planning to solve it soon? |
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 12 2009 : 10:04:11 AM
|
This does not seem to have anything to do with case=2163. This bug is still outstanding, and it is on our list of things to fix, but I don't currently have an estimate on when it will be fixed.
Can you please export your VA and IDE settings and send them to me:
VA Options -> Performance -> Export Settings IDE tools menu -> Import and Export Settings -> Export selected environment settings
I can then import them here and see if I can reproduce the problem. I don't know if your settings matter, but its worth a try. Something must be triggering this behaviour.
Please submit the files via the form:
http://www.wholetomato.com/support/contact.asp
including this thread ID or URL in the description, so we can match it up. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 12 2009 : 11:48:55 AM
|
Ok, I have uploaded the files now! |
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 16 2009 : 4:36:33 PM
|
I have the files, thank you for these. After importing your IDE settings I am able to reproduce the problem. I am now trying to find out why it is happening. |
zen is the art of being at one with the two'ness |
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 16 2009 : 6:05:37 PM
|
I have made some progress, but I am not sure exactly what it is in your IDE options that is triggering this:
case=25123
I have found that the problem is mostly fixed by changing to a different font. If I change the IDE font from Times New Roman to Courier New then the caret stays where it is supposed to on typing the dot, but ends up in the wrong place if you undo typing the dot.
The option:
IDE tools menu -> Options -> Text Editor -> C/C++ -> Word wrap
also seems to be a factor.
As a temporary work around you may find that changing fonts, or turning off word wrap helps. |
zen is the art of being at one with the two'ness |
|
|
emiljansson
New Member
8 Posts |
Posted - Mar 17 2009 : 05:11:22 AM
|
Aha, so it seems that the bug is activated by a combination of using proportional fonts and word wrapping.
I really like using proportional fonts, and word wrapping is needed if you have two source code files next to each other on the same monitor, so I would be very happy if you could correct the bug! :-) |
|
|
feline
Whole Tomato Software
United Kingdom
19017 Posts |
Posted - Mar 17 2009 : 12:17:01 PM
|
Times New Roman + Word Wrapping on their own are not enough to trigger the full bug, but my basic tests did not pin down the exact combination of settings.
A different proportional font *might* behave differently.
I have put this down as an urgent bug, but I am not sure how hard it will be to fix, or when it will be looked at. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Aug 22 2009 : 7:13:45 PM
|
case=25123 is fixed in build 1731 |
Whole Tomato Software, Inc. |
|
|
emiljansson
New Member
8 Posts |
Posted - Aug 25 2009 : 03:22:22 AM
|
I have tested 1731 now, and it looks fine. Thanks a lot! |
|
|
|
Topic |
|