Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

pub build fails #352

Closed
Michael-Dawkins opened this issue Dec 16, 2013 · 5 comments
Closed

pub build fails #352

Michael-Dawkins opened this issue Dec 16, 2013 · 5 comments

Comments

@Michael-Dawkins
Copy link

We have been porting our app from angular.js to angular dart for a week, everything went fine until our last merge which seems to use something broken in angular.dart.
Dart2js runs with warnings, and pub build just fails so we cannot deploy our app.

Here is dart2js log :


--- 16 déc. 2013 10:09:45 Running dart2js... ---
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/introspection.dart:74:3: Warning: No property named 'ngProbe' in class 'Proxy'.
  js.context.ngProbe = (dom.Node node) => _jsProbe(ngProbe(node));
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/introspection.dart:75:3: Warning: No property named 'ngInjector' in class 'Proxy'.
  js.context.ngInjector = (dom.Node node) => _jsInjector(ngInjector(node));
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/introspection.dart:76:3: Warning: No property named 'ngScope' in class 'Proxy'.
  js.context.ngScope = (dom.Node node) => _jsScope(ngScope(node));
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/introspection.dart:77:3: Warning: No property named 'ngQuery' in class 'Proxy'.
  js.context.ngQuery = (dom.Node node, String selector, [String containsText]) =>
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/js/js.dart:197:34: Hint: Using 'MirrorSystem.getName' may result in larger output.
    String member = MirrorSystem.getName(invocation.memberName);
                                 ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/js/js.dart:264:34: Hint: Using 'MirrorSystem.getName' may result in larger output.
    String member = MirrorSystem.getName(invocation.memberName);
                                 ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/di/mirrors.dart:40:53: Hint: Using 'MirrorSystem.getName' may result in larger output.
String getSymbolName(Symbol symbol) => MirrorSystem.getName(symbol);
                                                    ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/di/mirrors.dart:46:23: Hint: Using 'MirrorSystem.getName' may result in larger output.
  return MirrorSystem.getName(getClassMirrorBySymbol(symbol).simpleName);
                      ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/route_hierarchical/url_matcher.dart:44:17: Hint: The class 'UrlMatch' overrides 'operator==', but not 'get hashCode'.
  bool operator ==(o) {
                ^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/parser/backend.dart:56:18: Hint: Using "new Symbol' may result in larger output.
Use 'const Symbol' if possible.
    var symbol = new Symbol(key);
                 ^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/parser/backend.dart:81:18: Hint: Using "new Symbol' may result in larger output.
Use 'const Symbol' if possible.
    var symbol = new Symbol(key);
                 ^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/scope.dart:131:29: Hint: Using 'MirrorSystem.getName' may result in larger output.
    var name = MirrorSystem.getName(invocation.memberName);
                            ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/directive.dart:461:38: Hint: Using 'MirrorSystem.getName' may result in larger output.
        var fieldName = MirrorSystem.getName(name);
                                     ^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/webpuzzle.dart:1:1: Hint: 7439 methods retained for use by dart:mirrors out of 9311 total methods (80%).
library webpuzzle;

../../../../../Documents/GitHub/webpuzzle/web/packages/di/mirrors.dart:3:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/module.dart:6:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core/parser/parser_library.dart:3:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/angular/core_dom/module.dart:6:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
../../../../../Documents/GitHub/webpuzzle/web/packages/js/js.dart:73:1: Info: Import of 'dart:mirrors'.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
Wrote C:\Users\Mike\Documents\GitHub\webpuzzle\web\webpuzzle.dart.js [5456.0kb written in 18.9 seconds]

You can reproduce this error by trying to build at this commit WebPuzzle/webpuzzle@81ecf65 (the problem was introduced at the preceding merge commit : WebPuzzle/webpuzzle@8ae52a4)

@pavelgj
Copy link
Contributor

pavelgj commented Dec 16, 2013

Could you please include the rest of the pub build output? dart2js succeeds, so the problem must be somewhere else.

@Michael-Dawkins
Copy link
Author

Of course, here it is http://www.pasteall.org/48071
I have no problem running the code in dart using dartium.

@pavelgj
Copy link
Contributor

pavelgj commented Dec 16, 2013

Unfortunately there's nothing to suggest the error is angular specific. I would suggest filing a http://dartbug.com

@Michael-Dawkins
Copy link
Author

Thank you for your advice, I have filed a bug here https://code.google.com/p/dart/issues/detail?id=15664&thanks=15664&ts=1387231085

@pavelgj
Copy link
Contributor

pavelgj commented Dec 16, 2013

Thanks. We'll reopen this issue is it turns out to be something angular related.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants