Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 dot to arrow

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
Old as dirt 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,
14   L A T E S T    R E P L I E S    (Newest First)
feline 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?
mvolkar 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 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.
Old as dirt Posted - Sep 12 2012 : 12:50:03 PM
case=41394 : Has this been fixed yet?
Am I the only one who has this problem?
feline 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.
Old as dirt 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.
feline 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
Old as dirt 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.
feline 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.
Old as dirt Posted - Apr 09 2012 : 08:07:53 AM
Has this been fixed yet?
accord 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.
accord Posted - Mar 01 2011 : 8:32:36 PM
I got the answer and sent a reply.
Old as dirt 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.
accord 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.

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