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
 1233/.NET2K3: Bad symbols not red underlined
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 05 2004 :  09:45:36 AM  Show Profile
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  Show Profile
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.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 05 2004 :  10:44:29 AM  Show Profile
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.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 05 2004 :  3:29:09 PM  Show Profile
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.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 07 2004 :  11:13:44 AM  Show Profile
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.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 07 2004 :  4:11:33 PM  Show Profile
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!
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - May 07 2004 :  7:22:02 PM  Show Profile
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!

Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 07 2004 :  10:33:09 PM  Show Profile
You're welcome. Larry.

As for the topic, we updated our doc for underlining of mistyped symbols to explain what VA X does when it encounters symbols in macros.

http://www.wholetomato.com/products/features/mistyped.html?more=yes

Whole Tomato Software, Inc.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 09 2004 :  12:05:12 PM  Show Profile
quote:
Originally posted by WannabeeDeveloper

Did they really send you some cookies?
Yup!
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 10 2004 :  2:48:50 PM  Show Profile
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...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 10 2004 :  3:01:12 PM  Show Profile
Is "Guess symbol definition" enabled on the C/C++ node of our options dialog?

Whole Tomato Software, Inc.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 10 2004 :  5:00:04 PM  Show Profile
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...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 10 2004 :  6:02:15 PM  Show Profile
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.
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