Author |
Topic  |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Feb 28 2011 : 3:09:04 PM
|
Turning a dot into an arrow when the variable after which the dot is typed is not a pointer is a problem that has plagued me for several years but I could never put together a simple project to make it happen. Now it is happening on a small project but still too large to post. Would you like to look at the project? I can zip it and send it to you. It is 24 files and 44.4MB unzipped. It is still 15.1MB zipped so I don't know that I can send it via email.
Here is my system info. VA_X.dll file version 10.6.1842.0 built 2011.02.03 Licensed to: VA X: [email protected] (1-user license) Support ends 2012.01.26 DevEnv.exe version 10.0.31118.1 Professional msenv.dll version 10.0.31118.1 Comctl32.dll version 6.0.2900.6028 Windows XP 5.1 Build 2600 Service Pack 3 2 processors (x86)
Platform: Project defined Stable Includes: C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include; C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include; C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\include;
Other Includes:
Stable Source Directories: C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc; C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm; C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl; C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\crt\\src;
Thanks,
|
Ken |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Feb 28 2011 : 7:22:54 PM
|
Let's give it a try, I think 15 MB can be sent by mail nowadays. (I hope) Use this form to send the project:
http://www.wholetomato.com/support/contact.asp
Please include the URL of this topic in the description field so we can match it up. Thank you for making the effort to report this. |
 |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Mar 01 2011 : 08:01:31 AM
|
Whoops, I forgot to include the URL when I sent the request. I hope you can find it anyway. I put the topic in instead. |
Ken |
 |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Mar 01 2011 : 8:32:36 PM
|
I got the answer and sent a reply. |
 |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Mar 02 2011 : 10:03:19 PM
|
I was able to reproduce the problem, thank you for the source code:
case=41394
For now, you can turn off VA Options -> Advanced -> Correction -> Convert dot to -> (in C/C++)
as a workaround. Alternatively, you can just simply press backspace to undo the conversation (so -> will be replaced with .) when it was done unnecessarily. |
Edited by - accord on Mar 03 2011 12:20:31 AM |
 |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Apr 09 2012 : 08:07:53 AM
|
Has this been fixed yet? |
Ken |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 10 2012 : 12:14:30 AM
|
Unfortunately no, this has not yet been fixed. I have just increased the priority on this bug report for you though, which will hopefully help. |
zen is the art of being at one with the two'ness |
 |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Apr 10 2012 : 07:55:32 AM
|
Thanks, That is the only thing still broken as far as I can tell. At least it is the only thing that bugs me. I am using Visual Studio 2010.
I recently used a machine that doesnG??t have VA on it and realized just how much I depend on it being there.
|
Ken |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 10 2012 : 5:23:35 PM
|
Looking at the bug report, one work around was to change "]]" to "] ]", and then the dot is not converted to -> automatically. Alternatively simply pressing backspace once will undo this unwanted conversion.
It is good that this is the only remaining problem. We do try to quietly add a lot to the coding experience, so that it all just feels natural. When you suddenly have to run the IDE without VA it does make quite a difference, so it is reassuring you are getting the same experience  |
zen is the art of being at one with the two'ness |
 |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Apr 10 2012 : 10:14:39 PM
|
The reason I donG??t want to just turn off the dot to -> is that for an awful lot of my code I donG??t remember which variables are pointers and I depend on VA to figure it out for me. VA has made me lazy maybe? It does it right most of the time.
|
Ken |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 11 2012 : 12:16:52 PM
|
This is not lazy, VA is making you a more focussed and efficient programmer, by letting you focus on the important things, and automating the manual bits 
I do know what you mean here, after a while we all start to rely on VA, and it is quite a problem when we hit a bug, and suddenly thing's don't work so smoothly. We do try to keep these to a minimum, and do fairly well, thankfully. |
zen is the art of being at one with the two'ness |
 |
|
Old as dirt
Tomato Guru
    
USA
246 Posts |
Posted - Sep 12 2012 : 12:50:03 PM
|
case=41394 : Has this been fixed yet? Am I the only one who has this problem? |
Ken |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Sep 13 2012 : 5:57:02 PM
|
Unfortunately no this has not yet been fixed. This is still in our list of bugs to fix, and it has not been forgotten.
By the looks of it only one other person has reported this problem so far, so its not very wide spread, which unfortunately does not make this a massively urgent bug. |
zen is the art of being at one with the two'ness |
 |
|
mvolkar
Junior Member
 
20 Posts |
Posted - Apr 26 2013 : 2:55:18 PM
|
This is something we have run into at my company, and it would be great if it could be fixed. Just thought I'd chime in here to say that there are others encountering this issue. |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 30 2013 : 5:36:08 PM
|
The bug in this particular case is shown by this simple code example:
struct struct1 {
int Apple;
};
void ttt()
{
struct1* s1;
int Indexes[] = {0};
// fails - dot at the end of this line converted to ->
s1[Indexes[0]]
// works - dot at the end of this line not converted
s1[Indexes[0] ]
}
adding the space between the two closing square brackets fixes the problem. Do the problems you are seeing look like this, or are you seeing problems with a different sort of code? |
zen is the art of being at one with the two'ness |
 |
|
|
Topic  |
|