bwu-dart / bwu_datagrid

A data-grid Polymer element in Dart
MIT License
73 stars 26 forks source link

NoSuchMethodError: method not found: 'pubspec' #110

Closed damondouglas closed 9 years ago

damondouglas commented 9 years ago

pub get using Dart VM version: 1.10.0 (Fri Apr 24 08:41:51 2015) on "linux_x64" results in the following stack trace. Related reported issues: 21490, 22511, 22041.

Resolving dependencies... 
Got dependencies!
Precompiling dependencies... 
Loading source assets... 
The null object does not have a getter 'pubspec'.

NoSuchMethodError: method not found: 'pubspec'
Receiver: null
Arguments: []
dart:core                                                                                            Object.noSuchMethod
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 251   _PackageDependencyComputer._PackageDependencyComputer
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 199   DependencyComputer._loadPackageComputer
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 107   DependencyComputer._transformersNeededByTransformer
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 258   _PackageDependencyComputer._PackageDependencyComputer
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 199   DependencyComputer._loadPackageComputer
dart:core                                                                                            List.forEach
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/dependency_computer.dart 53    DependencyComputer.DependencyComputer
/tmp/tmp_ldPtI/dart-1.10.0/dart/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart 33  loadAllTransformers.<async>
dart:isolate                                                                                         _RawReceivePortImpl._handleMessage
zoechi commented 9 years ago

This looks looks like your pub cache is broken. Please try pub cache repair

damondouglas commented 9 years ago

Thank you, @zoechi Ugh sorry still having the exception.

zoechi commented 9 years ago

Then you probably need to purge the ~/.pub-cache/hosted directory, if this still doesn't help the entire ~/.pub-cache

damondouglas commented 9 years ago

@zoechi , I did the following experiment. The TL;DR is that I need to investigate bwu_sparkline.

Using den, I incrementally installed and pub get, each of bwu_datagrid's dependencies. I didn't see #110 until I pub get after adding bwu_sparkline. #110 resolved and relapsed after removing and adding bwu_sparkline, respectively.