Dart编辑器:原始示例web应用程序(使用聚合物):编译错误
我已安装以下版本: Dart编辑器1.1.3.0版发行版(稳定版) Dart SDK版本1.1.3 我使用polymer库创建了一个新的web应用程序。该应用程序是带来编辑器的原始示例:clickcounter。我没有添加或删除任何内容。应用程序工作正常,没有错误。但是当试图编译时,会出现很多错误。我遵循了dartlang.org上给出的建议。 出于这个原因,不编译原始的例子,使编辑器?有人有线索吗? 你可以自己试试。 这是输出中显示的错误列表:Dart编辑器:原始示例web应用程序(使用聚合物):编译错误,dart,dart-polymer,dart-pub,Dart,Dart Polymer,Dart Pub,我已安装以下版本: Dart编辑器1.1.3.0版发行版(稳定版) Dart SDK版本1.1.3 我使用polymer库创建了一个新的web应用程序。该应用程序是带来编辑器的原始示例:clickcounter。我没有添加或删除任何内容。应用程序工作正常,没有错误。但是当试图编译时,会出现很多错误。我遵循了dartlang.org上给出的建议。 出于这个原因,不编译原始的例子,使编辑器?有人有线索吗? 你可以自己试试。 这是输出中显示的错误列表: --- 19-feb-2014 7:23:26
--- 19-feb-2014 7:23:26 Running dart2js... ---
E:\dart\dart-sdk\bin\dart2js.bat --out=E:\Proyectos DART\carreta\PruebaPolymer\build.dart.js E:\Proyectos DART\carreta\PruebaPolymer\build.dart
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/builder.dart:85:8: Error: Library not found 'dart:io'.
import 'dart:io';
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/linter.dart:11:8: Error: Library not found 'dart:io'.
import 'dart:io';
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/barback/src/asset.dart:8:8: Error: Library not found 'dart:io'.
import 'dart:io';
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/barback/src/file_pool.dart:9:8: Error: Library not found 'dart:io'.
import 'dart:io';
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:13:8: Error: Library not found 'dart:io'.
import 'dart:io';
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/yaml/src/parser.dart:5:9: Warning: Duplicated library name 'parser'.
library parser;
^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/html5lib/parser.dart:16:9: Warning: Duplicated library name 'parser'.
library parser;
^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/yaml/src/utils.dart:5:9: Warning: Duplicated library name 'utils'.
library utils;
^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/html5lib/src/utils.dart:2:9: Warning: Duplicated library name 'utils'.
library utils;
^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:221:19: Warning: Cannot resolve 'Directory'.
var dir = new Directory(options.outDir);
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:276:22: Warning: Cannot resolve 'Link'.
var link = new Link(linkPath);
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:278:26: Warning: Cannot resolve 'Platform'.
var targetPath = Platform.operatingSystem == 'windows'
^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:332:32: Warning: Cannot resolve 'File'.
return asset.read().pipe(new File(filepath).openWrite());
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:310:7: Warning: Cannot resolve 'Directory'.
new Directory(dirpath).createSync(recursive: true);
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:326:14: Warning: Cannot resolve 'File'.
return new File(inpath).openRead().pipe(new File(outpath).openWrite());
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:326:47: Warning: Cannot resolve 'File'.
return new File(inpath).openRead().pipe(new File(outpath).openWrite());
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:131:17: Warning: Cannot resolve 'Directory'.
var dir = new Directory(path.join(packageDir, subDir));
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:134:26: Warning: Cannot resolve type 'File'.
.where((f) => f is File)
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:195:5: Warning: Cannot resolve 'exit'.
exit(1);
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:201:7: Warning: Cannot resolve 'exit'.
exit(1);
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:366:19: Warning: Cannot resolve 'stdioType'.
var useColors = stdioType(stdout) == StdioType.TERMINAL;
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:366:29: Warning: Cannot resolve 'stdout'.
var useColors = stdioType(stdout) == StdioType.TERMINAL;
^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:366:40: Warning: Cannot resolve 'StdioType'.
var useColors = stdioType(stdout) == StdioType.TERMINAL;
^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/barback/src/asset.dart:27:38: Warning: Cannot resolve type 'File'.
factory Asset.fromFile(AssetId id, File file) =>
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/barback/src/file_pool.dart:38:30: Warning: Cannot resolve 'File'.
return Chain.track(new File(path).openRead()).transform(
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/barback/src/file_pool.dart:58:23: Warning: Cannot resolve 'BytesBuilder'.
var builder = new BytesBuilder();
^^^^^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:99:18: Warning: Cannot resolve 'Platform'.
var dartExec = Platform.executable;
^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:102:31: Warning: Cannot resolve 'Platform'.
var pub = path.join(sdkDir, Platform.isWindows ? 'pub.bat' : 'pub');
^^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:103:16: Warning: Cannot resolve 'Process'.
var result = Process.runSync(pub, ['list-package-dirs']);
^^^^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:108:5: Warning: Cannot resolve 'exit'.
exit(result.exitCode);
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/src/build/runner.dart:82:21: Warning: Cannot resolve 'File'.
var pubspec = new File(
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/builder.dart:323:5: Warning: Cannot resolve 'exit'.
exit(1);
^^^^
/E:/Proyectos DART/carreta/PruebaPolymer/packages/polymer/builder.dart:328:5: Warning: Cannot resolve 'exit'.
exit(0);
^^^^
Error: Compilation failed.
我找不到错误。一个想法???我只是尝试了一下,没有任何错误和警告。 可能是您的包(依赖项)有问题。
您可以尝试
pub-get
和pub-upgrade
(从pubspec.yaml
上的上下文菜单)并在显示错误时发布输出 好的:开始吧:--2014年2月19日15:28:35跑步酒吧获得…--解决依赖项。。。。。。。有依赖关系!酒吧升级---2014年2月19日15:29:41运行酒吧升级…--解决依赖关系。。。。。。。。。。。。。。。。。。。。。。。。analyzer 0.10.5(提供9个较新版本)args 0.9.0(提供2个较新版本)barback 0.11.0+3浏览器0.9.1集合0.9.1自定义元素0.9.1+2(提供1个较新版本)html5lib 0.9.1 html_导入0.9.0日志记录0.9.1+1突变_观察者0.9.0观察0.9.3路径1.0.0聚合物0.9.5聚合物_表达式0.9.1阴影_dom 0.9.1(提供1个更新版本)source_maps 0.9.0 stack_trace 0.9.1持续发布升级:模板_绑定0.9.1不可修改_集合0.9.2+1 utf 0.9.0 yaml 0.9.0未更改依赖项。发布版本:--19-feb-2014 15:31:40正在运行发布版本…--建筑聚合物。。。。。[PruebaPolymer | web/PruebaPolymer.html_bootstrap.dart上的Dart2JS警告]:[PruebaPolymer | web/PruebaPolymer.html_bootstrap.dart上的Dart2JS]:[来自Dart2JS的信息]:花了0:00:14.080019时间编译PruebaPolymer | web/PruebaPolymer.html|bootstrap.dart。建立了23个文件!是否没有已更新但已成功生成的依赖项?似乎是软件包符号链接的问题。那么问题解决了吗?