dart-archive / web-components

Dart package providing the web components platform polyfills
https://pub.dartlang.org/packages/web_components
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

incompatible with analyzer > 0.26.1+15 #35

Closed ErikGrimes closed 8 years ago

ErikGrimes commented 9 years ago

I generated a new web-polymer project with stagehand and pub serve threw the following error:

Build error:
Transform WebComponents on explore_elements|web/index.html threw error: Class 'LibrarySpecificUnit' has no instance getter 'isInSystemLibrary'.

NoSuchMethodError: method not found: 'isInSystemLibrary'
Receiver: Instance of 'LibrarySpecificUnit'
Arguments: []
dart:core-patch/object_patch.dart 42                       Object._noSuchMethod
dart:core-patch/object_patch.dart 45                       Object.noSuchMethod
package:analyzer/src/generated/engine.dart 11313           SdkCachePartition.contains
package:analyzer/src/generated/engine.dart 133             AnalysisCache.get
package:analyzer/src/context/cache.dart 984                CachePartition._getDataFor
package:analyzer/src/context/cache.dart 615                CacheEntry._setDependedOnResults.<fn>
dart:core-patch/growable_array.dart 234                    List.forEach
package:analyzer/src/context/cache.dart 614                CacheEntry._setDependedOnResults
package:analyzer/src/context/cache.dart 490                CacheEntry.setValue
package:analyzer/src/task/driver.dart 281                  AnalysisDriver.performWorkItem.<fn>
package:analyzer/src/generated/utilities_general.dart 170  _PerformanceTagImpl.makeCurrentWhile
package:analyzer/src/task/driver.dart 272                  AnalysisDriver.performWorkItem
package:analyzer/src/task/driver.dart 110                  AnalysisDriver.computeResult
package:analyzer/src/context/context.dart 662              AnalysisContextImpl.computeResult
package:analyzer/src/context/context.dart 628              AnalysisContextImpl.computeLibraryElement
package:code_transformers/src/resolver_impl.dart 157       ResolverImpl._performResolve.<fn>.<fn>
dart:_internal/iterable.dart 413                           MappedListIterable.elementAt
dart:_internal/iterable.dart 219                           ListIterable.toList
package:code_transformers/src/resolver_impl.dart 158       ResolverImpl._performResolve.<fn>
dart:async/zone.dart 1166                                  _RootZone.runUnary
dart:async/future_impl.dart 494                            _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 577                            _Future._propagateToListeners
dart:async/future_impl.dart 368                            _Future._completeWithValue
dart:async/future_impl.dart 422                            _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 43                      _microtaskLoop
dart:async/schedule_microtask.dart 52                      _microtaskLoopEntry
dart:isolate-patch/isolate_patch.dart 96                   _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 149                  _RawReceivePortImpl._handleMessage

dart:core                                                  Object.noSuchMethod
package:analyzer/src/generated/engine.dart 11313           SdkCachePartition.contains
package:analyzer/src/generated/engine.dart 133             AnalysisCache.get
package:analyzer/src/context/cache.dart 984                CachePartition._getDataFor
package:analyzer/src/context/cache.dart 615                CacheEntry._setDependedOnResults.<fn>
dart:core                                                  List.forEach
package:analyzer/src/context/cache.dart 614                CacheEntry._setDependedOnResults
package:analyzer/src/context/cache.dart 490                CacheEntry.setValue
package:analyzer/src/task/driver.dart 281                  AnalysisDriver.performWorkItem.<fn>
package:analyzer/src/generated/utilities_general.dart 170  _PerformanceTagImpl.makeCurrentWhile
package:analyzer/src/task/driver.dart 272                  AnalysisDriver.performWorkItem
package:analyzer/src/task/driver.dart 110                  AnalysisDriver.computeResult
package:analyzer/src/context/context.dart 662              AnalysisContextImpl.computeResult
package:analyzer/src/context/context.dart 628              AnalysisContextImpl.computeLibraryElement
package:code_transformers/src/resolver_impl.dart 157       ResolverImpl._performResolve.<fn>.<fn>
dart:_internal                                             ListIterable.toList
package:code_transformers/src/resolver_impl.dart 158       ResolverImpl._performResolve.<fn>

Fixing the analyzer version to 0.26.1+14 resolved the issue.

jakemac53 commented 9 years ago

hmm seems like actually a bug on the analyzer if they removed an api without bumping the version?

jakemac53 commented 9 years ago

although at the same time this is probably coming from something that was imported via the src directory...

jakemac53 commented 8 years ago

assumed stale