Cannot resolve symbol

I'm having an odd problem with resharper, suddenly. In some of my projects in one of my solutions, I'm getting "cannot resolve symbol" errors. It still compiles okay, though.

I know that this can be caused by a dll that has slightly different versions of itself, and the wrong one is being referenced, but I doubt that's the case here - I'm having problems with things like TextBox.Text.

I notice that the System.Windows.Forms using statement is greyed out, so resharper is definitely confused somewhere along the line. I tried clearing out the caches, but that didn't help at all.

7 comments
Comment actions Permalink

CJ wrote:

I'm having an odd problem with resharper, suddenly. In some of my projects in one of my solutions, I'm getting "cannot resolve symbol" errors. It still compiles okay, though.

I know that this can be caused by a dll that has slightly different versions of itself, and the wrong one is being referenced, but I doubt that's the case here - I'm having problems with things like TextBox.Text.

I notice that the System.Windows.Forms using statement is greyed out, so resharper is definitely confused somewhere along the line. I tried clearing out the caches, but that didn't help at all.


Are you using released or EAP version of ReSharper?

Friendly,
Dmitry
--
Dmitry Lomov
Senior Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"

0
Comment actions Permalink

It's the released version - version 1.5.1.

0
Comment actions Permalink

For future reference, I solved the problem. I deleted the solution .suo file (not sure if that had anything to do with it, though) and the solution resharper files, not the ones in Documents & Settings. Now it works fine.

0
Comment actions Permalink

I'm seeing the same thing, but deleting the .suo and resharper files doesn't seem to fix the problem. Removing ReSharper from the list of active Addins fixes the problem, but then of course I can't use the ReSharper functionality, so this isn't a good solution.

Is anyone else seeing this or know of a fix?

Thanks,
Andrew

0
Comment actions Permalink

Hello Andrew,

does it happen on every solution (including a freshly created one) or on
a particular solution?


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm seeing the same thing, but deleting the .suo and resharper files
doesn't seem to fix the problem. Removing ReSharper from the list of
active Addins fixes the problem, but then of course I can't use the
ReSharper functionality, so this isn't a good solution.

Is anyone else seeing this or know of a fix?

Thanks,
Andrew



0
Comment actions Permalink

It doesn't happen on every project or every file, but it has happened on two separate files today on two different projects. I'm going through some labs for work today, so I'm creating and using several different projects and solutions. You can see the problem in the attached screenshot. If I disable the ReSharper addin, all the red goes away. You can also see in this screenshot that the build completed successfully in this state.



Attachment(s):
resharper_error.jpg
0
Comment actions Permalink

Hello Andrew,

could you please tell me more about the situation on the attached screenshot?
In particular, what project
the file Class1.cs belongs to and what project the unresolved ('red') identifiers
(ProductInfoServices etc) are declared in?
Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

It doesn't happen on every project or every file, but it has happened
on two separate files today on two different projects. I'm going
through some labs for work today, so I'm creating and using several
different projects and solutions. You can see the problem in the
attached screenshot. If I disable the ReSharper addin, all the red
goes away. You can also see in this screenshot that the build
completed successfully in this state.



0

Please sign in to leave a comment.