Intellisense not working

S

Stefan Kronberg

I'm working on a solution containing about 20 projects. Some of the projects
contain class definitions that are used in other of the projects. Most of
the time intellisense is working ok, i.e. if I work with objects declared
from my own classes intellisense will show me all alternatives (methods and
properties from my classes and from the classes they are derived from). But
sometimes I will get nothing from intellisense, completely nothing, somtimes
it will only show me a little subset of all alternatives.

I can make intellisense work again by rebuiling the solution. Sometimes this
is not enough and I have to restart the IDE.

Is there any known problems with intellisense ? Does anybody know of class
and code constructions that can make intellisense stop working ?

--Stefan Kronberg
 
T

Tian Min Huang

Hello Stefan,

Thanks for your post. As I understand, the problem you are facing is that
IntelliSense does not work properly sometimes in Visual Studio .NET. Please
correct me if there is any misunderstanding. Now I'd like to share the
following information with you:

1. What's the version of Visual Studio .NET, 2002 or 2003? Does the problem
occurs to a specific project or to all projects? What's the type of
project, Visual C++, Visual Basic .NET, C#, Windows Froms, Web application?

2. Do you have any anti-virus application installed? If so, I suggest you
to disable it real-time monitor functionality and close/stop all other
unnecessary programs and services to check if the problem still exists.

3. Concerning the problem Intellisense listing only base class methods or
wrong methods and properties, there is a known issue for a corrupt
..projdata file. Generally speaking, the classview and intellisense data is
stored in the following directory:
project directory\obj\debug\*.projdata

Please close VS.Net and delete that file. If the problem persists, make
sure deleting all *.projdata file in all obj\subdirectories depending on
what type of compile is used.

4. In addition, there are two KB articles on IntelliSense that may help:

PRB: Methods or Properties Are Not Listed in AutoListMembers (IntelliSense)
http://support.microsoft.com/?id=305404

BUG: IntelliSense May Not List Properties That Only Have One Accessor in an
Interface
http://support.microsoft.com/?id=814742

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
S

Stefan Kronberg

Thanks for Your answer !

Some more specific details:

1. I'm using Visual Studio.Net 2003 (the same problem also occured in the
2002 version). I have only seen this behaviour in one specific solution.
It's a C# solution with a lot of Windows Form projects and class libraries.

2. McAfee VirusScan v4.5.1 SP1 is active. It's configured for scanning
inbound files.

3. The problem occurs when using classes that all have the following in
common: the class is derived from a dataset and it also implements an
interface (consisting only of two methods). All these classes are defined in
one project (class library). Sometimes the problem will go away when I
rebuild this project.

The problem shows up in two different ways: one is that when I type the "."
after the objectname there is no response from intellisense, not even if I
press Ctrl-spacebar. The other is that intellisense will respond but it only
shows a subset of all properties and methods.

I hope this will give more clues to the "solving the intellisense-problem"

regards
--Stefan Kronberg
 
S

Stefan Kronberg

I noticed I have two different projdata-files belonging to the class library
I mentioned:
one called OfeliaExtendedTypedDataset.projdata and on called
OfeliaExtendedTypedDataset.projdata1 (the latter is of an older date)

--Stefan
 
T

Tian Min Huang

Hi Stefan,

Thanks for your quick reply and information. Please rename the .projdata
files to check this issue. I also recommend you temporarily disable McAfee
VirusScan.

I am standing by for your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
S

Stefan Kronberg

Hello again !

Today's status:

1. I've disabled the VirusScan but it didn't help.

2. Another thing that does not workpoint in my solution:
Intellisense does not show any XML-information written in my classes, i.e.
information written with the syntax /// <summary> /// texttexttext ///
</summary> before properties, methods, classdefinitions.

--Stefan
 
T

Tian Min Huang

Hi Stefan,

Thanks for your update. Since the problem only occurs to a specific
solution, I sugest you to create new solution and its corresponding
projects, and add classes, forms to the newly created projects one by one
to check which one causes the problem.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top