Intellisense isn't working
Why would intellisense suddenly stop working? In other words, is this something that can be configurated and could for some reason be erased?
Just one hour ago it was working. I closed the project I was working on, walked out of the office, came back,, started the IDE and IS was gone!
Re: Intellisense isn't working
Have a look in Options\Editor\CodeSettings. Seems a bit odd that they should just change like that though. A registry problem maybe??
Re: Intellisense isn't working
krtx
As a long-shot -- did you try a cold reboot of your computer (ie,
a complete restart)?
Spoo
Re: Intellisense isn't working
Is Intellisense for everything off? Try hitting Ctrl+SpaceBar. What happens?
Edit
Few other suggestions...
1) Use RegMon to see if you can figure out which files VB6's Intellisense is accessing. Then try renaming then to different names so the VB6 intellisense mechanism might re-create them and see if that fixes anything
2) If everything fails, re-install VB6
Re: Intellisense isn't working
Quote:
Originally Posted by
Spoo
krtx
As a long-shot -- did you try a cold reboot of your computer (ie,
a complete restart)?
Spoo
I did.
As for the other replies, I'll have to wait till monday for I'm no longer sitting in front of the office computer.
Re: Intellisense isn't working
krtx
OK.. I take it that the reboot did not restore IntelliSense.
Sorry to hear.. hopefully Milk and Kool are on to something
more useful.
Spoo
Re: Intellisense isn't working
If you start a new project does intellisense work for it? Does the project you are working on now run without errors? A lot of times when intellisense stops working it is because of a programming error.
Re: Intellisense isn't working
Did you try it on more than one variable? If you only tried one it could be that it is spelled wrong.
Re: Intellisense isn't working
I've had the issue several times on multiple computers, and the cause has always been what MarkT described (often caused by a typo, and sometimes by moving a routine/variable to a different code file).
To see if that is the case, simply start the project with full compile (Ctrl-F5).
Re: Intellisense isn't working
Yep. The IDE can't make heads nor tails out of your code if you have a compilation error in the General section of a module, and so Intellisense stops working.
1 Attachment(s)
Re: Intellisense isn't working
Quote:
Originally Posted by
Milk
Have a look in Options\Editor\CodeSettings. Seems a bit odd that they should just change like that though. A registry problem maybe??
I don't know what to look for... at any rate, it's working today.
Re: Intellisense isn't working
Definitely I can't get it to fail today so I'll be back as soon as it happens again.
Re: Intellisense isn't working
It might be a good idea for you to check that box next to Require Variable Declaration...
Glad it is working for you today...
Re: Intellisense isn't working
Quote:
Originally Posted by
vb5prgrmr
It might be a good idea for you to check that box next to Require Variable Declaration...
Glad it is working for you today...
I always remember to include a 'Option Explicit' statement, but I agree it's a good idea, thanks.
Re: Intellisense isn't working
The best way to check if it is working or not is to press the shortcut key that I suggested in the post above ;)
Ctrl+SpaceBar
Re: Intellisense isn't working
I had a similar, puzzling problem and I thought it was because the building had a power outage. Turns out I had two functions with the same name. Once I tried compiling and fixed that error, intellisense came back.
Re: Intellisense isn't working
I have ran into this issue before myself. I forget what the exact problem was but it was code related. I think I had pasted something from another project that caused an issue. Possibly a duplicate function name as pointed out above, can't be sure but it was definitely something I did and it worked fine again once I fixed the code.
Re: Intellisense isn't working
Quote:
Originally Posted by
DataMiser
I have ran into this issue before myself. I forget what the exact problem was but it was code related. I think I had pasted something from another project that caused an issue. Possibly a duplicate function name as pointed out above, can't be sure but it was definitely something I did and it worked fine again once I fixed the code.
http://support.microsoft.com/kb/813809/en
Re: Intellisense isn't working
Yes, I've had similar problems with Intellisense going haywire. Usually, restarting VB6 resets everything. However, even then, sometimes the UpperLower case is off. It's not a major problem for me, but I wish there was some kind of a tool or addin that would list all the variables, procedures, and objects that Intellisense was tracking. I've just recently started snooping into how Intellisense works, having just "lived" with its idiosyncrasies up to now, but I'm just procrastinating a bit and thought I'd look into it. If anyone knows of how to "snoop" into the guts of the Intellisense system, links would be much appreciated.
Regards,
Elroy
Re: Intellisense isn't working
Quote:
Originally Posted by
public
Not sure why you quoted my post to post this link. It definitely is not related in any way to the issue that I ran into as I was not using anything .Net related.
Re: Intellisense isn't working
Suggested Solution :
( I am using MS Access 2013 , ignore compact and repair step ) I noticed you have the problem inside the visual basic 6 , anyway just try out my suggested solution it might work with it too .
I came a cross this problem recently and the fix was very easy , here is what i did :
Compact and repair , then I looked into the Form Module that i want to reference it in my vba editor , and I found out that there is a typing mistake in (Option Compare ) declaration instated of having this line typed like this ( Option Compare Database ) it was ( Option Compare LogicForm ) . I used find and replace tool , which caused this typing problem.
Bottom line : Look for typing mistake error inside the module you are trying to reference it in your code .
Note : The intellisense was working fine when referencing to other form except that Form in which i found the typing mistake in its module .
I hope this will help you getting rid of this intellisense problem .
Re: Intellisense isn't working
Well this is an old thread, but no one has really mentioned a general solution: when there's an error that will prevent the program from even starting, Intellisense stops working. Run the project, and the error will immediately be shown.
Re: Intellisense isn't working
Quote:
Originally Posted by
fafalone
Well this is an old thread, but no one has really mentioned a general solution: when there's an error that will prevent the program from even starting, Intellisense stops working. Run the project, and the error will immediately be shown.
This thread ain't getting any younger!
Yes just to confirm that this solution works, just had this issue, intellisense just disappeared in a sub I was writing.
The cause was declaring a parameter like below
The IDE didn't complain but intellisense disappeared for the rest of the sub.
As fafalone says, a compile flagged it right away. Intellisense then returned.
Code:
Public Sub Blah(ByVal i as Index)