Author |
Topic |
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 05 2004 : 09:45:36 AM
|
I just noticed that when I type in a bad symbol, it no longer gets a red underline (yup, I have that option checked). I've emailed a screenshot; my example is a CString that doesn't exist.
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 05 2004 : 10:26:08 AM
|
We get the feeling underlining of mistyped symbols stops working after some event. We are not sure. Fix requires a restart of the IDE.
If this happens to you, please watch for clues. We will send cookies to the person who finds a reproducable scenario.
This is Larry's screen shot:
|
Whole Tomato Software, Inc. |
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 05 2004 : 10:44:29 AM
|
Got it. Red underlining fails if the "bad" symbol is contained within a macro. For example, this is correctly red underlined: CString sModuleFile(Generic::FileFromPath(ModuleZFilePath)); ... but this is not ('hZr' is a bad symbol): if (SUCCEEDED(hZr)) hr = E_FAIL; I prefer oatmeal raisin. |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 05 2004 : 3:29:09 PM
|
Yup, that is it. Actually VA does this is on purpose because we had some strange underlining within certain macros like:
#define MAKE_MEMBER(member) int m_##member; int Get##member(){ return m_##member; } class foo{ MAKE_MEMBER(somevar); }; // We do not want to underline "somevar"
I'll notify our baking department to get in contact with you.
|
Whole Tomato Software, Inc. |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 07 2004 : 11:13:44 AM
|
Something for our documentation: If FOO() is a macro, nothing passed to FOO() it underlined, at least not in the instance when it is passed.
Our original concern still holds: We get the feeling underlining of mistyped symbols stops working after some event. When it occurs, all underlining stops and we cannot nudge underlining back into action. No clues. |
Whole Tomato Software, Inc. |
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 07 2004 : 4:11:33 PM
|
quote: I'll notify our baking department to get in contact with you.
I thought you were kidding! Thanks so much - these are easily the best oatmeal raisin cookies I've ever had. (I hope to have another one if I can pry my wife's hands off the can!)
I feel bad though, as I don't think I actually created a reproducible case... I'll keep looking. (This thread will be easy to find, as it's the only one I've used the word 'oatmeal' in!)
Thanks again!
|
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - May 07 2004 : 7:22:02 PM
|
quote: Originally posted by LarryLeonard
I thought you were kidding! Thanks so much - these are easily the best oatmeal raisin cookies I've ever had.
Are you kidding? Did they really send you some cookies?
This is sooo cool! |
|
|
|
support
Whole Tomato Software
5566 Posts |
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 09 2004 : 12:05:12 PM
|
quote: Originally posted by WannabeeDeveloper
Did they really send you some cookies?
Yup!
|
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 10 2004 : 2:48:50 PM
|
Okay, here's another example. In this line of code, m_bEnabled is not a member of the current class, yet it is not red underlined:
// Insert the item.
CString sEnabled(m_bEnabled ? "Yes" : "No");
int nItem(lc.InsertItem(0, sEnabled)); When I hover over it, the tooltip displays for a variable named m_bEnabled in an unrelated class! Also, The HCB displays that unrelated class. And, doing an Alt-G takes me to the variable's definition in the unrelated class's header file.
Doing the usual things (reparse, rebuild, clear, restart the IDE) has no effect. Let me know if you want more source code, and I can email it to you...
|
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 10 2004 : 3:01:12 PM
|
Is "Guess symbol definition" enabled on the C/C++ node of our options dialog? |
Whole Tomato Software, Inc. |
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - May 10 2004 : 5:00:04 PM
|
Um, yeaaaah... ewwwwww. I don't like that at all. It seriously needs to let me know that it's guessing. Change color, tooltip, something... It can't just switch into a whole different mode and not remind me what it's doing (because, as you see, I tend to forget).
I'll keep looking for a reproducible case...
|
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 10 2004 : 6:02:15 PM
|
If you disable the option, restart your IDE. It causes VA X to clear a bunch of short-term caches.
We expect to add a dialog when you disable. Should be in the next build or two, if not already in the one you have. |
Whole Tomato Software, Inc. |
|
|
|
Topic |
|