Delphi 2010 IDE中提示Cannot resolve unit name

池龙 2010-02-21 12:29:49
显示在Structure的Errors下,一般形似“Cannot resolve unit name 'Controls'/'Forms'”等等。

Code insight失效,不再可以通过类实例名加.直接提示属性和方法,但程序可正常编译,亦可运行。

网上传言可使用IDEFixPack解决,但是使用过2.9版无效,Delphi 2010重新安装亦无效。

操作系统为Windows 7 64bit。

有知道原因和解决办法的麻烦提示下,多谢。
...全文
2098 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
老柴 2012-08-06
  • 打赏
  • 举报
回复
我的也是如此,而且无法编译运行,怎么办
zhongqian1_6 2011-12-15
  • 打赏
  • 举报
回复
这个我也遇到了啊!
lvweilong 2011-08-01
  • 打赏
  • 举报
回复
Delphi XE的也是这样子啊
fuxiyu 2011-03-25
  • 打赏
  • 举报
回复
如果视觉上让你不爽,直接设置选项去掉:
Tools->Options->Editor Options->Code Insight, 取消 Error Insight
fjqzmcc3 2010-11-24
  • 打赏
  • 举报
回复
我也碰到,从D7升级过来的项目才会这样,不清楚是什么问题,有没有人清楚什么解决阿?!
池龙 2010-02-22
  • 打赏
  • 举报
回复
问题暂时解决,但是原因仍然不明。真囧。
IDWB 2010-02-21
  • 打赏
  • 举报
回复
没用过2010,以上只是猜测
IDWB 2010-02-21
  • 打赏
  • 举报
回复
控件或者窗体有重名,或者窗体的pas文件名与窗体name重名
池龙 2010-02-21
  • 打赏
  • 举报
回复
窗体的pas与窗体name是无法设置一样的名字吧?IDE会提示出错的。

控件或者窗体有重名是什么意思?是不同单元里同样名字的控件?还是自己写的单元里有与系统单元内控件一样的名字?或者是?

提示无法解析的都是一些系统单元,就像上面提到的Controls、Form之类。
IDE Fix Pack 2007 - Version 3.0 (2010-03-15) Installation: ============= 1. Start IDEFixPackReg.exe under your user account 2. Select the IDE registry keys for which you want to install the bugfix 3. Press the "Install" button Uninstallation: =============== 1. Start IDEFixPackReg.exe under your user account 2. Press the "Uninstall" button. This will uninstall the bugfix for all (not only the selected) IDE registry keys. Changelog: ========== 2010-03-15: - Added fix for: QC #80822: ObjectInspecor: Properties are duplicated after scrolling - Added fix for: QC #80776: ObjectInspector shows "EditControl" instead of the real content - Added fix for: QC #79776: Clicking on object Inspector rejects focus 2009-12-22: - Added fix for: QC #75738: Debugging extremly slow - Added fix for: QC #68493: Switching away and back to Delphi orphans focus on Code Editor 2009-12-05: - Added fix for: Vista compatible main icon resource doesn't work 2009-09-03: - Added fix for: 64 bit Debugger assertion - Added fix for: Undo destroyed editor buffer - Added fix for: Vista 64 IDE startup delay - Added: QC #74646: Buffer overflow in TCustomClientDataSet.DataConvert with ftWideString - Fixed: TTabSheet looked strange if used with SilverThemes 2009-03-03: - Fixed: The AppDeActivateZOrder patch now fixes the cause instead of the symptoms - Added fix for: Error Insight fails to find TObject class - Added fix for: Possible deadlock when Error Insight calls ProcessMessages 2009-02-18: - Added for for IDE may select the wrong file when performing a ctrl+click on a filename in the editor - Added faster AnsiCompareFileName replacement function which speeds up the "Install Packages..." dialog 2009-02-05: - Added: fix for "Cannot resolve unit name" Error Insight bug. 2009-01-25: - Fixed: C++Builder compilation slow down caused by the ReadWrite mode fix - Fixed: DBGrid ScrollBar gab wasn't painted correctly in BiDiMode <> bdLeftToRight - Fixed: TTabSheet could throw an access violation if no PageControl was assigned to it 2008-11-24: - Added fix for Show Component Caption IDE bug - Added fix for IDE Compiler opens all files in ReadWrite mode and blocks command line compiler 2008-07-19: Added: Control resize fix replaces the old editor resize bugfix Added: Background Parser now stops if the main thread wants to do something with the compiler. 2008-05-12: Added: Fix for Find dialog has problems with Umlaut chars Removed: CodeCompletion is fixed in RAD Studio 2007 April Update 2008-04-02: Added: Added fix for TCustomActionList.Notification memory overwrite Added: Fixed some TDBGrid and TPageControl form designer flicker Improved: Application window tastbar button removal (should now work for all Windows versions) 2008-02-18: Added: CodeCompletion patch to show inherited items 2008-02-10: Added Application window tastbar button removal for Vista Added TDBText Color bugfix Renamed to IDE Fix Pack 2008-02-04: Initial release as IDEWin64Fix

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧