如何删除D2007中的错误(红色下划线)
我的结构面板有很多错误。该应用程序在 Delphi 2007 上编译并运行良好。但代码中有很多带有红色下划线的代码。如果我按 Ctrl + 左键单击它,它会找到原始声明。但出现所有这些错误仍然很烦人。
I have a lot of errors in structure panel. The application compiles and run fine with Delphi 2007. But the code have much code that have red underlines. If I press Ctrl + leftclick on it it finds the original declaration. But it is still annoying to have all those errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这些是众所周知的 IDE 错误。您是否尝试过IDE 修复包?
These are well-known IDE bugs. Have you tried the IDE Fix Pack?
我安装了
IDE Fix Pack
,但仍然定期收到不正确的错误洞察红线。一些有帮助的事情(暂时)
关闭项目并删除*.local和*.identcache,然后重新打开项目。
加载项目时,等待装订线中出现代码折叠线(Delphi 2009之前,这表明后台编译完成)
I have
IDE Fix Pack
installed, and still get incorrect error insight red lines regularly.Some things which help (temporarily)
Close the project and delete *.local and *.identcache, then re-open the project.
When Loading a project, wait for the code-folding lines in the gutter to appear (before Delphi 2009, this indicates that the background compiler is finished)
我假设您只是希望所有红色下划线消失:
工具 | 选项 | 编辑器选项 | Code Insight
然后取消选中错误洞察
这是针对 Delphi 2010 的,但我认为它在 Delphi 2007 中非常相似,但我目前没有安装它。
I am assuming you just want all the red underlines to go away:
Tools | Options | Editor Options | Code Insight
Then uncheck Error insight
That is for Delphi 2010, but I think it is very similar in Delphi 2007, but I don't currently have it installed.