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
 1635: Marking code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - May 03 2008 :  10:10:36 AM  Show Profile  Reply with Quote
Please try this: Place the cursor at the end of a line having a lot of parenthesis. Hold the shift key down and mark the line step by step by pressing the left arrow key. In this case visibility of code fragments in that line will change everytime the cursor passes a parenthesis.

VC6, WinXP, no other add-ins.

Regards
Marcus

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - May 03 2008 :  11:57:18 AM  Show Profile  Reply with Quote
I am seeing something odd. Using the following test code, in VC6:

static void testBracketsAndSelect()
{
	int nA = 0, nB = 0, nC = 0, nD = 0, nE = 0, nF = 0, nG = 0, nH = 0, nI = 0, nJ = 0;
	if((nA == nB) || ((nC > nD) && (nE < nF) || ((nG > nH) && (nI < nJ))))|
	{
	}
}


Moving the caret from there (red mark) back, slowly, I have seen this:



VA is not set to show anything in Red, but VC6 is configured to show operators in red, as you can see from the surrounding, unselected code. So I am wondering if this red colouring is coming from the IDE. I have seen brackets "disappear" occasionally, but VA is set to show matching brackets in black, and black on black is not visible.

Is this anything like what you are seeing? If text is being shown in operator colour on your system, and your operators are black, then it might seem to disappear.

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

khb
Tomato Guru

Germany
337 Posts

Posted - May 03 2008 :  5:28:53 PM  Show Profile  Reply with Quote
Hm, maybe you can apply my settings I sent you regarding the other visualization problem. This is what I'm seeing when I step slowly through the line from right to left on a new console application:
01: Last ")" gets marked for a short time and then turns black
02: Next ")" gets marked for a short time and then turns black
03: Next ")" gets marked for a short time and then turns black
04: Next ")" gets marked for a short time and then turns black
05: "J" is marked correctly (followed by 4 "black squares")
06: "n" is also marked correctly
07: " " is also marked correctly
08: "<" is also marked correctly
09: " " is also marked correctly
10: "I" is also marked correctly
11: "n" is also marked correctly
12: "(" is marked correctly and also the matching ")" from step 04
    The rest of the already marked chars turns into "black squares"
13: " " is marked correctly, rest like 12, but the content within
    the parenthesis 04-12 gets marked correctly
14: "&" is marked correctly
15: "&" is marked correctly
16: " " is marked correctly
17: ")" behaves like in step 01
18: "H" is marked correctly, but 01-17 turn into "black squares"
19: ...
Within the next steps the pattern above repeats throughout the whole line.

Regards
Marcus

P.S.: For me the operators are not red, but black. I'm using the IDE's and VA's standard coloring scheme.

Edited by - khb on May 03 2008 5:32:04 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - May 05 2008 :  1:42:50 PM  Show Profile  Reply with Quote
Using your settings, and VC6, I am not seeing any problems at all, with the test code I posted. I am testing in the "hello world" test C++ console project I used when testing selecting strings.

I just added my test function to the bottom of the cpp file.

Could you post a couple of screen shots showing the problem you are seeing? Or just send them to me if that is easier.

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.

Have you done anything "odd" or "interesting" to the font files on your system? Your reference to black squares bothers me. I am not quite sure what you mean, but it reminds me of the bug reports about VA showing the wrong, or corrupt, characters. The only current case I have been able to reproduce of this required deleting the bold font files for a specific font, then setting the IDE to use the bold font, to force the IDE to draw comments in italic text.

This is the sort of thing I mean by "odd" or "interesting". Anything that might make your fonts different to mine.

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

khb
Tomato Guru

Germany
337 Posts

Posted - May 06 2008 :  04:34:57 AM  Show Profile  Reply with Quote
Ok, the term "black squares" is misleading. It was just a result of my bad English What I mean is a correctly marked, i.e., inverted space character. I'll take some screen shots to clarify this soon.

Moreover, I did no "odd" changes to the fonts on my system. It is more or less a standard German WinXP SP2 installation. The only possibly "interesting" thing is that I also installed the chinese character set, but it was not activated when I faced the problems mentioned above.

I also just did a quick test using VS2003 on another machine. Here it looks much better, but something isn't correct, too. Assume I have the following line:
if ( strcmp( argv[arg], "-i" ) == 0 )
then the '==' turns from white to black when marking the white space character on the right side of the '"-i"'. Again, this happens while applying the same marking pattern as before, i.e., marking the line from right to left by slowly stepping through the line with shift + left arrow key. The '==' then gets colored correctly again when passing the 'g' of the symbol 'arg', but turns to black later on again...

Regards
Marcus
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - May 06 2008 :  08:01:14 AM  Show Profile  Reply with Quote
Hopefully seeing the screen shots will give me some idea of what is going on here. This may be the same problem as this thread:
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7652

Simply having the Chinese fonts installed should not be a problem, but it might be a factor.

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

khb
Tomato Guru

Germany
337 Posts

Posted - May 06 2008 :  4:12:43 PM  Show Profile  Reply with Quote
Feline, I just sent in some screen shots via the contact form.

Regards
Marcus
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - May 06 2008 :  4:57:36 PM  Show Profile  Reply with Quote
I have the screen shots, thank you for these. They show the problem very clearly. Can you try a quick test please. In:

VC6 tools menu -> Options -> Format tab -> Colors = Operator

Can you change the colour for Operator from Black to something "obvious", perhaps red or magenta, and then select the code again. I am wondering if you are seeing what I am seeing, where code is being coloured in the operator colour when selecting it. If so you should be able to read the code when it changes to operator colour.

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

khb
Tomato Guru

Germany
337 Posts

Posted - May 06 2008 :  5:13:38 PM  Show Profile  Reply with Quote
Feline, I just sent in another bunch of screen shots. I guess this is easier than explaining .

But I think you are right relating to the operator color...

Regards
Marcus

Edited by - khb on May 06 2008 5:18:29 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - May 07 2008 :  08:30:07 AM  Show Profile  Reply with Quote
Thank you for the extra screen shots, what you are seeing looks the same as what I am seeing here:

case=16546

I have put this down as an urgent bug report. For now you may find setting operator to a more visible colour a useful workaround, or downgrading to VA 1626.

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

khb
Tomato Guru

Germany
337 Posts

Posted - May 07 2008 :  09:15:01 AM  Show Profile  Reply with Quote
Thank you, feline. The workaround is ok for me until it gets fixed, so I think I'll stick to 1535.

Regards
Marcus
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 13 2008 :  2:50:29 PM  Show Profile  Reply with Quote
case=16546 is fixed in build 1638
Go to Top of Page

khb
Tomato Guru

Germany
337 Posts

Posted - May 13 2008 :  4:16:57 PM  Show Profile  Reply with Quote
Confirmed. Thank you for fixing this so quickly!

Regards
Marcus
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