【发布时间】:2013-12-17 17:18:52
【问题描述】:
我使用的是Dart plugin for Eclipse(不是独立的 Dart 编辑器)。
如何配置项目/构建以使静态类型警告在 Eclipse“问题”选项卡中显示为错误?比如这行代码居然可以编译,看起来很可笑:
int newtodo = new LIElement();
根据需要在命令行运行 dartanalyzer 会报错:
dartanalyzer foo.dart
但我不想在命令行中运行dartanalyzer(或在运行时发现它们),而是希望在 Eclipse 中即时报告这些错误。
【问题讨论】:
-
插件是谷歌提供的还是第三方的? (链接到插件会很有用)
-
@StevenRoose 这是来自这里的 Google 插件:dartlang.org/tools/eclipse-plugin我正在使用稳定频道:dartlang.org/eclipse/update/channels/stable