Intellisense not working

P

Phil

in my experiance this happens because you have an error in
some portion of the code that stops intellisense from
being able to anticipate what you are doing in order to
display choices.

such as trying to get a list of methods for a class that
is out of scope etc.

that's been what i've seen so far anyway.

good luck.
 
A

Amanda Silver [MSFT]

Hello Phil and Don --

There are a few reasons that Intellisense/Pretty Lister/ToolTips may
appear not to be working.

1) Your object is malformed. If the object on which you are trying to get
information is not shaped correctly, an "End Sub" is missing, for example,
then the intellisense list may show incomplete or stale data for the object.

2) There is a syntax error above the line at which you are trying to get
intellisense. Type a dot "." after the b in the following example:
Module Module1
Sub Main()
Dim b As New Bar
Namespace
b '<--- Type
"." here
End Sub
Class Bar
Sub Wilma()
End Sub
End Class
End Module

To search for these, just recompile or compile via the command-line.

3) You have some code that has caused an internal crash in the compiler.
If this is the case then you shouldn't be able to build your project, let
alone get editor features. If you go to "Build->Rebuild Solution" and the
project doesn't complete compiling, as in errors aren't even reported, then
you KNOW that this is the case. However, even if it does compile in that
situation, it might still be that the order in which you inputted your
lines of code have caused the compiler to fail internally. If you believe
this is the case then we DEFINITELY want to take a look at it. If
possible, please wrap up the code and send it to MS.

Thanks,
Amanda Silver

Program Manager
VB .NET Compiler

-----------------------------------------------------------------|
This is posted "as-is" 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