How to Fix Code Analysis giving false error

Thread is closed for posting
4 posts, 0 answers
  1. charith
    charith avatar
    2 posts
    Member since:
    Apr 2011

    Posted 30 Jun 2012 Link to this post

    Hi , i updated my just code to Version Q2 2012 (2012.2.622.1) SP1 Internal  and I installed Visual Studio 2010 SP1
    then when i tried to open 2.0 based web application just code started to gives me false error like
    1. asp:Content Tag not Registered
    2. it cant even identify Response.Redirect("URL");

    + many more.. i think there was more than 3000 errors and false warnings.

    however when i debug my project it did work fine.. but as I'm addicted to just code's features and its easy to use functionality,
    it was boring and troubling me to code with just code errors.

    if anyone have the same problem fix it as i did...

    • Go to Main Menu--> Just code
    • go to Analysis -> Select  "Ignore All Errors"       this will give you a prompt.. click OK
    • again go to Analysis -> select   "Ignore All Warnings"  the click OK ..
    • Rebuild your Project
    • go to Analysis-> Select "unignore all ignored Errors and Warnings "

    here we go again........ just code is back in action as it is meant to be.

  2. Andrei
    Andrei avatar
    30 posts
    Member since:
    May 2012

    Posted 05 Jul 2012 Link to this post

    But don't we effectively disable code analysis by doing this? That is, it still runs but just doesn't show us any errors and warnings.
  3. charith
    charith avatar
    2 posts
    Member since:
    Apr 2011

    Posted 05 Jul 2012 Link to this post

    @ Andrei : 
     i think we are only refreshing just-code.  as we are re enabling errors and warnings.
    if you have the same problem you may have noticed that once you do  refresh just code, it will start to give you all the code editing, navigation and mocking functionality  again. therefor we cant say that we are hiding those errors. i think we are giving manual refresh to just code.( if im not mistaken)
  4. Ivan
    Ivan avatar
    106 posts

    Posted 06 Jul 2012 Link to this post


    Thank you for your feedback. JustCode refreshes the analysis after a rebuild of the solution.
    And this is what actually happened. You can do that also manually by selecting JustCode->Analysis->Refresh Code Analysis. Since we depend on the Visual Studio API there could be  an unexpected situation in which we show false errors. That is why we added this command.
    Ignoring the errors does not stop the analysis, it just tells JustCode not to show these errors.
    If you have any more questions or remarks, please do not hesitate to contact us again!

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top