6.1 Code Analysis Issues
Today I opened Visual Studio 2010 and began working on a project. I then
wanted to analyze the coverage results so I closed Visual Studio, downloaded
and installed the latest dotCover, then restarted Visual Studio. When I
closed Visual Studio I had no files with errors and the solution built and
ran with no issues. After I restarted Visual Studio, ReSharper is now
claiming 60 files have errors. The funny thing is that if I open each file
and do nothing else the code analysis bulb at the top is green or yellow as
appropriate and the file disappears from the Errors in Solution window.
I know I reported this issue during the EAP but unfortunately I still don't
have a good handle on how to reliably reproduce it. I originally thought it
was caused by updating files outside of Visual Studio (e.g. a command line
update from Git or Mercurial or from TortoiseGit or TortoiseHg). It seems
there are some other triggers here as well. I'm wondering if maybe I closed
Visual Studio while ReSharper 6.1 was analyzing another large batch of
files? The specific errors are along the lines of "Ambiguous reference:
ClassName" and "Cannot resolve symbol 'ClassName'". Based on this, it seems
ReSharper's analyze errors in whole solution is getting confused into
thinking there are duplicate classes somewhere.
Please sign in to leave a comment.
I just created a new ASP.NET MVC 3 project using the "Telerik MVC 3 Web
Application" template. Right out of the box solution-wide analysis was
enabled and nine files were listed in error - cannot resolve symbol Telerik.
When I double clicked each file listed, the errors in that file magically
disappeared.
"Greg Law" wrote in message
news:jd644g$3bt$1@nntp-server.labs.intellij.net...
Today I opened Visual Studio 2010 and began working on a project. I then
wanted to analyze the coverage results so I closed Visual Studio, downloaded
and installed the latest dotCover, then restarted Visual Studio. When I
closed Visual Studio I had no files with errors and the solution built and
ran with no issues. After I restarted Visual Studio, ReSharper is now
claiming 60 files have errors. The funny thing is that if I open each file
and do nothing else the code analysis bulb at the top is green or yellow as
appropriate and the file disappears from the Errors in Solution window.
I know I reported this issue during the EAP but unfortunately I still don't
have a good handle on how to reliably reproduce it. I originally thought it
was caused by updating files outside of Visual Studio (e.g. a command line
update from Git or Mercurial or from TortoiseGit or TortoiseHg). It seems
there are some other triggers here as well. I'm wondering if maybe I closed
Visual Studio while ReSharper 6.1 was analyzing another large batch of
files? The specific errors are along the lines of "Ambiguous reference:
ClassName" and "Cannot resolve symbol 'ClassName'". Based on this, it seems
ReSharper's analyze errors in whole solution is getting confused into
thinking there are duplicate classes somewhere.