2012-10-11 9 views
5

पब डार्ट-वेब-घटकों पर स्थापित चल रहा है एक त्रुटि देता है:पब स्थापित डार्ट-वेब-घटकों में विफल रहा है

Pub install fail, HttpParserException: Connection closed before full header was received 

/dart-web-components/build.dart --changed=packages\args\args.dart --changed=packages\args\src\utils.dart --changed=packages\logging\... 
Failed with error code 255 
Unable to open file: C:/dartapps/dart-web-components/packages/web_components/component_build.dart'file:///C:/dartapps/dart-web-components/build.dart': Error: line 8 pos 1: library handler failed 

आयात 'पैकेज: web_components/component_build.dart'; ^

build.dart फ़ाइल में एक स्ट्रिंग

import 'package:web_components/component_build.dart'; 

संपादक

Cannot find referenced source: package:web_components/component_build.dart  

component_build.dart त्रुटियों

Cannot find referenced source: package:args/args.dart 
Cannot find referenced source: package:web_components/dwc.dart 
+0

मैं उस व्यक्ति से पूछूंगा जो इस सामान पर एक नज़र डालने के लिए काम करता है। –

+0

विंडोज के साथ पब में एक बग था, उन्होंने कल तय किया: http://code.google.com/p/dart/issues/detail?id=6513, लेकिन फिर भी, मुझे लगता है कि अगले डार्ट संपादक रिलीज की प्रतीक्षा करें (उम्मीद है कि, जल्द ही, जैसा कि अक्सर होता है) –

उत्तर

0

ठीक है, तो को देखकर होता है एक त्रुटि से पता चलता है अपने आउटपुट:

Pub install fail, HttpParserException: Connection closed before full header was received 

यह वास्तविक समस्या है।

/dart-web-components/build.dart --changed=packages\args\args.dart --changed=packages\args\src\utils.dart --changed=packages\logging\... 
Failed with error code 255 
Unable to open file: C:/dartapps/dart-web-components/packages/web_components/component_build.dart'file:///C:/dartapps/dart-web-components/build.dart': Error: line 8 pos 1: library handler failed 

ये पहली समस्या के कारण लाल बालियां हैं।

मुझे लगता है कि आप विंडोज पर हैं। एक ज्ञात मुद्दा है जहां HTTP सामान में कुछ अंतःस्थापित गैर-निर्धारिती विफलताओं हैं। मैं अभी भी जांच कर रहा हूं, लेकिन इसे ट्रैक करना मुश्किल है।

क्या आपको हर बार यह त्रुटि मिलती है? आपने कितने प्रयास किए हैं?

यहां परेशानी के लिए खेद है।

0

मैंने कई बार कोशिश की। अब मैं डार्ट-वेब-घटकों को डिफ़ॉल्ट पैकेज-रूट निर्देशिका में डालता हूं। पब अब पैदावार

Pub install fail, Package "html5lib" doesn't have a pubspec.yaml file. 

हालांकि, संपादक एक ही त्रुटियों

Cannot find referenced source: package:web_components/component_build.dart 
Cannot find referenced source: package:args/args.dart 

आदि लगभग हर * .dart फ़ाइल में

0

जोड़ा इस pubscpec.yams में पता चलता स्थापित

एचटीएमएल 5 एलआईबी: गिट: गिट: //github.com/dart-lang/html5lib.git

अब मैं फिर से

Pub install fail, HttpParserException: Connection closed before full header was received 
0

मिल आप इंटरनेट का उपयोग करने के लिए एक प्रॉक्सी का प्रयोग करें? डार्टएडिटर प्रॉक्सी सेट नहीं कर सकता है, इसलिए यह पब पैकेज तक नहीं पहुंच सकता है।

2

मैंने इस समस्या को हल किया। ऐसा लगता है कि कैश फ़ोल्डर (पब) दूषित हो गया है।

मैं फ़ोल्डर कैश नष्ट कर दिया है:

C:\Users\<UserName>\AppData\Roaming\Pub

फिर मैं चलाने pub install कमांड लाइन से है और यह काम करता है।

मेरा ओएस विंडोज 7 है।

+0

साझा करने के लिए धन्यवाद। यह एक बहुत ही उपयोगी कामकाज हो सकता है। – hanxue

संबंधित मुद्दे