简体   繁体   中英

Dart editor can't retrieve dependencies with Pub

I am trying to retrieve the needed dependencies for my newest project that I was going to try out Angular Dart with but every time I try to retrieve the dependencies like angular and web components packages, I get and error. The message in the editor console is: "Pub get failed, [69] Resolving dependencies... Connection closed before full header was received

** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **"

I did run it again a few times to see if that would fix it and it did not, it only made the same message again.

I am using dart sdk version 1.9.1 with dart editor build 44672

I have already tried pub cache repair on the cmd and it didn't help.

This is my pubspec.yaml file:

name: angulardart
version: 0.0.1
description: An absolute bare-bones web app.
environment:
   sdk: '>=1.0.0 <2.0.0'
dependencies:
  angular: '1.1.0'
  browser: '>=0.10.0+2 <0.11.0'
  web_components: '>=0.10.0+2 <0.11.0'
transformers:
  angular

Anything would be helpful.

Edit I have tried running pub get --trace and it did not work

I have also tried removing the constraints and running just any version of my dependencies. It still returns the same warning and issue: "Pub get failed, [69] Resolving dependencies... Connection closed before full header was received

** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **"

My pubspec.yaml for this try is:

name: angulardart
version: 0.0.1
description: An absolute bare-bones web app.
environment:
  sdk: '>=1.0.0 <2.0.0'
dependencies:
  angular: any
  browser: any
  web_components: any
transformer:
  angular

The issues seems to be an error in the latest build of dart sdk 1.9.1 and I have submitted an issue with the developers in google code.

issue link: http://dartbug.com/23004

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM