Solved

Delphi 2010 Code Insight Issues

Posted on 2012-03-29
6
853 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:PlawCoder
  • 3
  • 3
6 Comments
 
LVL 4

Assisted Solution

by:MichaelStaszewski
MichaelStaszewski earned 250 total points
ID: 37783827
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
 

Accepted Solution

by:
PlawCoder earned 0 total points
ID: 37784335
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
 
LVL 4

Expert Comment

by:MichaelStaszewski
ID: 37784345
Comment edited. I missed your posted solution. Thanks.
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 4

Expert Comment

by:MichaelStaszewski
ID: 37784357
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
 

Author Comment

by:PlawCoder
ID: 37784369
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
 

Author Closing Comment

by:PlawCoder
ID: 37800054
Expert did not provide direct solution, but guided us in finding the issue.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now