Delphi XE 显示至少 200 个错误,但程序编译得很好 [英] Delphi XE shows at least 200 errors but the program compiles just fine

查看:26
本文介绍了Delphi XE 显示至少 200 个错误,但程序编译得很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我全新的 Delphi XE 在结构"面板中显示了数百个错误.它显示诸如未声明的文件存在于第 130 行"或未声明的创建于第 242 行"之类的错误.即使显示这些错误,程序也能正常编译.

My brand new Delphi XE shows hundreds of errors in 'Structure' panel. It shows errors like 'Undeclared FileExists at line 130' or 'Undeclared Create at line 242'. Even if it shows those errors, the program compiles just fine.

我还看到代码洞察力并不总是有效.当我将光标移到一个变量上时,光标开始闪烁并且没有弹出窗口出现.其他时候,它只是用红色突出显示一些单位,并说它找不到它们.

I also see that code insight is not always working. When I move the cursor over a variable, the cursor starts to flicker and no pop-up appears. Other times, it just highlight some units in red and it says the it cannot find them.

有解决所有这些问题的技巧吗?

There are tricks to fix all these issues?

更新/伪修复:
我发现重新启动 IDE 会有所帮助.
我真的很有帮助,有一天 Embarcadero 将发布 Delphi ST(来自 STable).
:)

Update/Pseudo-fix:
I have found that restarting the IDE helps for a while.
I really help that one day Embarcadero will release Delphi ST (from STable).
:)

推荐答案

是的,众所周知,CodeInsight 和 ErrorInsight 存在很多问题.一段时间以来,他们的每个版本都变得更好了,但仍有很多工作要做.Andreas Hausladen 可能是 Delphi 社区中最聪明的人,他在 IDE 内部做了很多探索,他说他们有基于竞争条件的错误,如果不完全重写可能无法修复.

Yeah, CodeInsight and ErrorInsight are known to have lots of problems. They've gotten a bit better each version for a while now, but there's still a lot to be done. Andreas Hausladen, who's probably the smartest guy in the Delphi community, has done a lot of poking around in the IDE internals, and he says they have race condition-based bugs that probably can't be fixed without a total rewrite.

如果这些虚假错误给您带来麻烦,您可以禁用它们,正如 Ken 在评论中提到的那样.

If these fake errors are giving you trouble, you can probably disable them, as Ken mentioned in his comment.

这篇关于Delphi XE 显示至少 200 个错误,但程序编译得很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆