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
 Tooltip Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

phunkydizco
Junior Member

20 Posts

Posted - Jun 18 2012 :  05:48:47 AM  Show Profile  Reply with Quote
I have an issue with tooltips that freezes the whole IDE for a view seconds. I have opened a C# solution with many projects in VS2005. One of the projects contains some javascipt api files. When I start tipping a variable name sometimes the IDE freezes and shows a tooltip of this js files. With the code in the screenshot I can reproduce this issue every time. What can I do to eliminate the freezes?



feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Jun 18 2012 :  10:26:29 AM  Show Profile  Reply with Quote
Can you try turning off:

VA Options -> Advanced -> Display -> Display comments from source files when available

and see if this has any effect? I am wondering if the size of the comment in the tooltip is related to this problem. Normally VA limits how much text it will show in a tooltip, so I am not sure how you have such a large, and slow tooltip. Is that comment a single very long line? Ir is VA pulling in several lines of text that are not actually part of the comment?

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

phunkydizco
Junior Member

20 Posts

Posted - Jun 18 2012 :  11:09:21 AM  Show Profile  Reply with Quote
The option 'Display comments from source files when available' was already turned off.

The source of the javascript file is in one single line. Opening that file in VS is also very slow. VA shows most parts of the line as comment (green).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Jun 18 2012 :  12:43:14 PM  Show Profile  Reply with Quote
Does turning off:

VA Options -> Advanced -> Display -> Enable automatic Quick Info ToolTips

make any difference?

Would it be possible to get a copy of this JavaScript API file, for testing purposes? I understand this is often not possible, but it is worth asking on the off chance. If this was possible, please submit the file via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

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

phunkydizco
Junior Member

20 Posts

Posted - Jun 20 2012 :  04:05:29 AM  Show Profile  Reply with Quote
Turning off this option does not make any difference.

Sorry, but it is not possible to send you the file.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Jun 21 2012 :  11:50:34 AM  Show Profile  Reply with Quote
What can you tell me about this API file, and how your solution is set up, to help me try to set up a test here?

Is the JavaScript API file part of your C# solution?
How large is the JavaScript API file? What is the file size on the hard drive?

Are you able to edit the JavaScript API file, to split the file into multiple lines, to see if this has any effect? I am wondering if this makes opening the file in the IDE any faster, and also if this has any effect on this tooltip problem.

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

phunkydizco
Junior Member

20 Posts

Posted - Jun 25 2012 :  08:21:43 AM  Show Profile  Reply with Quote
You can find a similar file here: http://raphaeljs.com/

The file is part of a project and other projects reference it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Jun 25 2012 :  1:30:44 PM  Show Profile  Reply with Quote
Thank you for the link, this is a rather long single line of JavaScript.

Do I need to do anything in particular to use this .js file? I have added this .js file to an existing C# project, and then added the function:

void testingJSFileVariables()
{
    List<string> cF;
    List<string> cE;
    List<string> cD;
    List<string> cq;
    List<string> cp;
    List<string> cb;
    List<string> bH;
    List<string> bG;
}

to a .cs file in this project. All of the variable names are taken from the VA Outline view of this .js file, so these should be symbol names that are recognised, but I am not seeing any tooltips or slow downs. So I am assuming there is something else I need to do, but I don't know what that something is.

Looking more closely at the screen shot you posted, you have typed "l" but the tooltip seems to be for "o". Do the tooltips often seem to refer to the wrong item?

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

phunkydizco
Junior Member

20 Posts

Posted - Jun 26 2012 :  04:36:43 AM  Show Profile  Reply with Quote
The tooltip occurs in another project which references the project with the Javascript file. I only type one letter and wait a moment. I type "i" and the tooltip shows i=0. So it seems to refer to the right item.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Jun 26 2012 :  6:09:36 PM  Show Profile  Reply with Quote
*ah* that was it, now I have added the .js file to one project, and added this project as a dependency to a second project, I can reproduce this pause and giant tooltip in the second project:

case=67497

Thank you for your patience in helping me reproduce this problem.

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

support
Whole Tomato Software

5566 Posts

Posted - Aug 09 2012 :  02:03:28 AM  Show Profile  Reply with Quote
case=67497 is fixed in build 1912

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000