【发布时间】:2014-08-28 22:40:01
【问题描述】:
我使用 DartEditor 开发了一个 dart/polymer 项目。因为 DartEditor 不支持 Git,所以我迁移到 Eclipse 并安装了 Dart 插件。现在突然我得到了新的错误,我没有进入 Dart 编辑器,我想知道有什么不同。 Dart-SDK 和 Dartium 版本完全相同。我将 DartEditor 中的对应文件夹复制到了 Eclipse 文件夹中。
Eclipse 插件的版本是 1.6.0.dev_01_02,Dart Editor 的版本是 1.6.0.dev_01_02,Dart-SDK 的版本是 1.6.0-dev.1.2。
我得到的错误信息是:
Loading polymer transformers...
Serving mastermind web on http://localhost:8080
[Warning from polymer (Linter) on mastermind|web/mm-color-button.html]:
line 2, column 1 of web/mm-color-button.html: Missing definition for <polymer-element>, please add the following HTML import at the top of this file: <link rel="import" href="packages/polymer/polymer.html">.
[Warning from polymer (Linter) on mastermind|web/mm-game.html]:
line 2, column 1 of web/mm-game.html: Missing definition for <polymer-element>, please add the following HTML import at the top of this file: <link rel="import" href="packages/polymer/polymer.html">.
[Error from polymer (Linter) on mastermind|web/mm-game.html]:
line 3, column 1 of web/mm-game.html: Polymer.dart's implementation of HTML imports are not supported within polymer element definitions, yet. Please move the import out of this <polymer-element>.
Build error:
Transform ImportInliner on mastermind|web/mastermind.html threw error: Could not find asset mastermind|web/mm-game.html.
build failed with errors: {Transform polymer (Linter) on mastermind|web/mm-color-button-line.html threw error: Polymer.dart's implementation of HTML imports are not supported within polymer element definitions, yet. Please move the import out of this <polymer-element>., Transform polymer (Linter) on mastermind|web/mm-line.html threw error: Polymer.dart's implementation of HTML imports are not supported within polymer element definitions, yet. Please move the import out of this <polymer-element>., Transform polymer (Linter) on mastermind|web/mm-line.html threw error: Polymer.dart's implementation of HTML imports are not supported within polymer element definitions, yet. Please move the import out of this <polymer-element>., Transform polymer (Linter) on mastermind|web/mm-game.html threw error: Polymer.dart's implementation of HTML imports are not supported within polymer element definitions, yet. Please move the import out of this <polymer-element>.}
可能是因为 Polymer 版本不同。在 DartEditor 我有 0.9.5+2 和在 Eclipse 0.11.0+5。我认为 pub get 会自动将软件包更新到最新版本,如果依赖关系是任何的话。
聚合物发生了什么变化?为什么现在出现错误?
【问题讨论】:
-
错误消息似乎不完整。您能否再次检查它们并将它们格式化为代码(选择文本并按下带有花括号
[{}]的工具栏按钮)。对我来说,您似乎有不同版本的聚合物包装。请也检查一下。 -
我用完整的错误文本和聚合物版本更新了我的问题。
标签: eclipse git dart dart-polymer dart-editor