0

I have installed version: Dart Editor version 1.1.3.release (STABLE) Dart SDK version 1.1.3 I created a new web application using the libraries of polymer. The application is the original example that brings the editor: clickcounter. I have not added or removed anything. The application works fine without error. But when trying to compile, very many errors arise. I followed the recommendations given in dartlang.org. For that reason not compile the original example that brings the editor? Anyone have a clue? You can try it yourself. This is the list of errors shown in OUTPUT:

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

I can not find the error. An idea??

4

1 回答 1

1

我刚刚尝试过并且没有任何错误和警告。也许你的包(依赖项)有问题。如果显示错误,您可以尝试(从上下文菜单中)并pub get发布输出pub upgradepubspec.yaml

于 2014-02-19T07:41:42.587 回答