Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Library / browsing paths using Delphi IDE

Status
Not open for further replies.

JES1904

Programmer
Jul 7, 2008
36
US
I have a recurring problem: On some days, it appears that Delphi has problems with identifying some of the files in my "Uses" section. Certain files will be underscored in red zig-zag and identified in the structure window as "cannot resolve unit name ...". If I right click the unit and ask that the file at the cursor be opened, the file is found and opened. The paths in my library and browser are the same for these affected untis. Not only that, but some of the units that are OK are in the same directory as those that are not. I have closed and re-opened Delphi and found that the exact same files are highlighted. The units in wquestion are for Jedi VCL componenets, although at other times I have had problems with delphi units.

Any suggestions or recommendations regarding resources that can explain what might be causing this type of problem would be very welcome.

Thanks.
 
I have Delphi 2007 and sometimes have the exact same problem.
Not that often but sometimes a couple of days in a row then not again for a week or more.
Its standard Delphi units that can't be found.
Usually closing either the entire project or Delphi and re-opening corrects it.
I put it down to one of things, but it would be nice if someone knows the cause and remedy.

Steve (Delphi 2007 & XP)
 
I am Using Delphi 2006. If this is a bug, it looks like they haven't caught it yet.

Another peculiar problem I see is that I can assign a unit to the uses section, in this case dbclient, so that I can use a TclientDataSet. I define an object of that typ in the code and the IDE recognizes the variable and type. I know this because codo completion prompts me with the pop-up menu of properties and methods available for the type when I enter the variable name in a code line. After I select one of the methods and move on, the IDE structure window identifies the code line as an error stating that the class type does not have the method or property entered.

I think this is related to my post above, but am at a loss for the source of the problem.
 
error insight (the red wigly line) in D2006 is very buggy. I don't use at all (and I don't miss it )

I suppose you have installed update 3?

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
I have also found that the problem is unit or project specific. A unit which cannot be resolved in one file/project does not have problem in another one. I also noticed that if I add the unit to the project it will no longer raise the exception. Why would I have to add certain delphi .pas files to the project , but others are OK if they are in the Uses clause in the interface?
 
I found the problem for this case.

I had inadvertently named a module for this project using the neame of a standard Delphi file. This conflicted with some units that required the delphi unit rather than mine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top