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
 No refactoring on #define
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - Aug 06 2008 :  03:44:15 AM  Show Profile  Reply with Quote
Example:

#define BITMASK 0x200
if (value & BITMASK) ;
value += ~BITMASK;

When I place the mouse on BITMASK in the second line I get a refactoring menu. That is fine.

When I place the mouse on BITMASK in the first line (the #define) I don't get this menu. It is quite annoying to always look for a place where the define is used to rename it. Or even to figure out whether it is used at all without beeing able to use "Find References".

Additionally the refactoring menu doesn't work on the third line, too. The "~" is shown in the same color as the symbol and the Menu says "Refactoring not available on symbol". It seems that the operator is interpreted as part of the symbol.

mtwombley
Senior Member

Canada
29 Posts

Posted - Aug 06 2008 :  11:23:24 AM  Show Profile  Reply with Quote
quote:
Originally posted by jwiesemann

Example:

#define BITMASK 0x200
if (value & BITMASK) ;
value += ~BITMASK;

When I place the mouse on BITMASK in the second line I get a refactoring menu. That is fine.

When I place the mouse on BITMASK in the first line (the #define) I don't get this menu. It is quite annoying to always look for a place where the define is used to rename it. Or even to figure out whether it is used at all without beeing able to use "Find References".

Additionally the refactoring menu doesn't work on the third line, too. The "~" is shown in the same color as the symbol and the Menu says "Refactoring not available on symbol". It seems that the operator is interpreted as part of the symbol.



I'm seeing the something similar with build 1647.
On the #define and 'if' lines I can rename and find.
On the '~' line I only have find. If I put a space between '~' and BITMASK then the rename options comes up.

Mark
Go to Top of Page

jwiesemann
Junior Member

14 Posts

Posted - Aug 07 2008 :  04:34:38 AM  Show Profile  Reply with Quote
quote:

I'm seeing the something similar with build 1647.
On the #define and 'if' lines I can rename and find.
On the '~' line I only have find. If I put a space between '~' and BITMASK then the rename options comes up.

Mark



It doesn't work with my build 1647 on VC6 on the #define line. This is my main problem.

Of course the space does help. I would still consider this a bug.

Joachim
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Aug 07 2008 :  10:52:59 AM  Show Profile  Reply with Quote
I am seeing both problems, thank you for the clear descriptions. Having to put a space between the ~ and the variable name is:

case=18979

The hovering refactoring menu not appearing where the #define is created is:

case=9622

There are a couple of work arounds for this. Either use VA's Shift + right click menu on the #define, or select BITMASK on this line and then hover the mouse over the selected text. The refactoring context menu is offered when the text is selected.

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

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2011 :  11:16:49 PM  Show Profile  Reply with Quote
case=18979 is a duplicate of case=4312, and is fixed in build 1859

Whole Tomato Software, Inc.
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