Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delphi 2010 Code Insight Issues

Posted on 2012-03-29
6
Medium Priority
?
928 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 4

Assisted Solution

by:MichaelStaszewski
MichaelStaszewski earned 1000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

636 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