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
 VAX 1426: syntax coloring? Off by ten.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Oct 06 2005 :  4:51:54 PM  Show Profile
This build has serious troubles with syntax coloring. Classes are not recognized, keywords are not colored, built-in types colored wrong. Functions colored as variables, etc.

Please remove
gdiContext.SetColor(RandomizeColors());
from VAX...

support
Whole Tomato Software

5566 Posts

Posted - Oct 06 2005 :  6:13:24 PM  Show Profile
Does anyone else see the same problem?

For all projects??
Go to Top of Page

ether
Tomato Guru

USA
130 Posts

Posted - Oct 07 2005 :  06:56:57 AM  Show Profile
They've never really gotten it right. To this day a RECT's left and right members are colored as functions. Been that way since I started using VA (version 4 was the first I used).
Go to Top of Page

Henrik
Senior Member

30 Posts

Posted - Oct 07 2005 :  07:25:15 AM  Show Profile
Yes, but maybe a bit different - All Function Names are underlined for a while - then it disappears - then it comes back again ... extremely annoying.

I have already gone back to 1418 ...

Henrik
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Oct 07 2005 :  09:15:31 AM  Show Profile
Seeing that too. Classes and functions are recognized, forgotten, underlined, wrong colored, then it comes back again almost right, then it returns to chaos.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 07 2005 :  5:58:05 PM  Show Profile
ether using VS 2003, C++ and VA 1426 a quick test is giving me this:



the orange colour is the colour i am using for functions on this machine. to make a copy / paste test easier the code is:

static int getCounter()
{
    RECT foo;
    foo.bottom();
    foo.left();
    foo.right();
    foo.top();

    return 23;
}


this does not help much, but it does suggest there is something about the environment, or more likely the solution that is causing these problems. the trick is to find what that something is.

can anyone reproduce such strange effects in a new solution? or does it only happen in existing, large, solutions?

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

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Oct 07 2005 :  6:02:56 PM  Show Profile
My guess: the way VA uses symbols found somewhere else. e.g.: I have a class called "filename". Now, whenever i have a variable or a classmember or a struct member, it is colored as type.

I suppose that is somehow related.
Go to Top of Page

ether
Tomato Guru

USA
130 Posts

Posted - Oct 10 2005 :  07:01:24 AM  Show Profile
feline, I'm using VC6. I suspect that Uniwares is correct since I've seen this in every version since 4. Judging by yours, I'm guessing it has gotten worse when you throw VS.NET into the mix. On VC6, only right and left are colored as functions.

I've learned to live with, but just thought I'd throw it out there along with Uniwares coloring issues.
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Oct 10 2005 :  09:09:27 AM  Show Profile
quote:
Originally posted by ether

They've never really gotten it right. To this day a RECT's left and right members are colored as functions. Been that way since I started using VA (version 4 was the first I used).



Same here for VS .net 2003.

I'll test wrong coloring in VS .NET 2003 German with feline's example this evening and post my result...

Uniwares, does this happen in every project or just in a few very big ones?
Does it show up in a freshly created project also?


Edited by - WannabeeDeveloper on Oct 10 2005 09:13:25 AM
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Oct 10 2005 :  09:24:04 AM  Show Profile
quote:
Originally posted by WannabeeDeveloper

Uniwares, does this happen in every project or just in a few very big ones?
Does it show up in a freshly created project also?


As already reported to support, most of the coloring problems are gone after clearing history and rebuilding the database. Obviously some quirk in the upgrade from 1424 to 1426. Still a few odd colorings but not as bad. Am back to using 1426 now.

Since all my projects are somehow related, for sure it is something in MY headers which messes up the parser/coloring. As far as I can see, creating a "standard" project like MFC/WTL/ATL everything looks "normal". But then again, that doesnt help me much.

I actually find it very daring what you guys do with VAX; in the end its almost compiler and linker in one, just to give a bit more information to the programmer and change a few colors. Wow.
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Oct 10 2005 :  12:23:58 PM  Show Profile
Well, RECT still is colored wrong...


Colin, why does your example have brackets behind every member of the RECT? If I do copy&paste your example, it (of course) shows them colored as functions...

But the rest is colored okay. I also do see randomly underlining functions and classes, like henrik does...
Especially weird is that VAX underlines members of Gdiplus-Namespace while it also recognizes them as known functions or types..




Edited by - WannabeeDeveloper on Oct 10 2005 12:28:27 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 10 2005 :  4:55:43 PM  Show Profile
quote:
Originally posted by WannabeeDeveloper

Colin, why does your example have brackets behind every member of the RECT? If I do copy&paste your example, it (of course) shows them colored as functions...


because they are functions in the class QRect, which is the class that i used when i need a rectangle

since everyone else is going to just post code from areas i am not familiar with, i don't see why i shouldn't do the same in reverse

i can reproduce the colouring in VC6 quite easily. adding the code:

left();
right();


colours these as functions, and going alt_g on them takes me to

C:\\Program Files\\Microsoft Visual Studio\\VC98\\Include\\IOS

so this is where these function names are being picked up from.

case=822

WannabeeDeveloper i will let you look into the Gdiplus-Namespace code since you already have it typed in and happening.

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

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Oct 10 2005 :  7:21:33 PM  Show Profile
The problem is:
I really cannot understand why VAX colors the Gdiplus-Namespace right, but underlines it... I mean, it says that it recognizes Gdiplus and colors it and on the other Hand underlines it like mistyped symbols/functions...

ALT+G on Gdiplus::GdiplusStartupInput takes me to C:\\Program Files\\Microsoft Platform SDK\\include\\GdiPlus.h

Steps to repro the underlining:
Just restarted IDE to check underlining, but everything was fine.
Pasted in your code, removed brackets and edited =0 instead, typed foo. once, chose one entry from the suggestion, deleted the whole line again, scrolled down to the WinMain (see screen) and BANG: underlining!

Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Oct 23 2005 :  04:53:46 AM  Show Profile
Coloring of methods/members in the Gdiplus-namespace and its underlining is fixed in Build 1428.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000