如何禁用 Flex 3 中已弃用的警告?

发布于 2024-08-03 15:11:06 字数 279 浏览 1 评论 0原文

我最近开始使用使用 Adob​​e Flex 3 编写的应用程序。我们使用了几个已弃用的函数,遗憾的是我们无法删除这些依赖项。

文档说将 -show-deprecated-warnings=false 设置到编译器附加选项中。这不被接受,但我发现对话框会接受使用 -show-deprecation-warnings=false ,但当我尝试编译项目时,会出现关于声明该选项两次的错误。

理想情况下,我想要一种根据具体情况禁用警告的方法。如果做不到这一点,任何人都可以帮助我禁用每个文件、每个项目或全局的警告吗?

I've recently started working with an application written using Adobe Flex 3. We're using several deprecated functions and unfortunately we can't remove these dependencies.

The documentation says to set -show-deprecated-warnings=false into the Compiler Additional Options. This isn't accepted, but I've found that using -show-deprecation-warnings=false will be accepted by the dialog, but gives an error about declaring the option twice when I try to compile the project.

Ideally, I'd like a way to disable the warning on a case-by-case basis. Failing that, can anyone help me to disable the warnings either per-file, per-project or globally?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

不必在意 2024-08-10 15:11:06

作为最近版本的更新,我在 FlashDevelop 中添加了一个编译器选项:

-show-deprecation-warnings=false

这对我有用。

As an update for recent versions, I added a compiler option in FlashDevelop:

-show-deprecation-warnings=false

This worked for me.

蹲墙角沉默 2024-08-10 15:11:06

此链接表明它无论如何都无法正常工作,唯一真正的答案是完全关闭警告。

Adobe Jira 13569

您可以使用自定义 flex-config 关闭警告。每个项目/全局的 xml 文件。只需将编译器指向正确的文件即可。

This link suggests that it doesn't work properly anyway, and the only real answer is to turn off warnings altogether.

Adobe Jira 13569

You can turn off warnings by using a custom flex-config.xml file for each project / globally. Just point the compiler at the right file.

几味少女 2024-08-10 15:11:06

我找到了部分解决方法:从“问题”选项卡中过滤警告。这并没有消除紧挨着源的警告标记,但我希望它是干净的“问题”选项卡。

单击“问题”选项卡上的过滤器按钮,将“描述”更改为“不包含”,文本为“已弃用”,然后单击“确定”。

I've found a partial workaround: filter the warnings from the 'Problems' tab. This doesn't get rid of the next-to-the-source warning markers, but it's the Problems tab which I'd like to be clean.

Click the filters button on the Problems tab, change 'Description' to 'doesn't contain' with text 'deprecated' and hit OK.

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