Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub deploy crash #11224

Closed
DartBot opened this issue Jun 11, 2013 · 6 comments
Closed

pub deploy crash #11224

DartBot opened this issue Jun 11, 2013 · 6 comments
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@DartBot
Copy link

DartBot commented Jun 11, 2013

This issue was originally filed by paul.sand...@hapara.com


The compiler is broken.

When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.

The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.

Please include the following information:

* the name and version of your operating system, = OSX 10.8.3

* the Dart SDK build number = 0.5.16_r23799

* the entire message you see here (including the full stack trace
  below as well as the source location above).

I have also attached the output from pub --trace 'deploy'

--- Jun 12, 2013 10:47:37 AM Running pub deploy ... ---
Pub deploy failed, [1] Finding entrypoints...
Copying web/ → deploy/
Compiling web/frontend.dart → deploy/frontend.dart.js
web/frontend.dart:32:3: Warning: no property named startAPP in class Proxy
  js.context.startAPP = new js.Callback.once(startAPP);
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
packages/js/js.dart:993:62: Warning: Using "MirrorSystem.getName" may result in larger output.
    String member = symbol is String ? symbol : MirrorSystem.getName(symbol);
                                                             ^^^^^^^
web/src/app/services/api/InitService.dart:32:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.dashboard.initDashboard(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/drive/helpers/DriveRetriever.dart:50:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.hdrive.getuserdocs(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/dashboard/TabInfoService.dart:31:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.dashboard.getTab(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/APIInterface.dart:44:7: Warning: no property named gapi in class Proxy
      js.context.gapi.client.load(item[0], item[1], new js.Callback.once(apiLoadComplete), apiRoot);
      ^^^^^^^^^^^^^^^
web/src/app/services/api/APIInterface.dart:74:5: Warning: no property named gapi in class Proxy
    js.context.gapi.auth.authorize(options, new js.Callback.once((data) {
    ^^^^^^^^^^^^^^^
Compiling web/frontend.dart → deploy/frontend.dart
web/frontend.dart:32:3: Warning: no property named startAPP in class Proxy
  js.context.startAPP = new js.Callback.once(startAPP);
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
packages/js/js.dart:993:62: Warning: Using "MirrorSystem.getName" may result in larger output.
    String member = symbol is String ? symbol : MirrorSystem.getName(symbol);
                                                             ^^^^^^^
web/src/app/services/api/InitService.dart:32:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.dashboard.initDashboard(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/drive/helpers/DriveRetriever.dart:50:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.hdrive.getuserdocs(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/dashboard/TabInfoService.dart:31:5: Warning: no property named gapi in class Proxy
    js.context.gapi.client.dashboard.getTab(data).execute(new js.Callback.once((obj, res) {
    ^^^^^^^^^^^^^^^
web/src/app/services/api/APIInterface.dart:44:7: Warning: no property named gapi in class Proxy
      js.context.gapi.client.load(item[0], item[1], new js.Callback.once(apiLoadComplete), apiRoot);
      ^^^^^^^^^^^^^^^
web/src/app/services/api/APIInterface.dart:74:5: Warning: no property named gapi in class Proxy
    js.context.gapi.auth.authorize(options, new js.Callback.once((data) {
    ^^^^^^^^^^^^^^^
web/frontend.dart:1:1: Error: The compiler crashed when compiling this element.
library hapara;

Codegen work list is closed.

­0 CodegenEnqueuer.addElementToWorkList (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:476:7)

­1 Enqueuer.addToWorkList (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:75:31)

­2 Enqueuer.processInstantiatedClassMember.processInstantiatedClassMember (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:161:29)

­3 BaseClassElementX.forEachMember.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart:1076:47)

­4 LinkEntry.forEach (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart:77:8)

­5 ClassElementX.forEachLocalMember (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart:1153:35)

­6 BaseClassElementX.forEachMember (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart:1076:38)

­7 Enqueuer.processInstantiatedClass (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:123:37)

­8 Enqueuer.checkNoEnqueuedInvokedInstanceMethods.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:116:35)

­9 CompilerTask.measure (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:828:37)

­10 Enqueuer.checkNoEnqueuedInvokedInstanceMethods (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart:111:17)

­11 Compiler.processQueue (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:609:55)

­12 Compiler.runCompiler (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:566:17)

­13 Compiler.run (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:379:18)

­14 Compiler.run (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/compiler.dart:394:7)

­15 Compiler.run (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart:161:29)

­16 compile (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/compiler/compiler.dart:16:15)

­17 compile.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/pub/lib/src/dart.dart:24:28)

­18 Future.Future.sync (dart:async/future.dart:10:31)

­19 compile (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/pub/lib/src/dart.dart:17:10)

­20 DeployCommand.onRun.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command_deploy.dart:41:30)

­21 _ThenFuture._sendValue (dart:async/future_impl.dart:265:24)

­22 _FutureImpl._setValue (dart:async/future_impl.dart:149:26)

­23 _FutureImpl._setOrChainValue (dart:async/future_impl.dart:239:16)

­24 _ThenFuture._sendValue (dart:async/future_impl.dart:271:21)

­25 _FutureImpl._addListener.<anonymous closure> (dart:async/future_impl.dart:190:30)

­26 _asyncRunCallback._asyncRunCallback (dart:async/event_loop.dart:9:15)

­27 Timer.Timer.<anonymous closure> (dart:async-patch/timer_patch.dart:9:15)

 


Attachment:
Trace.txt (5.36 MB)

@kasperl
Copy link

kasperl commented Jun 12, 2013

Added Area-Pub, Triaged labels.

@larsbak
Copy link

larsbak commented Jul 8, 2013

The problem is "pub deploy" does not recognize that "packages/browser/interop.js" is required even though there is a dependency on the "js" package.
Any simple web app using "js" seems to have this problem.
//Lars


Removed Priority-Unassigned label.
Added Priority-High label.

@munificent
Copy link
Member

The larger work we're doing on handling resources across packages will address this, but in the short term we can fix it by just copying all non-dart files in a dependent package's lib directory. I'll take care of this.


Set owner to @munificent.
Added Started label.

@munificent
Copy link
Member

@munificent
Copy link
Member

OK, I've fixed the issue where pub deploy doesn't copy over interop.js. It should now.

I haven't confirmed that that's the cause of the original issue, so if you still see problems here, please do let me know.


Added Fixed label.

@DartBot DartBot added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Jul 8, 2013
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#578.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

4 participants