在 FlexBuilder 中显示所有编译错误?
是否可以让 FlexBuilder 显示所有文件中的所有编译错误? FlexBuilder 不会显示未引用的动作脚本文件中的错误。 我也经常修复一个问题,只是为了在编译整个项目后看到新的问题弹出,尽管这些错误很久以前就存在了。
IntelliJ 显示了它可以找到的所有编译错误,我希望 FlexBuilder 具有相同的行为方式,因为 IntelliJ 还不够成熟,无法处理我们复杂的设置。 是否有编译器开关可以启用此功能?
Is it possible to make FlexBuilder show all compile errors in all files? FlexBuilder does not show errors in Action Script files, that are not referenced. Also very often I fix a problem just to see new problems pop up after compiling the whole project although these errors existed long before.
IntelliJ is showing all compile errors it can find and I would like to have FlexBuilder behaving the same way since IntelliJ is not mature enough to handle our complex set up. Is there a compiler switch to enable this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编译器可以(并且将会)仅在您告诉它编译的代码中显示错误,就像您所说的,您编译的代码中未引用的任何内容都不会被编译,因此会由编译器检查。
因此,如果您想让编译器检查代码的某些部分,您需要告诉它编译它。 我不确定您的项目是如何设置的,但我假设您正在编译一堆较小的项目,这些项目都使用共享代码库的不同部分(或类似的东西)。在这种情况下,您可以:
The compiler can (and will) show errors only in code that you tell it to compile, and like you said, whatever is not referenced in the code you compile, will not be compiled, and thus, checked by the compiler.
So if you want to have the compiler check some part of your code, you need to tell it to compile it. I'm not sure how your projects are set up, but I'm assuming that you're compiling a bunch of smaller projects that are all using different parts of a shared codebase (or something similar.) In this case, you could either:
以下 MXMLC 编译器参数可能有用:
-includes className [...]
将一个或多个类链接到输出 SWF,无论编译时是否需要它们。
-include-libraries swcPath [...]
将一个或多个 SWC 库的全部内容链接到输出 SWF,无论编译时是否需要其类。
The following MXMLC compiler arguments might be useful:
-includes className [...]
Links one or more classes into the output SWF, regardless of whether they are required at compile time.
-include-libraries swcPath [...]
Links the entire contents of one or more SWC libraries into the output SWF, regardless of whether its classes are required at compile time.