tags:

views:

969

answers:

3

I have several custom components in my uses list of a unit. For some reason, D2009 is saying that it cannot resolve the unit name. But it seems as if it can find it - the code compiles fine.

How can I have it resolve the unit names at design time though? My Structure window is showing all kinds of 'Undeclared Identifier' errors because the references in the Uses clause are not being found. This makes it difficult to code, and to debug legitimate errors in my code.

+1  A: 

Error Insight doesn't look for units the same way the normal compiler does, unfortunately, and it can lead strange results like that. Try adding the units that your custom components are in to the DPR. That should fix the problem.

Mason Wheeler
+4  A: 

I think this is something the IDE Fix Pack 2009/2010 can help you with.

RAD Studio 2009 fixes:
  <snip>
  QC #22880: Cannot resolve unit name
Vegar
That did it! Thanks
croceldon
Unfortunately,I had to uninstall Fix Pack (long story). When I re-installed, it no longer fixes the problem I was having. No matter how many times I uninstall, then re-install, I'm still getting the same problem with Error Insight that I had previously.Any ideas on how I can get IDE Fix Pack working again?
croceldon
A: 

This article from an Embarcadero insider about how units/files resolution is done in Delphi depending on what's going on might shed some light...

François