dart-lang / source_maps

A package to programmatically manipulate source maps.
https://pub.dev/packages/source_maps
BSD 3-Clause "New" or "Revised" License
16 stars 14 forks source link

Issue with Polymer v0.12.0 and Dart v1.6.0-edge #12

Closed DartBot closed 9 years ago

DartBot commented 9 years ago

Issue by kaendfinger Originally opened as dart-lang/sdk#20290


When I run 'pub serve':

IO : Created temp directory /tmp/pub_5DIc3B IO : Writing 220 characters to text file /tmp/pub_5DIc3B/runInIsolate.dart. ERR : [Observable on polymer|lib/src/instance.dart]:     | Class 'Object' has no instance getter 'sourceUrl'.     |     | NoSuchMethodError: method not found: 'sourceUrl'     | Receiver: Instance of 'Object'     | Arguments: []     | dart:core-patch/object_patch.dart 45 Object.noSuchMethod     | http://0.0.0.0:40411/packages/source_span/src/location.dart 81:26 SourceLocation.==     | http://0.0.0.0:40411/packages/source_maps/printer.dart 228:23 NestedPrinter.writeTo     | http://0.0.0.0:40411/packages/source_maps/printer.dart 213:12 NestedPrinter.build     | http://0.0.0.0:40411/packages/observe/transformer.dart 78:20 ObservableTransformer.apply.<fn>     | dart:async/zone.dart 1088 _RootZone.runUnary     | dart:async/future_impl.dart 488 _Future._propagateToListeners.handleValueCallback     | dart:async/future_impl.dart 571 _Future._propagateToListeners     | dart:async/future_impl.dart 331 _Future._completeWithValue     | dart:async/future_impl.dart 393 _Future._asyncComplete.<fn>     | dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop     | dart:async/schedule_microtask.dart 32 _asyncRunCallback     | dart:isolate-patch/isolate_patch.dart 126 _RawReceivePortImpl._handleMessage     |     | dart:core Object.noSuchMethod     | http://0.0.0.0:40411/packages/source_span/src/location.dart 81:26 SourceLocation.==     | http://0.0.0.0:40411/packages/source_maps/printer.dart 228:23 NestedPrinter.writeTo     | http://0.0.0.0:40411/packages/source_maps/printer.dart 213:12 NestedPrinter.build     | http://0.0.0.0:40411/packages/observe/transformer.dart 78:20 ObservableTransformer.apply.<fn>     | dart:isolate _RawReceivePortImpl._handleMessage IO : Deleting directory /tmp/pub_5DIc3B. FINE: Loading polymer transformers finished (0.8s). FINE: Transformers from polymer: {Instance of 'PolymerTransformerGroup'} FINE: Transformers from polymer: {Instance of 'PolymerTransformerGroup'}

DartBot commented 9 years ago

Comment by zoechi


I get the same error message with this example https://github.com/bwu-dart/bwu_fontawesome_iconset_svg/blob/master/example/index.html

In addition to the above stack trace I got

Build error: Transform ImportInliner on bwu_fontawesome_iconset_svg|example/index.html threw error: Class 'Object' has no instance getter 'sourceUrl'.

NoSuchMethodError: method not found: 'sourceUrl' Receiver: Instance of 'Object' Arguments: [] dart:core-patch/object_patch.dart 45 Object.noSuchMethod http://localhost:41460/packages/source_span/src/location.dart 81:26 SourceLocation.== http://localhost:41460/packages/source_maps/printer.dart 228:23 NestedPrinter.writeTo http://localhost:41460/packages/source_maps/printer.dart 213:12 NestedPrinter.build http://localhost:41460/packages/polymer/src/build/import_inliner.dart 422:35 _UrlNormalizer.visitInlineDart http://localhost:41460/packages/polymer/src/build/import_inliner.dart 361:34 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 39:50 TreeVisitor.visitElement http://localhost:41460/packages/polymer/src/build/import_inliner.dart 364:30 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 39:50 TreeVisitor.visitElement http://localhost:41460/packages/polymer/src/build/import_inliner.dart 364:30 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 32:52 TreeVisitor.visitDocument http://localhost:41460/packages/html5lib/dom_parsing.dart 16:52 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 52:59 _HtmlInliner.apply.<fn> dart:async/zone.dart 1088 _RootZone.runUnary dart:async/future_impl.dart 488 _Future._propagateToListeners.handleValueCallback dart:async/future_impl.dart 571 _Future._propagateToListeners dart:async/future_impl.dart 331 _Future._completeWithValue dart:async/future_impl.dart 393 _Future._asyncComplete.<fn> dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop dart:async/schedule_microtask.dart 32 _asyncRunCallback dart:isolate-patch/isolate_patch.dart 126 _RawReceivePortImpl._handleMessage

dart:core Object.noSuchMethod http://localhost:41460/packages/source_span/src/location.dart 81:26 SourceLocation.== http://localhost:41460/packages/source_maps/printer.dart 228:23 NestedPrinter.writeTo http://localhost:41460/packages/source_maps/printer.dart 213:12 NestedPrinter.build http://localhost:41460/packages/polymer/src/build/import_inliner.dart 422:35 _UrlNormalizer.visitInlineDart http://localhost:41460/packages/polymer/src/build/import_inliner.dart 361:34 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 39:50 TreeVisitor.visitElement http://localhost:41460/packages/polymer/src/build/import_inliner.dart 364:30 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 39:50 TreeVisitor.visitElement http://localhost:41460/packages/polymer/src/build/import_inliner.dart 364:30 _UrlNormalizer.visitElement http://localhost:41460/packages/html5lib/dom_parsing.dart 12:50 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/html5lib/dom_parsing.dart 24:49 TreeVisitor.visitChildren http://localhost:41460/packages/html5lib/dom_parsing.dart 30:48 TreeVisitor.visitNodeFallback http://localhost:41460/packages/html5lib/dom_parsing.dart 32:52 TreeVisitor.visitDocument http://localhost:41460/packages/html5lib/dom_parsing.dart 16:52 TreeVisitor.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 335:16 _UrlNormalizer.visit http://localhost:41460/packages/polymer/src/build/import_inliner.dart 52:59 _HtmlInliner.apply.<fn> dart:isolate _RawReceivePortImpl._handleMessage

DartBot commented 9 years ago

Comment by sigmundch


DartBot commented 9 years ago

Comment by nex3


Can you post your lockfiles?


Added NeedsInfo label.

DartBot commented 9 years ago

Comment by nex3


I just cleaned up some packages with busted version constraints. Can you verify that this still reproduces if you run "pub upgrade"?

DartBot commented 9 years ago

Comment by kaendfinger


Looks like its fine :) Thanks

DartBot commented 9 years ago

Comment by zoechi


same here - works fine, thanks a lot!

DartBot commented 9 years ago

Comment by sigmundch


Added Fixed label.