Skip to content

Upgrading to 1.9.0-dev.8 messing up pub and/or .pub-cache #1251

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

Closed
DartBot opened this issue Jun 5, 2015 · 6 comments
Closed

Upgrading to 1.9.0-dev.8 messing up pub and/or .pub-cache #1251

DartBot opened this issue Jun 5, 2015 · 6 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/211513?v=3" align="left" width="96" height="96"hspace="10"> Issue by yjbanov
Originally opened as dart-lang/sdk#22499


What steps will reproduce the problem?

Upgrade to 1.9.0-dev.8

Observed two different outcomes on two different machines that seemingly stem from the same cause:

Outcome #­1:

$ dartformat

["Wrong script snapshot version" pointing at dart_style; sorry don't have a copy of the exact message but it's just a couple hashes]

Workaround: delete .pub-cache, pub global activate dart_style, pub get

Outcome #­2:

$ pub
Wrong script snapshot version, expected '836a274342f7f88d6b5a9bb59b2649a9' found '8a2822fc14c97914b87335dcea37245f'
255 ~

Workaround: delete .pub-cache, reinstall SDK

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo


cc @nex3.
cc @munificent.
Added Area-Pub, Pub-Run, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi


I had this message after each update. activating the package again solved it for me (see also http://stackoverflow.com/questions/28585049/update-all-global-activated-packages) but this seems to be fixed since a few days.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/211513?v=3" align="left" width="48" height="48"hspace="10"> Comment by yjbanov


The biggest issue is with the second outcome. If you are unable to run pub at all there is no way for you to activating the package.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


The first issue is issue #1232; the VM changed its exit code for invalid snapshots and the old binstub scripts are now checking the wrong one. If you run "pub cache repair" it will fix all your activated scripts.

The second issue is nastier. Pub itself should never have an incorrect snapshot version. Can you still reproduce this? What happens if you run "pub --verbose"?

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) Pub-Run labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/211513?v=3" align="left" width="48" height="48"hspace="10"> Comment by yjbanov


More reluctant to try to reproduce than cannot, mainly because I don't want to break my dev environment, but I'll let you know if it happens again during next upgrade.

@nex3
Copy link
Member

nex3 commented Dec 9, 2015

Closing this since it seems to be stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants