dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
181 stars 33 forks source link

Unable to spawn isolate on pub get with angular2 #694

Closed ilikerobots closed 8 years ago

ilikerobots commented 8 years ago

As of polymer 1.0.0-rc.16, when running pub get I receive the error

ERR : Unable to spawn isolate: Unhandled exception:
    | Could not import "package:crypto/crypto.dart" from "package:protobuf/protobuf.dart": Failure getting http://localhost:39400/packages/crypto/crypto.dart:
    |   404 Not Found

for the following pubspec

name: angular_polymer_test
environment:
  sdk: '1.15.0'
dependencies:
  polymer: '1.0.0-rc.16'
  angular2: '2.0.0-beta.15'

I'm not sure if the issue is here or angular2, but i note the problem seems to exist in all angular2 2.0.0 betas and only appears >= polymer rc 16.

ilikerobots commented 8 years ago

Full pub output: https://gist.github.com/ilikerobots/752799e10e3cbcc1eac3aa7b78a17116

zoechi commented 8 years ago

Quite a weird error message. To work around limit the protobuf dependency to 0.5.1.

dependencies:
  protobuf: 0.5.1
zoechi commented 8 years ago

I think this should be reported in the pub repository. Looks like related to dart-lang/dart-protobuf#56

ilikerobots commented 8 years ago

This issue was moved to dart-lang/pub#1410