-
Notifications
You must be signed in to change notification settings - Fork 231
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
Comments
<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo cc @nex3. |
<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. |
<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. |
<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"? |
<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. |
Closing this since it seems to be stale. |
<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
The text was updated successfully, but these errors were encountered: