在 FlexBuilder 中显示所有编译错误?

发布于 2024-07-09 10:05:26 字数 235 浏览 7 评论 0原文

是否可以让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

勿忘心安 2024-07-16 10:05:26

编译器可以(并且将会)仅在您告诉它编译的代码中显示错误,就像您所说的,您编译的代码中未引用的任何内容都不会被编译,因此会由编译器检查。

因此,如果您想让编译器检查代码的某些部分,您需要告诉它编译它。 我不确定您的项目是如何设置的,但我假设您正在编译一堆较小的项目,这些项目都使用共享代码库的不同部分(或类似的东西)。在这种情况下,您可以:

  • 建立某种引用所有代码的“主”项目,进行编译,然后检查各处的错误(也许您已经有了这个,在这种情况下,解决方案只是定期编译它)
  • 设置一个作业/目标用于为您的所有代码编译 AsDoc 文档 - 然后您可以定期运行它,同时您可以使您的 API 文档保持最新

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:

  • set up some sort of "master" project that references all of your code, compiling which would then check for errors everywhere (maybe you have this already, in which case the solution is simply to compile this regularly)
  • set up a job/target for compiling the AsDoc documentation for all of your code -- you could then run this regularly and at the same time you'd be keeping your API docs up to date
临走之时 2024-07-16 10:05:26

以下 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文