-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enter one-line summary #15823
Comments
Hi, Thanks for reporting the bug. I'm not exactly sure what are you referring to with the bug, if you can help clarify that would be great. From a quick glance, I can see two problems by reading the output of the build. (2) there is an error from pub-build that is quite cryptic (see issue #14593), but I believe it is because there are some .js files in your web directory. The problem could be that dart2js is trying to generate a .js file but that file name conflicts with an existing file in your directory. Sometimes this happens if you clicked on 'Run as javascript' in the editor, and the editor generated the .js file for you (see issue #14771, for example) Added NeedsInfo label. |
Siggy is right. The errors that are preventing you from proceeding are these two: �Build error: If you delete those two JS files from your web directory, you should be able to build successfully. |
This issue was originally filed by vladimir.matu...@gmail.com
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I have following error on output:
--- 30-Dec-2013 01:23:53 Running pub build ... ---
Pub build failed, [65] Building svype......
�[33m[Warning in Dart2JS on svype|web/index.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Directory.current' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Warning in Dart2JS on svype|web/index.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Platform.operatingSystem' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Dart2JS on svype|web/index.dart]:�[0m
packages/collection/src/unmodifiable_wrappers.dart:210:50: Warning: 'Map<K, V>' is not assignable to 'Map<K, V>'.
UnmodifiableMapView(Map<K, V> baseMap) : super(baseMap);
^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/collection/src/unmodifiable_wrappers.dart:209:38: Info: This is the method declaration.
with UnmodifiableMapMixin<K, V> {
^^^^^^^^^^^^^^^^^^^^
�[33m[Warning in Dart2JS]:�[0m
web/index.dart:1:1: Hint: 91 methods retained for use by dart:mirrors out of 2207 total methods (4%).
import 'package:polymer/polymer.dart';
[Dart2JS on svype|web/index.dart]:
packages/polymer/polymer.dart:50:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/observe/src/observable.dart:16:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/observe/src/path_observer.dart:10:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/path/path.dart:52:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/polymer_expressions/eval.dart:12:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/polymer_expressions/src/mirrors.dart:11:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/polymer/deserialize.dart:8:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors' show TypeMirror;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/index.dart]:
packages/polymer/src/reflected_type.dart:11:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Info in Dart2JS]:
Generated svype|web/index.dart.js (373134 characters) in 0:00:15.434502
[Info in Dart2JS]:
Generated svype|web/svypelike.dart.js (103137 characters) in 0:00:03.231650
�[33m[Warning in Dart2JS on svype|web/svype-app.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Directory.current' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Warning in Dart2JS on svype|web/svype-app.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Platform.operatingSystem' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Dart2JS]:�[0m
web/svype-app.dart:155:16: Warning: Cannot resolve type 'Event'.
void sLang(Event e, var detail, Node target) {
^^^^^
�[33m[Dart2JS]:�[0m
web/svype-app.dart:155:37: Warning: Cannot resolve type 'Node'.
void sLang(Event e, var detail, Node target) {
^^^^
�[33m[Dart2JS on svype|web/svype-app.dart]:�[0m
packages/collection/src/unmodifiable_wrappers.dart:210:50: Warning: 'Map<K, V>' is not assignable to 'Map<K, V>'.
UnmodifiableMapView(Map<K, V> baseMap) : super(baseMap);
^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/collection/src/unmodifiable_wrappers.dart:209:38: Info: This is the method declaration.
with UnmodifiableMapMixin<K, V> {
^^^^^^^^^^^^^^^^^^^^
�[33m[Dart2JS]:�[0m
web/svype-app.dart:156:9: Warning: Cannot resolve type 'Element'.
Element langBtn = e.target;
^^^^^^^
�[33m[Warning in Dart2JS]:�[0m
web/svype-app.dart:1:1: Hint: 1080 methods retained for use by dart:mirrors out of 2129 total methods (51%).
//import 'dart:html';
[Dart2JS on svype|web/svype-app.dart]:
packages/polymer/polymer.dart:50:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/observe/src/observable.dart:16:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/observe/src/path_observer.dart:10:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/path/path.dart:52:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/polymer_expressions/eval.dart:12:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/polymer_expressions/src/mirrors.dart:11:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/polymer/deserialize.dart:8:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors' show TypeMirror;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Dart2JS on svype|web/svype-app.dart]:
packages/polymer/src/reflected_type.dart:11:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
[Info in Dart2JS]:
Generated svype|web/svype-app.dart.js (367453 characters) in 0:00:06.948938
�[33m[Warning in Dart2JS on svype|web/index.html_bootstrap.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Directory.current' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Warning in Dart2JS on svype|web/index.html_bootstrap.dart]:�[0m
packages/path/path.dart:49:23: Hint: Can't find 'dart.io.Platform.operatingSystem' in the current library.
Did you forget to add an import?
@MirrorsUsed(targets: 'dart.dom.html.window, '
^^^^^^^^^^^^^^^^^^^^^^^^^
�[33m[Dart2JS on svype|web/index.html_bootstrap.dart]:�[0m
web/svype-app.dart:155:16: Warning: Cannot resolve type 'Event'.
void sLang(Event e, var detail, Node target) {
^^^^^
�[31mBuild error:
Transforms {Dart2JS on svype|web/index.dart} all emitted asset svype|web/index.dart.js.�[0m
�[33m[Dart2JS on svype|web/index.html_bootstrap.dart]:�[0m
web/svype-app.dart:155:37: Warning: Cannot resolve type 'Node'.
void sLang(Event e, var detail, Node target) {
^^^^
�[31mBuild error:
Transforms {Dart2JS on svype|web/svype-app.dart} all emitted asset svype|web/svype-app.dart.js.�[0m
�[33m[Dart2JS on svype|web/index.html_bootstrap.dart]:�[0m
packages/collection/src/unmodifiable_wrappers.dart:210:50: Warning: 'Map<K, V>' is not assignable to 'Map<K, V>'.
UnmodifiableMapView(Map<K, V> baseMap) : super(baseMap);
^^^^^^^
[Dart2JS on svype|web/index.html_bootstrap.dart]:
packages/collection/src/unmodifiable_wrappers.dart:209:38: Info: This is the method declaration.
with UnmodifiableMapMixin<K, V> {
^^^^^^^^^^^^^^^^^^^^
�[31mBuild failed.�[0m
What version of the product are you using? On what operating system?
Dart Editor version 1.0.0_r30798 (STABLE)
Dart SDK version 1.0.0.10_r30798
OS X Version 10.9.1
Please provide any additional information below.
pubspec.yaml file:
dependencies:
browser: '>=0.9.0 <0.10.0'
polymer: ">=0.9.0 <0.10.0"
js: '>=0.2.0'
transformers:
entry_points: web/index.html
The text was updated successfully, but these errors were encountered: