Bug 4335 - code inspection hints apply multiple times after failed compiles
Summary: code inspection hints apply multiple times after failed compiles
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: High normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-08 09:15 UTC by Csaba Halász
Modified: 2012-04-09 01:03 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
screenshot (4.38 KB, image/png)
2012-04-08 09:15 UTC, Csaba Halász
Details
proposed fix (692 bytes, patch)
2012-04-08 18:06 UTC, Csaba Halász
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Csaba Halász 2012-04-08 09:15:53 UTC
Created attachment 1631 [details]
screenshot

Given this sample code:

using System;
namespace Test
{
    class TestClass
    {
        public static void Main(foo[] args)
        {
        }
    }
}

The "using System;" is not required, hence it is shown in lighter color and has an associated tooltip saying "Hint: remove redundant usings".
Now if you try to compile this code, that hint gets applied once more after each failed build. The popup shows multiple lines, and the text gets less and less visible. See attached image.

If the compilation succeeds, the problem does not get worse, but the existing number of hints stay until the solution is reloaded.
Comment 1 Mike Krüger 2012-04-08 16:15:39 UTC
fixed that one - interresting effect btw.
Comment 2 Csaba Halász 2012-04-08 18:05:36 UTC
But now the hints are totally disabled. I came up with the attached small patch, which seems to fix it.
Comment 3 Csaba Halász 2012-04-08 18:06:06 UTC
Created attachment 1634 [details]
proposed fix
Comment 4 Mike Krüger 2012-04-09 01:03:05 UTC
Fixed, I shouldn't refactor after testing anymore :/