Losing References


I keep losing references between projects. Code compiles fine but R#
complains that symbols are not recognized.

First I thought that it is problem with solution folders. So it just gave up
on them (my solution is not so big). But last time I recompiled the solution
I got tons of highlighting.

I never had it before after compilation though. Usually it happens on VS
restart.

Thanks


18 comments
Comment actions Permalink

I am having the exact same issue.

If I remove the reference in question, and then re-add it, resharper
correctly recognizes. However, as soon as I close VS and then reopen it,
the issue reappears.

My solution has dozens of projects, and this is problem manifests itself
whenever I reference two of them. I am unable to discern an obvious
difference between the projects that are correctly referenced vs. the two
that are not.

Help!

Thanks,
Alex


"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dvrlqq$6r6$1@is.intellij.net...


I keep losing references between projects. Code compiles fine but R#
complains that symbols are not recognized.

>

First I thought that it is problem with solution folders. So it just gave
up on them (my solution is not so big). But last time I recompiled the
solution I got tons of highlighting.

>

I never had it before after compilation though. Usually it happens on VS
restart.

>

Thanks



0
Comment actions Permalink

Hello,

this also looks to be related to some caching and number of projects
issues I've described in

news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net

Marco

I am having the exact same issue.

If I remove the reference in question, and then re-add it, resharper
correctly recognizes. However, as soon as I close VS and then reopen it,
the issue reappears.

My solution has dozens of projects, and this is problem manifests itself
whenever I reference two of them. I am unable to discern an obvious
difference between the projects that are correctly referenced vs. the two
that are not.

Help!

Thanks,
Alex


"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dvrlqq$6r6$1@is.intellij.net...

>>
>> I keep losing references between projects. Code compiles fine but R#
>> complains that symbols are not recognized.
>>
>> First I thought that it is problem with solution folders. So it just gave
>> up on them (my solution is not so big). But last time I recompiled the
>> solution I got tons of highlighting.
>>
>> I never had it before after compilation though. Usually it happens on VS
>> restart.
>>
>> Thanks
>>


0
Comment actions Permalink

Thanks Marco.

Unfortunately (probably due to my own stupidity) I can get to the link you
posted. My news reader (outlook express) cannot find the server
(news.jetbrains.com:119), presumably because of the port designation.

I looked on this newsgroup for the message
(news://news.jetbrains.com/du1iub$1kf$1@is.intellij.net), and found a
message by Wiebe Tijsma about partial classes, so I that is incorrect.

Anyway, I previously tried clearing the caches, and have also manually
deleted the resharper solution caches. Both have had no effect. I don't
know what the content of you post was, so I don't know if this is what you
proposed.

Please help!

Thanks,
Alex

"Marco von Frieling" <nospam.fex@web.de> wrote in message
news:dvtnrs$ifi$2@is.intellij.net...

Hello,

>

this also looks to be related to some caching and number of projects
issues I've described in

>

news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net

>

Marco

>
>> I am having the exact same issue.
>>
>> If I remove the reference in question, and then re-add it, resharper
>> correctly recognizes. However, as soon as I close VS and then reopen
>> it, the issue reappears.
>>
>> My solution has dozens of projects, and this is problem manifests itself
>> whenever I reference two of them. I am unable to discern an obvious
>> difference between the projects that are correctly referenced vs. the two
>> that are not.
>>
>> Help!
>>
>> Thanks,
>> Alex
>>
>>
>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>> news:dvrlqq$6r6$1@is.intellij.net...
>>>
>>> I keep losing references between projects. Code compiles fine but R#
>>> complains that symbols are not recognized.
>>>
>>> First I thought that it is problem with solution folders. So it just
>>> gave up on them (my solution is not so big). But last time I recompiled
>>> the solution I got tons of highlighting.
>>>
>>> I never had it before after compilation though. Usually it happens on VS
>>> restart.
>>>
>>> Thanks
>>>
>>

0
Comment actions Permalink

Hi Alexander,

I looked on this newsgroup for the message
(news://news.jetbrains.com/du1iub$1kf$1@is.intellij.net), and found a
message by Wiebe Tijsma about partial classes, so I that is incorrect.


No, that is the correct thread! Open it and have a look at it's postings...

0
Comment actions Permalink

I've read the whole thread. My problem is similar in that I have several
projects in a solution included a web project.

Was your issue ever resolved?


"Marco von Frieling" <nospam.fex@web.de> wrote in message
news:dvu53k$o5a$1@is.intellij.net...

Hi Alexander,

>> I looked on this newsgroup for the message
>> (news://news.jetbrains.com/du1iub$1kf$1@is.intellij.net), and found a
>> message by Wiebe Tijsma about partial classes, so I that is incorrect.
>

No, that is the correct thread! Open it and have a look at it's
postings...



0
Comment actions Permalink

Alexander May schrieb:

I've read the whole thread. My problem is similar in that I have several
projects in a solution included a web project.

Was your issue ever resolved?

No it isn't resolved yet.

Marco

0
Comment actions Permalink

I just got done adding a defect to the tracker for this with a sample project (two projects, two classes) and a screenshot.

This is the most frustrating bug for me.

0
Comment actions Permalink

Thanks.
I never could get around to this.

"Sean Goodpasture" <no_reply@jetbrains.com> wrote in message
news:28547523.1143131769720.JavaMail.itn@is.intellij.net...
>I just got done adding a defect to the tracker for this with a sample
>project (two projects, two classes) and a screenshot.
>

This is the most frustrating bug for me.



0
Comment actions Permalink

I managed to fix my issues. I removed all the affected projects (projects
that had dependences on other projects that resharper was not resolving)
from my solution, and then re-added them. I then re-added the appropriate
references (some of the removed and re-added projects depended on each
other). Now it seems to work. I don't know why or what is different.

At one point the projects were part of a different solution, and I suspect
that other solution was opened again at some point. Perhaps residual
information was being retained in the project files and was causing issues
for resharper. Or perhaps the information within the project and solution
files was simply reordered and is now no longer triggering a resharper bug.
Truth is, I don't know, but now it works. YMMV.

Alex



"Marco von Frieling" <nospam.fex@web.de> wrote in message
news:dvtnrs$ifi$2@is.intellij.net...

Hello,

>

this also looks to be related to some caching and number of projects
issues I've described in

>

news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net

>

Marco

>
>> I am having the exact same issue.
>>
>> If I remove the reference in question, and then re-add it, resharper
>> correctly recognizes. However, as soon as I close VS and then reopen
>> it, the issue reappears.
>>
>> My solution has dozens of projects, and this is problem manifests itself
>> whenever I reference two of them. I am unable to discern an obvious
>> difference between the projects that are correctly referenced vs. the two
>> that are not.
>>
>> Help!
>>
>> Thanks,
>> Alex
>>
>>
>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>> news:dvrlqq$6r6$1@is.intellij.net...
>>>
>>> I keep losing references between projects. Code compiles fine but R#
>>> complains that symbols are not recognized.
>>>
>>> First I thought that it is problem with solution folders. So it just
>>> gave up on them (my solution is not so big). But last time I recompiled
>>> the solution I got tons of highlighting.
>>>
>>> I never had it before after compilation though. Usually it happens on VS
>>> restart.
>>>
>>> Thanks
>>>
>>

0
Comment actions Permalink

Alex,

I can make this happen with a test solution (2 projects) with one file in each project, so your solution isn't 100%. (my test solution was made just to demonstrate the issue and was brand new).

There's something more to it (I think it has to do with how R# is caching the dlls for the referenced projects and VS.NET isn't releasing the files, so R# can't reparse the dll.... but that's just a guess).

0
Comment actions Permalink

Same solution here:

- had projects opended in two solutions at the same time, even moved
projects to solution folders which caused the mentioned issues.
- fix worked for me, too - thanks for posting :)

Cheers,
Philipp



Alexander May wrote:

I managed to fix my issues. I removed all the affected projects (projects
that had dependences on other projects that resharper was not resolving)
from my solution, and then re-added them. I then re-added the appropriate
references (some of the removed and re-added projects depended on each
other). Now it seems to work. I don't know why or what is different.

At one point the projects were part of a different solution, and I suspect
that other solution was opened again at some point. Perhaps residual
information was being retained in the project files and was causing issues
for resharper. Or perhaps the information within the project and solution
files was simply reordered and is now no longer triggering a resharper bug.
Truth is, I don't know, but now it works. YMMV.

Alex



"Marco von Frieling" <nospam.fex@web.de> wrote in message
news:dvtnrs$ifi$2@is.intellij.net...

>> Hello,
>>
>> this also looks to be related to some caching and number of projects
>> issues I've described in
>>
>> news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net
>>
>> Marco
>>
>>> I am having the exact same issue.
>>>
>>> If I remove the reference in question, and then re-add it, resharper
>>> correctly recognizes. However, as soon as I close VS and then reopen
>>> it, the issue reappears.
>>>
>>> My solution has dozens of projects, and this is problem manifests itself
>>> whenever I reference two of them. I am unable to discern an obvious
>>> difference between the projects that are correctly referenced vs. the two
>>> that are not.
>>>
>>> Help!
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>>> news:dvrlqq$6r6$1@is.intellij.net...
>>>>
>>>> I keep losing references between projects. Code compiles fine but R#
>>>> complains that symbols are not recognized.
>>>>
>>>> First I thought that it is problem with solution folders. So it just
>>>> gave up on them (my solution is not so big). But last time I recompiled
>>>> the solution I got tons of highlighting.
>>>>
>>>> I never had it before after compilation though. Usually it happens on VS
>>>> restart.
>>>>
>>>> Thanks
>>>>

0
Comment actions Permalink

I looked at the defect you filed and my issue appears to be different. Mine
did not occur after a compile a debug, but rather after I exited and
restarted VS. Also it did not get temporally fixed by opening and closing
the solution.


"Sean Goodpasture" <no_reply@jetbrains.com> wrote in message
news:28497692.1143159421552.JavaMail.itn@is.intellij.net...

Alex,

>

I can make this happen with a test solution (2 projects) with one file in
each project, so your solution isn't 100%. (my test solution was made
just to demonstrate the issue and was brand new).

>

There's something more to it (I think it has to do with how R# is caching
the dlls for the referenced projects and VS.NET isn't releasing the files,
so R# can't reparse the dll.... but that's just a guess).



0
Comment actions Permalink

Glad to hear it.

Alex


"Philipp Sumi" <nospam@this.domain.doesnotexist.xxx> wrote in message
news:e007fk$8id$1@is.intellij.net...

Same solution here:

>

- had projects opended in two solutions at the same time, even moved
projects to solution folders which caused the mentioned issues.
- fix worked for me, too - thanks for posting :)

>

Cheers,
Philipp

>
>
>

Alexander May wrote:

>> I managed to fix my issues. I removed all the affected projects
>> (projects that had dependences on other projects that resharper was not
>> resolving) from my solution, and then re-added them. I then re-added the
>> appropriate references (some of the removed and re-added projects
>> depended on each other). Now it seems to work. I don't know why or what
>> is different.
>>
>> At one point the projects were part of a different solution, and I
>> suspect that other solution was opened again at some point. Perhaps
>> residual information was being retained in the project files and was
>> causing issues for resharper. Or perhaps the information within the
>> project and solution files was simply reordered and is now no longer
>> triggering a resharper bug. Truth is, I don't know, but now it works.
>> YMMV.
>>
>> Alex
>>
>>
>>
>> "Marco von Frieling" <nospam.fex@web.de> wrote in message
>> news:dvtnrs$ifi$2@is.intellij.net...
>>> Hello,
>>>
>>> this also looks to be related to some caching and number of projects
>>> issues I've described in
>>>
>>> news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net
>>>
>>> Marco
>>>
>>>> I am having the exact same issue.
>>>>
>>>> If I remove the reference in question, and then re-add it, resharper
>>>> correctly recognizes. However, as soon as I close VS and then reopen
>>>> it, the issue reappears.
>>>>
>>>> My solution has dozens of projects, and this is problem manifests
>>>> itself whenever I reference two of them. I am unable to discern an
>>>> obvious difference between the projects that are correctly referenced
>>>> vs. the two that are not.
>>>>
>>>> Help!
>>>>
>>>> Thanks,
>>>> Alex
>>>>
>>>>
>>>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>>>> news:dvrlqq$6r6$1@is.intellij.net...
>>>>>
>>>>> I keep losing references between projects. Code compiles fine but R#
>>>>> complains that symbols are not recognized.
>>>>>
>>>>> First I thought that it is problem with solution folders. So it just
>>>>> gave up on them (my solution is not so big). But last time I
>>>>> recompiled the solution I got tons of highlighting.
>>>>>
>>>>> I never had it before after compilation though. Usually it happens on
>>>>> VS restart.
>>>>>
>>>>> Thanks
>>>>>
>>


0
Comment actions Permalink

Hello,

I managed to fix my issues. I removed all the affected projects (projects
that had dependences on other projects that resharper was not resolving)
from my solution, and then re-added them. I then re-added the appropriate
references (some of the removed and re-added projects depended on each
other). Now it seems to work. I don't know why or what is different.

At one point the projects were part of a different solution, and I suspect
that other solution was opened again at some point. Perhaps residual
information was being retained in the project files and was causing issues
for resharper. Or perhaps the information within the project and solution
files was simply reordered and is now no longer triggering a resharper bug.
Truth is, I don't know, but now it works. YMMV.

That might be so for our solution because there is the old VS 2003
Solution file in VSS. So I need to remove all projects from my solution,
maybe also create an empty solution file and then add the projects in
the correct order?

But there might be another reason for our problems, the place of the
solution file which is recommended by some management reasons I do not
understand. Here is our hierarchy:

- development root folder (also root in VSS repo)
- solution root folder
- project 1, 2 etc.
- sources of these projects
- solution_old folder (containing the old .NET 1.1 sources and also
the new web app)
- old projects 1, 2
- sources of these old projects
- website (converted from old code)
- new solution file


Marco


Alex



"Marco von Frieling" <nospam.fex@web.de> wrote in message
news:dvtnrs$ifi$2@is.intellij.net...

>> Hello,
>>
>> this also looks to be related to some caching and number of projects
>> issues I've described in
>>
>> news://news.jetbrains.com:119/du1iub$1kf$1@is.intellij.net
>>
>> Marco
>>
>>> I am having the exact same issue.
>>>
>>> If I remove the reference in question, and then re-add it, resharper
>>> correctly recognizes. However, as soon as I close VS and then reopen
>>> it, the issue reappears.
>>>
>>> My solution has dozens of projects, and this is problem manifests itself
>>> whenever I reference two of them. I am unable to discern an obvious
>>> difference between the projects that are correctly referenced vs. the two
>>> that are not.
>>>
>>> Help!
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>>> news:dvrlqq$6r6$1@is.intellij.net...
>>>>
>>>> I keep losing references between projects. Code compiles fine but R#
>>>> complains that symbols are not recognized.
>>>>
>>>> First I thought that it is problem with solution folders. So it just
>>>> gave up on them (my solution is not so big). But last time I recompiled
>>>> the solution I got tons of highlighting.
>>>>
>>>> I never had it before after compilation though. Usually it happens on VS
>>>> restart.
>>>>
>>>> Thanks
>>>>

0
Comment actions Permalink

Hi Marco,

the latest EAP build shouldn't have any problems with solution folders. i.e., any level of nested solution folders shouldn't cause ReSharper to ignore files, miss types in completion etc. Please check it. Thanks.

0
Comment actions Permalink

Hi Dmitry,

the latest EAP build shouldn't have any problems with solution folders.
i.e., any level of nested solution folders shouldn't cause ReSharper to
ignore files, miss types in completion etc.

We don't use solution folders. What we do is not making the .sln file
top-level or creating a folder, putting in the .sln and subfolders for
all the projects.
What I described is no solution folder hierarchy, it is the physical
folder hierarchy of our filesystem. I guess Microsoft thinks about
solutions being something like a bag with properties and containing all
the stuff in it. The german translation of "solution" is "Projektmappe"
meaning exactly this. And what we do is putting some of our stuff into
that bag and carrying the bag and the rest of our stuff (outside the
bag) in our hands. So that might be problematically!?

Marco

0
Comment actions Permalink

Hello Marco,

sorry, looks like I've misunderstood you. But anyway there shouldn't be any
problems
with physical folders hierarchy in the file systems. There were some issues
with virtual
solution folders but they must have already been fixed as well.


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

Hi Dmitry,

>> the latest EAP build shouldn't have any problems with solution
>> folders. i.e., any level of nested solution folders shouldn't cause
>> ReSharper to ignore files, miss types in completion etc.
>>

We don't use solution folders. What we do is not making the .sln file
top-level or creating a folder, putting in the .sln and subfolders for
all the projects.
What I described is no solution folder hierarchy, it is the physical
folder hierarchy of our filesystem. I guess Microsoft thinks about
solutions being something like a bag with properties and containing
all
the stuff in it. The german translation of "solution" is
"Projektmappe"
meaning exactly this. And what we do is putting some of our stuff into
that bag and carrying the bag and the rest of our stuff (outside the
bag) in our hands. So that might be problematically!?
Marco



0
Comment actions Permalink

Hello Dmitry,

I saw similar upgrading recently (actually mine was duplicate references)
- clearing out the solution cache cleared the problem though.

Ronnie

Hello Marco,

sorry, looks like I've misunderstood you. But anyway there shouldn't
be any
problems
with physical folders hierarchy in the file systems. There were some
issues
with virtual
solution folders but they must have already been fixed as well.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Hi Dmitry,
>>
>>> the latest EAP build shouldn't have any problems with solution
>>> folders. i.e., any level of nested solution folders shouldn't cause
>>> ReSharper to ignore files, miss types in completion etc.
>>>
>> We don't use solution folders. What we do is not making the .sln file
>> top-level or creating a folder, putting in the .sln and subfolders
>> for
>> all the projects.
>> What I described is no solution folder hierarchy, it is the physical
>> folder hierarchy of our filesystem. I guess Microsoft thinks about
>> solutions being something like a bag with properties and containing
>> all
>> the stuff in it. The german translation of "solution" is
>> "Projektmappe"
>> meaning exactly this. And what we do is putting some of our stuff
>> into
>> that bag and carrying the bag and the rest of our stuff (outside the
>> bag) in our hands. So that might be problematically!?
>> Marco


0

Please sign in to leave a comment.