问题描述
我的全新Delphi XE在结构面板中显示出数百个错误。它显示错误,如130行的未声明的文件出现或未声明的创建在行242。即使它显示这些错误,程序编译也很好。我也看到代码洞察并不总是奏效。当我将光标移动到一个变量上时,光标开始闪烁,弹出窗口就不会出现。其他时候,它只是突出显示红色的一些单位,它说它找不到它们。
有一些技巧来解决所有这些问题?
更新/伪修复:
我发现重新启动IDE有一段时间了。
我真的帮助那一天Embarcadero将发布Delphi ST (从STable)。
:)
是的,CodeInsight和ErrorInsight知道有很多问题。他们已经有了更好的每个版本一段时间,但还有很多事情要做。谁可能是Delphi社区中最聪明的人Andreas Hausladen在IDE内部方面做了大量的工作,他说他们有基于种族条件的错误,可能无法修复,而不需要重写。
如果这些假的错误给你的麻烦,你可以禁用它们,正如Ken在他的评论中提到的。
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?
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).
:)
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.
If these fake errors are giving you trouble, you can probably disable them, as Ken mentioned in his comment.
这篇关于Delphi XE显示至少200个错误,但程序编译很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!