Intellisense occasionally turns off

I've been using  Build 5.0.1648 of Resharper, and sometimes, after switching back and forth between applications and VS.Net, Intellisense in VS.Net 2008 on Win2003 Server just stops working.  None of the triggers other than ctrl-space work at that point.  I don't have any steps to reproduce this yet.

Other than that.... Resharper 5.0 has solved most of the issues that plagued me with 4.5.  Nice work.

16 comments
Comment actions Permalink

I think this happened to me after I suffered an out of memory exception (not related specifically to R# but the fact I only have 3gb of ram currently and i truly was OOM)

0
Comment actions Permalink

This is happening to me too with alarming frequency. I can basically only work 10-15 minutes before Intellisense just stops working. I've just upgraded to 5.0.1659.36 and VS 2010. I also have VisualSVN installed. It definitely has something to do with memory. Although I have 4GB installed on this Windows 7 system, it doesn't seem to be enough now.

This has started to make coding pretty miserable, having to exit and restart VS every 20 minutes or so.

0
Comment actions Permalink

Hello,

Which exactly features do you mean? IntelliSense is too wide a term, in the
narrow sense "Ctrl+Space" is just about 90% of it, and in the wide sense
it could encompass most of R# editor features.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello,

Having a 64-bit system is more important than adding a few gigs of physical
memory, because it's the virtual memory address space of the process which
is exhausted when an OOM occurs. As you got 4GB of RAM, I assume yours Windows
7 is 64-bit. To make sure whether this is about memory issues or not, check
the allocated virtual memory size and commited memory size of the Visual
Studio process in Process Explorer or Task Manager. 64-bit systems are able
to allocate up to about 3.5 GB, which is why OOMs are rarely a problem on
64-bit -- unless you've got an exceptionally large solution, or were able
to hit a particular bug in R# (or VS).


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hi Serge,

Thanks for responding. I am happy to supply you with a lot more detail, logs anything else that you need.

I am actually running 32bit Windows 7, and I realize that although I have 4GB installed, only 3GB can be addressed. I am a current 4.5 user and have been using this product for over a year. Really do enjoy it so keep up the good work there.

However, ever since I upgraded to Version 5 and VS 2010, I will be working for a while and then all of a sudden it's like RS just switched off. No more intellisense, no more suggestions, not even error indications show up. I can type garbage into the screen and it will not flag as a problem. It's also like the aspx file and code behind file have lost contact with each other, all server side methods will be flagged red within the aspx page.

RS_Shot1.png

No feedback indicators on the right side either in the code behind.

RS_Shot2.png
This is a fairly large project, but not huge. And it was working just fine under 4.5.

I do notice that my memory consumption for the devenv.exe process does range from 420Mb (Working Set) + 300Mb (Private Working Set) to around double this.

Let me know what else I can provide you. I definitely want to get this issue resolved.

Regards
Clyde

0
Comment actions Permalink

Hello,

Thanks for the info. So, it seems, ReSharper gets disconnected from the source
code file. Or, rather, stops recognizing it as a valid source code file (because
the Error Stripe is still there, even though flat gray). This effectively
kills all of the in-text functionality.

And this happens to ASPX. Would this ever happen to any non-Web items? Plain
.cs files, for instance?

Would you be doing anything specific just before it gets broken? Switching
back and forth between applications does not seem to be the reason on itself,
even though it could trigger synchronization to external changes in files,
and those external changes could somehow confuse ReSharper. Is this any likely?
Getting latest version from source code control outside VS (e.g. svn update)
just before it gets broken, for instance?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”



0
Comment actions Permalink

Hi Serge,

I do lose the automatic sensing from within .cs files too. Often I realize this when typing through a namespace and not getting the prompts for the next part of it. It also as if RS just switched off as I could be typing .ToString() at the end of a variable and it does not autocomplete or add the (); as it used to do.

Other than switching back and forth from the browser back to VS, I haven't done anything out of the ordinary. It's actually been a few weeks since I committed any source as well, so SVN has not had an opportinity to play a part.

My startup project is a Web Site Project and not a Web Application if that makes a difference.

Just had to restart again now, things working just fine again, but not sure how long it will last. Normally less than 30 minutes before the problems reoccur.
RS_Shot3.png

Now you can see the right hand indicator column has all it's colored bars that weren't there before.

Thanks
Clyde

0
Comment actions Permalink

Hello,

Very strange.

2All: anybody else observing ReSharper suddenly disconnect from the text
editor?

Is the .cs file that loses intellisense also a codebehind of some page (rather
than a regular .cs file in a regular class library project without any Web)?

Does it help to close and reopen just this code file (rather than Visual
Studio in the whole)? You could use "Recent Files" (Ctrl+, by default) to
return quickly to the same point in the freshly-closed file.

Do any non-text-control-bound R# features work?
• Goto Type
• Goto File
• Solution-Wide Analysis
• Create File from Template

As a workaround, try suspending and resuming ReSharper without restarting
Visual Studio. Either go to Tools / Options / ReSharper, or execute the "ReSharper_ToggleSuspended"
command twice (as ">ReSharper_ToggleSuspended" in the Immediate tool window
or in the Find combo box on the toolbar).

PS possibly we got a repro case for this problem (unconfirmed yet). If so,
we'll investigate and fix soon.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hi Serge,

I have to head to Las Vegas for a conference for a few days, but when I return I will work through each of your questions and confirm each one.

Thanks for following up and keeping on top of this.

Regards
Clyde

0
Comment actions Permalink

I'm having the same problem.  I'm working on a cs file, which is an aspx codebehind file, when suddenly resharper (autocomplete, code markup, etc) stops working.  I can still get intellisense by hitting control-space.  I tried your idea of suspending and resuming resharper, and that fixed it just now, although I don't know for how long.  This has happen repeatedly, with multiple files open, only the cs file open, after multiple VS2010 restarts, etc.  I use Win7 64-bit with 8gigs of ram, and have 3gigs still available.  I'm using v5.0.1659.36.

Thoughts?

0
Comment actions Permalink

Hello,

Seems like the issue is fixed here, the fix will be available as soon as
nightly builds are opened for v5.1.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Great, glad to hear that. Hope to see it released soon, will keep checking.

Thanks again,

Clyde

0
Comment actions Permalink

Any update to this?  Resharper is unusable for me at this point, and I've had to disable
it.

0
Comment actions Permalink

John, I've managed to keep on using RS by double saving any changes I make in the aspx files, first save disconnects the link, second restores it. It does work as a workaround, but is a pain. This is a serious usilibity bug and Jetbrains should have released a hotfix for this ASAP.

We can only hope that 5.1 builds are imminent.

0
Comment actions Permalink

Hello,

Any update to this?  Resharper is unusable for me at this point, and
I've had to disable it.


The nightly builds for R# 5.1 are already open.



Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello,

The nightlies are on the wiki:

http://confluence.jetbrains.net/display/ReSharper/ReSharper5.1Nightly+Builds


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.