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
Error: No active package pub #4225
Comments
Got both commands to run again by running:
and
Doing it for jaspr like for melos did not work, had to use jaspr_cli. |
Ouch - #4205 was supposed to fix this issue. Could it be that the binstub with the problem was created by an earlier dev release of SDK? |
It's possible. I just downgraded to Dart Stable 3.3.3, deactivated and overwrote melos and then went back to the current Dart dev version and it did
just fine. So it seems to work and I just had a broken state? The only weird thing was, that the run ended (but only the first run) with
but that didn't seem to do anything negative. |
deactivating and reactivating of the affected global package should fix it. I'll close this issue as fixed- but please comment if I have overseen something. |
The only remaining weird thing is the message after first running the program after moving from stable to dev. Happens with all packages I have installed (but only after the first run, the message doesn't appear in later runs): melos:
jaspr:
pana:
But it doesn't break anything as far as I can tell. |
I also ran into this issue and was seemingly only able to fix it with the |
I've run into this again, this time on my personal machine, and this time cycling the package and using I'm on the master channel, and $ flutter doctor -v
[✓] Flutter (Channel master, 3.22.0-14.0.pre.56, on macOS 14.2.1 23C71
darwin-arm64, locale en-US)
• Flutter version 3.22.0-14.0.pre.56 on channel master at
/Users/craiglabenz/Dev/git/flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision babc722438 (58 minutes ago), 2024-04-19 20:34:25 -0400
• Engine revision 3db86b3cab
• Dart version 3.5.0 (build 3.5.0-81.0.dev)
• DevTools version 2.35.0-dev.8 |
This time around, I solved the issue by deleting my
The full error message I saw was:
|
You probably had to overwrite No idea why |
@craiglabenz was the serverpod package originally activated with an older dev-release or with the 3.5.0-81.0.dev one? Do we think that flutter doctor hanging has anything to do with pub?? |
@sigurdm The older serverpod package was almost certainly activated with an older release, since I update at least weekly. Would it make sense to nuke and recreate a binstub when it encounters an error? This bug was pretty hard to get around. In fact I was actually hard blocked until I asked Flutter teammates and was directed to this bug. Googling "No active package pub" didn't even find this issue - it actually returned zero results. So - improving the tool to self-correct faulty binstubs could be valuable :) |
Yeah, removing faulty binstubs would not be a bad idea. |
Filed #4235 |
Environment
Dart SDK version: 3.5.0-43.0.dev (dev) (Tue Apr 9 21:04:06 2024 -0700) on "windows_x64"
Problem
Trying to run
melos bootstrap
orjaspr serve
I get the following error: No active package pubpub_log.txt
has this:The Command looks strange, trying to
dart pub global run pub global
. Maybe related to this change ed20b45 ?EDIT: Manually running
dart pub global run melos bootstrap
instead ofmelos bootstrap
anddart pub global run jaspr_cli:jaspr serve
instead ofjaspr serve
works as a workaround.The text was updated successfully, but these errors were encountered: