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 global activate doesn't work on dev.64.1 #1932

Closed
natebosch opened this issue Jun 21, 2018 · 13 comments
Closed

pub global activate doesn't work on dev.64.1 #1932

natebosch opened this issue Jun 21, 2018 · 13 comments
Assignees

Comments

@natebosch
Copy link
Member

It looks like it's because we're trying to run the Dart 1 snapshot with a Dart 2 VM

@alorenzen
Copy link

This is blocking anyone using webdev externally for angular development from working. If someone is assigned to look into the issue, can we please mark them as Assignee?

@natebosch
Copy link
Member Author

The workaround for now is pub global run webdev which seems to work

@alorenzen
Copy link

@kevmoo is IntelliJ integration for webdev broken because of this?

@kevmoo
Copy link
Member

kevmoo commented Jun 21, 2018

Likely – webdev won't be able to run...

@munificent
Copy link
Member

#1933

@dougreese
Copy link

The pub global run webdev workaround does not work for me.

Using build_runner: ^0.9.0 results in:

webdev could not run for this project.
The `build_runner` version – 0.9.0 – is not within the allowed constraint – ^0.8.2.

Using build_runner: ^0.8.2 or ^0.8.3 results in a bunch of precompile errors, such as:

Failed to precompile build_runner:graph_inspector:
file:///home/me/.pub-cache/hosted/pub.dartlang.org/build_runner-0.8.3/lib/src/generate/phase.dart:10:1: Error: 'PostProcessBuilder' is imported from both 'package:build/src/builder/post_process_builder.dart' and 'package:build_runner/src/builder/post_process_builder.dart'.
import '../builder/post_process_builder.dart';

@kevmoo
Copy link
Member

kevmoo commented Jun 25, 2018 via email

@alorenzen
Copy link

@munificent what's the status here?

@natebosch
Copy link
Member Author

@alorenzen, the next release of the SDK should have a (temporarily) working pub global activate and run. The release after that might start having problems due to dart-lang/sdk#33577

@alorenzen
Copy link

Do we have an ETA for the next SDK release?

@thosakwe
Copy link

By any chance, would this be related to this error as well?

[SEVERE] Failed after 11.6s
NoSuchMethodError: Class '_SingleBuild' has no instance method 'runPostProcessBuilder'.
Receiver: Instance of '_SingleBuild'
Tried calling: runPostProcessBuilder(Instance of 'ModuleCleanup', Instance of 'AssetId', Instance of 'SingleStepReader', Instance of 'AssetWriterSpy', Instance of 'BuildForInputLogger', Instance of 'AssetGraph', Instance of 'PostProcessAnchorNode', 464)

Happens with build_runner@^0.8.0, build_web_compilers@^0.4.0, and Dart 2.0.0-dev.59.0. It worked before, but of the blue stopped working. I'm not sure which dependency changed, but I'm assuming there's some sort of incompatibility that crept up.

@kevmoo
Copy link
Member

kevmoo commented Jun 26, 2018

@thosakwe – not really.

We have some version solving silly happening. To get around your issue, you need to set the constraint on build_runner to ^0.8.10 or better yet 0.9.0

@natebosch
Copy link
Member Author

We're using Dart 2 mode all the time in the sable SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants