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
 Refactoring not available on symbol
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

enigma
Senior Member

49 Posts

Posted - Mar 21 2007 :  03:12:51 AM  Show Profile  Reply with Quote
Sometimes the "find reference" operation is simply not working for a .net 1.1 solution with 11 c# projects. I don't know why this is the case. I wait for a full minute but the symbol is still not available. How to solve this problem?

This is the VAX information:
VA_X.dll file version 10.3.1549.0 built 2007.03.16
Licensed to:
VA X: [email protected] (1-user license) Support ends 2007.09.19
VAOpsWin.dll version 1.3.4.8
VATE.dll version 1.0.6.2
DevEnv.exe version 7.10.6030.0
msenv.dll version 7.10.6030.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:

Library Includes:

Other Includes:


This is the vs. net c# information

Microsoft Visual C# .NET 69458-005-0446806-18546
Microsoft Visual Studio .NET 2003 Service Pack 1 (KB918007)

http://itscommonsensestupid.blogspot.com/

Edited by - enigma on Mar 21 2007 03:14:42 AM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 21 2007 :  11:59:39 AM  Show Profile  Reply with Quote
If you hover the mouse over a different symbol, is refactoring available there?
If you hover the mouse over a symbol where refactoring is offered, and then move the mouse back to this problem symbol does this help at all?

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

MrDoomMaster
Tomato Guru

251 Posts

Posted - Mar 21 2007 :  12:19:12 PM  Show Profile  Reply with Quote
I'm having similar issues as well.

Sometimes, a variable (for example) will not display the little refactoring symbol when I hover over it with the mouse cursor. HOWEVER, if I shift+right click the same variable, the refactoring context menu is available (which means refactoring is functioning, just not the floating icon).

It varies time to time when it fails to work, I can't really give steps to reproduce the problem. It's very random. I'd say that in a large-scale 300 source file project, it occurs maybe 4-5 times out of every 10 tries. Even when I manually re-parse the file, it still fails to show the hovering icon for the same variable. However, other variables in the same file show the symbol when hovering.

I'm using beta build 1549.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 21 2007 :  2:16:38 PM  Show Profile  Reply with Quote
MrDoomMaster which IDE and language are you using?

To both of you, if you turn on VAView does the HCB update when you hover the mouse over symbols? I am looking for any sort of pattern or clue here.

I have just tried hovering the mouse over several different symbols. I am seeing some slight "problems" with getting the refactoring icon to show up, but this seems to be mainly related to the mouse position. If the pointer is not in the right position, properly over the variable, then it will not trigger this icon.

I am also wondering about tooltips. We have had problems before now with the refactoring icon overlapping, or being hidden by the tooltip.

Is there any sort of pattern to this problem?

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

khb
Tomato Guru

Germany
337 Posts

Posted - Mar 21 2007 :  2:28:56 PM  Show Profile  Reply with Quote
I also faced this problem today several times with build 1549, VS2005, WinXP. I'm not at work any more today, so I can't check the HCB now, but IMHO tooltips are not the problem. When the refactoring symbol didn't show up, I tried to envoke the refactoring menu by using Shift+RClick, but the item "Find References" (and most of the others) was always disabled.

Regards,
Marcus.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 21 2007 :  2:48:12 PM  Show Profile  Reply with Quote
Does a manual reparse resolve the problem when it occurs (Alt+A,T,R)?
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Mar 21 2007 :  3:27:14 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

MrDoomMaster which IDE and language are you using?

To both of you, if you turn on VAView does the HCB update when you hover the mouse over symbols? I am looking for any sort of pattern or clue here.

I have just tried hovering the mouse over several different symbols. I am seeing some slight "problems" with getting the refactoring icon to show up, but this seems to be mainly related to the mouse position. If the pointer is not in the right position, properly over the variable, then it will not trigger this icon.

I am also wondering about tooltips. We have had problems before now with the refactoring icon overlapping, or being hidden by the tooltip.

Is there any sort of pattern to this problem?



I'm having trouble remembering the numerous abbreviations used on the forum regarding VAX features. HCB was explained to me at one point but I no longer remember the meaning anymore. Apologies.

I don't use the VA View much, but I just tried using it while I was hovering over various member variables in a class. Isn't the bottom half of the VA View supposed to update to show members of a class when you hover over a class name? Well, it's completely blank and not doing anything regardless of what I hover my mouse over. Again, I don't ever use the VA View so I may just be forgetting what it's supposed to be doing.

When I hover over class names to see if they appear in the VA View, the refactoring icon appears but the VA View is still empty. I'm not sure if this is related to the refactoring icon issue, but I thought I'd mention it anyway.

I'm using Visual Studio 2005 Professional, C++, VAX Build 1549

Normally the hovering icon can be a "pain" to get to show up sometimes, as if your cursor isn't precisely within the bounds of the variable it won't show up. When I have trouble making the refactoring icon appear over a variable, I normally click a few times or adjust the position of my mouse cursor and that usually fixes the problem. However, in some cases doing the re-adjustment of my cursor 5-10 times doesn't even help it. It just seems broken sometimes.

Again, I can't really think of more I can say to help give more details on the issue. If I knew what HCB was I would most certainly check that out for you.

In the meantime, please ask any questions you may have and I'll do my best to answer them.

@sean:
I stated in my first reply to this thread that a manual reparse normally doesn't fix the problem. Also, my estimation of 4-5 out of 10 times was a bit of an exaggeration. It's more like 1 out of 20-30 times now that I think about it. I think it may have to do with how fast the code is changing. But if that were the case, you'd think that a manual reparse would fix it. Next time the problem happens I'll most certainly keep track of more details to present. Sorry I can't be more helpful.

Edited by - MrDoomMaster on Mar 21 2007 3:29:01 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 21 2007 :  4:28:05 PM  Show Profile  Reply with Quote
HCB stands for Hovering Class Browser, which is the bottom half of VAView. This should be updating, so if it never shows you anything then this is a problem.

If you use the mouse to select the VAView tab then you need to click back into the editor, to put focus there, before hovering over a function or variable will update the HCB, so this might explain why it was not updating at all.


khb I think you are seeing a different problem, can you try a manual reparse when this happens?

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

MrDoomMaster
Tomato Guru

251 Posts

Posted - Mar 21 2007 :  6:05:51 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

If you use the mouse to select the VAView tab then you need to click back into the editor, to put focus there, before hovering over a function or variable will update the HCB



This is exactly what I was doing. It still failed to work.

BTW, Thank you for explaining HCB. I'll try to remember it.
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Mar 21 2007 :  6:09:26 PM  Show Profile  Reply with Quote
I think I might have a reproducible case for the issue of the refactoring icon not appearing.

1) Go to any function in code that has more than one local variable defined inside of it.
2) Hover over one of the local variables and select "Rename" from the refactoring menu. Rename it to anything you wish.
3) Now hover over a different variable, preferably all of the ones that weren't involved in the rename, and see if the refactoring icon appears for any of them. If it works, try this several times in other functions that also have a few local variables in them. It may take a few shots to get it to break.
4) If you eventually find a situation where the refactoring icon doesn't appear, attempt to manually reparse the file. It should still be broken. However, shift + Right Click still seems to work regardless.

This what usually causes it for me, not sure if others are experiencing the same with "Rename". Let me know if this was helpful. I'll follow-up if I find any other reproducible cases.
Go to Top of Page

khb
Tomato Guru

Germany
337 Posts

Posted - Mar 22 2007 :  03:11:09 AM  Show Profile  Reply with Quote
I have the problem quite permanently. It happens most of the time after switching between files. I mentioned the refactoring menu earlier: Forget it. Yesterday, when I wrote the the post above I forgot that "Find References" is in parallel to the menu. So, all in all: When I hover over a variable/function/type, sometimes the refactoring arrow doesn't show up. In this case the "Find References" item in the Shift+RClick menu is disabled, too. When this happens, sometimes the HCB is not updated correctly, but in the most cases it is. Anyway, if the refactoring menu or "Find References" is available, then the HCB is always correct. Hope this helps.

Regards,
Marcus.

P.S.: Manual reparse doesn't help. Anyway, when the problem occurs for, e.g., a variable and it suddenly works for it, then, without modifying the file, it can happen that it stops working again after some time. Inbetween I just hovered over some other variables.

Edited by - khb on Mar 22 2007 03:18:12 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 22 2007 :  12:48:22 PM  Show Profile  Reply with Quote
quote:
Originally posted by MrDoomMaster

I think I might have a reproducible case for the issue of the refactoring icon not appearing.


How easily are you able to reproduce this? I have just done (I think) 20 renames on local variables, across 4 different functions, all in the same cpp file.

I have been hovering the mouse over other variables a lot after each rename, and I am not getting any problems at all.

The closest I have come so far is that occasionally when I move the mouse away from a symbol the refactoring icon does not disappear from that symbol, so it is not offered on the next symbol, but one or two more hovers fix this quite easily.

I can email you the project I have been testing in if you are interested in trying this on your machine.

I would have expected to see the problem before now if I was doing the right thing.

Do you have any other plugin's installed?
Are you running any system utilities or programs that might be effecting the mouse, or how VA detects mouse hover events?

I am wondering why you seem to be seeing such different results to me.

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

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 22 2007 :  12:54:33 PM  Show Profile  Reply with Quote
quote:
Originally posted by khb

I have the problem quite permanently.


*sigh* The only good news is that the problem is easy to reproduce, which is something.

Which IDE and version of VA are you using? Which language are you programming in? I am not seeing this info in this thread.

Is this a new problem with 1549, or have you had this problem before?

Are you working with more than one solution at the moment, or only the one? I am wondering if this problem is solution, or even file specific?

Can you try running a CPU monitor, and see if this offers any clues? If the CPU is running at 100% when these options are not available, but they are available when it returns to normal this would answer one question, while raising another.

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

MrDoomMaster
Tomato Guru

251 Posts

Posted - Mar 22 2007 :  2:26:40 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

quote:
Originally posted by MrDoomMaster

I think I might have a reproducible case for the issue of the refactoring icon not appearing.


How easily are you able to reproduce this? I have just done (I think) 20 renames on local variables, across 4 different functions, all in the same cpp file.

I have been hovering the mouse over other variables a lot after each rename, and I am not getting any problems at all.

The closest I have come so far is that occasionally when I move the mouse away from a symbol the refactoring icon does not disappear from that symbol, so it is not offered on the next symbol, but one or two more hovers fix this quite easily.

I can email you the project I have been testing in if you are interested in trying this on your machine.

I would have expected to see the problem before now if I was doing the right thing.

Do you have any other plugin's installed?
Are you running any system utilities or programs that might be effecting the mouse, or how VA detects mouse hover events?

I am wondering why you seem to be seeing such different results to me.



I have Devpartner Studio installed, as well as Comment Reflower. Comment reflower uses the context menu of visual studio when you right-click a comment block to word-wrap it for you. That's about the limitations of its coupling to the mouse cursor.

I wasn't surprised to hear that you couldn't reproduce the problem. It was a long-shot, and I wasn't even sure that it was the real problem. However, it did happen ONCE and it might have been just something random. I've not had any problems getting the refactoring arrow to show up lately.

In conclusion, I thought my problem was related to the OP's problem, but it obviously isn't. His problem is far more severe and more reproducible. I saw the topic and figured I might be seeing the same problems. But when my refactoring arrow doesn't appear (as rare as that is), at least the shift+right click menu works. My problem isn't "permanent" either.

I don't believe that my specific issue is helping the original problem nor is it a big deal to me. It really is so rare it isn't a big deal. In fact, it's so rare that I have trouble remembering the circumstances under which it occurred. I apologize for getting the problems confused. For now I say that my problem can be ignored. If it does get severe later and I am able to find steps to reproduce, I'll create a new thread with details. It's a bit hard to expect anyone to be able to solve a problem that can't be reproduced!

Thanks for your help Feline, sorry for the trouble.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 22 2007 :  2:40:27 PM  Show Profile  Reply with Quote
It is good to know your problems are not to bad. As you say, things that we cannot reproduce are always a challenge to fix, but we do try

On a rather unrelated front, prompted by your comment:

quote:
Originally posted by MrDoomMaster

I'm having trouble remembering the numerous abbreviations used on the forum regarding VAX features.


we now have a new FAQ:
http://docs.wholetomato.com?W129

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

khb
Tomato Guru

Germany
337 Posts

Posted - Mar 23 2007 :  03:32:34 AM  Show Profile  Reply with Quote
As I already mentioned in the fifth post of this thread, I'm using build 1549, VS2005, WinXP . I have no other add-ins. OS and IDE are English. I haven't seen this problem before 1549. I have a single solution with 24 projects.

In my test case I have about 20 files open. If I switch to an open file and hover over a variable/function/etc. (X) the first time, then no refactoring arrow (RA) is shown. At this time I get a CPU spike of about 5-7 seconds. Then, when I move the mouse away from X and over it again, then the RA is still not shown. But if I move to another X after the spike first, then it works. If I then hover over the first X again, then it works, too.

I can reproduce this scenario everytime I switch to another file. Only the first time I hover over an X I get a CPU spike. In very rare cases the first hovering works, but then the CPU spike starts and no RA is shown any more until I do what I described above.

Regards,
Marcus.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 23 2007 :  03:57:23 AM  Show Profile  Reply with Quote
Thanks Marcus - I'm seeing something similar. Will look further into it...
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 26 2007 :  11:48:53 AM  Show Profile  Reply with Quote
case=5682
Go to Top of Page

khb
Tomato Guru

Germany
337 Posts

Posted - Apr 08 2007 :  04:40:31 AM  Show Profile  Reply with Quote
Are there any news on this? I hope you can fix the problem soon. I really need this feature working when inspecting "unknown" code...

Regards,
Marcus.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 09 2007 :  1:03:24 PM  Show Profile  Reply with Quote
We are hoping for a fix in the next build.

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

khb
Tomato Guru

Germany
337 Posts

Posted - Apr 10 2007 :  12:30:18 PM  Show Profile  Reply with Quote
Fine. Good news! Thank you.

Regards,
Marcus.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 14 2007 :  12:26:05 AM  Show Profile  Reply with Quote
Fixed in 1553.
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