Delphi 2010 Code Insight Issues

Good evening,

I've been dealing with a strange issue in Delphi 2010 for quite a while and would like to resolve it. In what seems like random instances, our Code Insight stops working completely for a given project. If that project is closed and a brand new one is started then Code Insight works for that new project, but on existing projects it disappears. This means that when accessing class members the pop-up that displays these is not available. So typing Application. or Screen. or <class>. does not yield the desired pop-up. Has anyone come across this issue or can anyone recommend a course of action?

Thanks in advance.
PlawCoderAsked:
Who is Participating?
 
PlawCoderConnect With a Mentor Author Commented:
Michael,

Thank you very much for the pointers. Thinking about your [identcache] insight we decided to analyze the project file and quickly realized that the Unit Aliases in one that worked were not available in the one that didn't. It seems that the IDE is dropping the unit aliases at some point. As soon as we put these back into the project "WinTypes=Windows;WinProcs=Windows" then it started working again.

Thank you very much for your help and I hope that this helps other people out there struggling with the perils of the Delphi IDE.
0
 
MichaelStaszewskiConnect With a Mentor Commented:
The Delphi IDE is one of the buggiest applications I've ever used. I see this all of the time.

Enough of that though! I have used Delphi 2009 and XE2, not 2010, but I suspect the same problems are in all 3. I at least have seen this in the two versions I've used most.

In most cases I can simply compile my project and try the insight again. This usually works. Sometimes I need to close the project and delete the .identcache file that is created. See this QC report.

http://qc.embarcadero.com/wc/qcmain.aspx?d=24572

You can also try using the IDE Fix Pack which resolves many IDE bugs and improves performance, but I don't know if insight issues are addressed.

http://andy.jgknet.de/blog/ide-tools/ide-fix-pack-2009-10/

We use the IDE fix pack here and one of the major benefits is that our 3.2 million lines of code project can do a full build in 1 minute, on a virtual machine, compared to 5-6 minutes without the fix pack.
0
 
MichaelStaszewskiCommented:
Comment edited. I missed your posted solution. Thanks.
0
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

 
MichaelStaszewskiCommented:
It seems that the IDE is dropping the unit aliases at some point.

Nice. I'll be sure to look into this next time it bites me. As much as I love Delphi the IDE drives me bonkers most days.
0
 
PlawCoderAuthor Commented:
We're hoping that this is the only problem getting in the way and that next time it happens to you you're successful in getting it back; we've wasted so many hours when Code Insight goes away.

In this day and age when there are so many libraries to work with it's impossible to remember all members, therefore Code Insight becomes so much more critical.
0
 
PlawCoderAuthor Commented:
Expert did not provide direct solution, but guided us in finding the issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.