Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Oct 03 2005 : 3:57:05 PM
|
I still have that problem with the weird colored files after the "stale code" warning.
How to repro: Enable edit-and-continue, debug, break, add a new variable in a new scope with the name of an existing one to the code you are broken in, continue. the compiler will issue warning 2004 (Cannot handle adding or removing a local variable with a name that is already defined more than once:). VS will open the old code as .tmp file. The whole file is colored in purple. |
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Oct 03 2005 : 4:09:02 PM
|
"Stale Code" is one of the "Display Items" in the "Fonts and Colors" IDE Options page - default is purple. |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Oct 03 2005 : 8:49:57 PM
|
Ok, but... its still a c++ source code, but totally without any syntax coloring now. And it does not apply purple to only the "stale code" but rather to the whole file. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Oct 04 2005 : 03:47:21 AM
|
well - source code in a temp file (a non-source code file type).
You wrote "that problem with the weird colored files" - are you saying that VA is causing weird coloring or that you expect VA to color the tmp file?
|
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Oct 04 2005 : 07:57:02 AM
|
I would excpect (hope?) that VA would color it, but then again, its probably not really possible to determine what the hell is that text in the screen, just from the contents. (well, maybe compare it with the other open files and then take a best guess from the closest match)
Anyway, its not really that important. Keep that one for rainy days when all other bugs are fixed |
|
|
|
Topic |
|