2

每当我更新某些文件并且 build.dart 运行时,我都会收到此错误:

build.dart --changed=web\index.html
file:/C:/Users/Fernando/dart/ACIMReader/build.dart
build.dart returned error code 255

Unhandled exception:
FormatException: Could not find an option named "machine".
#0      ArgParser._validate (package:args/args.dart:349:21)
#1      ArgParser._parseLongOption (package:args/args.dart:488:16)
#2      ArgParser.parse (package:args/args.dart:313:27)
#3      _processArgs (package:web_components/component_build.dart:99:26)
#4      build (package:web_components/component_build.dart:34:26)
#5      main (file:///C:/Users/Fernando/dart/ACIMReader/build.dart:5:8)
4

1 回答 1

1

编辑器最近开始添加一个--machine标志,以便构建脚本知道输出机器可读的消息。web_components 上周增加了对 flag 的支持,你运行 pub update 了吗?

于 2012-12-06T02:44:00.263 回答