This is a migrated thread and some comments may be shown as answers.

How to Fix Code Analysis giving false error

3 Answers 63 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
charith
Top achievements
Rank 2
charith asked on 30 Jun 2012, 04:27 PM
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 asp.net 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...
Solution..

  • 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.

3 Answers, 1 is accepted

Sort by
0
Andrei
Top achievements
Rank 1
answered on 05 Jul 2012, 12:43 PM
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.
0
charith
Top achievements
Rank 2
answered on 06 Jul 2012, 03:42 AM
@ 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)
0
Ivan
Telerik team
answered on 06 Jul 2012, 07:05 AM
Hi,

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!

Greetings,
Ivan
the Telerik team

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

Tags
Code Analysis
Asked by
charith
Top achievements
Rank 2
Answers by
Andrei
Top achievements
Rank 1
charith
Top achievements
Rank 2
Ivan
Telerik team
Share this question
or