Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA 2443: partial coloring

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Uniwares Posted - Feb 15 2022 : 06:44:55 AM
VS2022, C#, Find References result window, code tooltips:

What appears in the tooltip, with a notable delay in syntax coloring (about 500-700ms):


And what the same code part looks like in the text editor:



12   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 17 2022 : 08:16:13 AM
Good that we have confirmed it is VA doing this. Would it be possible to get your test solution, along with your IDE and VA settings? Fingers crossed I can then reproduce this here.

As you already know, settings exported via:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

Please send me the files via email:

[email protected]

including this thread ID or URL in the description, so we can match it up.
Uniwares Posted - Feb 17 2022 : 07:09:24 AM
All back to normal (uncolored) with VA disabled. So there might be some minor bug in the trial expiry verification. But still, all other tooltips do NOT show this behavior. just that nasty little references tooltip.
feline Posted - Feb 17 2022 : 06:29:51 AM
Just as a quick sanity check, if you go into the:

IDE Extensions menu -> Manage Extensions

dialog and disable Visual Assist, which will require an IDE restart, do you still see this odd colouring effect? With VA disabled, in theory, VA should not be having any effect on these tooltips, but it does look like VA might still be active, which seems wrong. This test should tell us for certain if VA is a factor or not.
Uniwares Posted - Feb 16 2022 : 1:07:20 PM


Uniwares Posted - Feb 16 2022 : 1:01:00 PM
Now thats interesting: my trial license for VA243 has expired, VA is dormant but some tooltips still get colored (especially the ones from "Find all References") makes no sense. (Win7, VS2022 17.1)




From the text editor:


Can we reverse the license logic for those tooltips?
Uniwares Posted - Feb 16 2022 : 09:48:55 AM
I have about 5000 .cs files in the solution, most of them over 1000 lines, some exceeding 20k. System is average, nothing really heavy going on. Solution loads in about 20 seconds. Strangely I see the coloring delay even on Win10 with a really small test project, so this might be coming from VS2022. I will see how it acts without VA.
feline Posted - Feb 16 2022 : 09:36:33 AM
So far no sign at all of any of these problems. My Find References Results tooltips are fully coloured as soon as they appear. I am testing "Proponents.ascx.cs", went to line 6905 and did a Find References on "ucSimulator"

Lots of large to very large tooltips are appearing from the Find References Results list, so seems like a good test case.

How many files do you have in your solution?

Is the system under heavy load when you see this?

I am wondering if there is a performance element at work here, causing the tooltip colouring to run slow. But if so I would expect the size of the tooltip to be a factor, at least to some degree.
Uniwares Posted - Feb 16 2022 : 06:51:53 AM
You can use the file(s) i sent by mail. Although they include dozens of datatypes declared outside, so they may not show up useful information. But anyway, most of the tooltips show only limited or partial coloring, on any line of code. So it's definitely not the complexity of the line shown.
feline Posted - Feb 16 2022 : 06:16:00 AM
The "good" news is that colouring is expected and should work normally under Windows 7 64bit in VS2022, it does for me. That just leaves us with all of the colouring problems in this tooltip.

I have set up the following C# code sample to get a start on replicating what you have here. Am I going in the right direction with this? So far no sign of any tooltip colouring problem, but my code sample is a lot simpler, so that might be a factor.

class testForumFindRefTooltip
{
    class dataRateType
    {
        public string Description;
    }
    class dataSampleRate
    {
        public dataRateType RateType;
    }
    class dataGlobalSimulationResult
    {
        public dataSampleRate SampleRate;
    }
    class dataSccn
    {
        public dataGlobalSimulationResult GlobalSimulationResult;
    }
    void testUsingDataClasses()
    {
        dataSccn sccn;
        int rateTypeDesciption = !string.IsNullOrEmpty(sccn?.GlobalSimulationResult?.SampleRate?.RateType?.Description) ? sccn?.GlobalSimulationResult?.SampleRate?.RateType?.Description.Length : 0;

    }
}
Uniwares Posted - Feb 16 2022 : 05:34:24 AM
I just tried under Win10 and VS2022, the coloring delay persists, and the results are "better" though still not identical.
Uniwares Posted - Feb 15 2022 : 1:55:58 PM
My guess is that since its under Win7 I get "some" coloring.
feline Posted - Feb 15 2022 : 1:37:14 PM
Unfortunately the Find References Results tooltip not being coloured in newer versions of Windows is a known bug:

case=141555

the trigger is something about the OS, rather than the IDE or version of VA, just to make things "simple". The odd thing is that you are getting any colouring at all in the tooltip.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000