-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: Cannot start a build if one is already running #9127
Comments
Also noticed this on 3.16.4/5. |
Other references for this issue with cli 3.15 and 3.16 |
This has started happening to me very frequently on an app running ember-cli 3.17. |
i used ember3.17.0 , it happens frequently when code changed
|
Yeah I'm seeing this a lot now. Happens when you do rapid code changes in a row. |
So you don't necessarily have to restart. You can do another change and let the build finish and livereload should recover. |
This is coming from: Which has been around for a while now, but I suspect the actual issue was introduced by broccolijs/broccoli#408. @gabrielcsapo / @stefanpenner - Either of you have time to poke at this? |
There might be a better way of doing this too, but I was able to downgrade like this as a workaround: # remove broccoli from package-lock
npm uninstall --save-dev ember-cli
# install pinned version of broccoli at 3.3
npm install --save-dev [email protected]
# install downgraded ember-cli which won't force
# broccoli 3.4 since current install already meets reqs
npm install --save-dev [email protected]
# get rid of explicit dep on broccoli from package.json
npm uninstall --save-dev broccoli Note that simply downgrading ember-cli won't downgrade broccoli, because I'm sure there's a fancypants way of doing this more easily with yarn too. Edit: I suppose after downgrading broccoli, you can install |
Looking into this now |
https://github.com/ember-cli/ember-cli/blob/master/lib/models/builder.js#L205, this looks like we need to guard against cancellations because those are expected with this change. |
I think we need to: option 1) Figure out how to hide this in broccoli
|
Ok, I believe the following should be done:
Changes in broccoli: Rather then It will more or less be.
I'm going to disable this in broccoli + release now, then kick the tires on the above solution |
Reverted the changes in broccolijs/broccoli#459 and released as [email protected]. |
WIP: rework, to fix this: broccolijs/broccoli#458 |
Sorry about closing this issue and needing to reopen it. This issue was referenced from a PR in a private repo, and merging that PR apparently auto-closed this issue 😬 |
This has been a small nuisance for me, but in one of my projects I have to restart the dev server like five times in a row before I get a successful build, and then it will randomly break on a rebuild. So it's almost blocking. When it happened in a sequence for the first time, I had an impression that it broke for good. I just couldn't get it to work. But then an Nth attempt succeeded. Is there a workaround or something? |
Adding this to
I hope it works not only because I suddenly got lucky. 😅 |
I believe this issue is actually fixed. If you are getting pinned to an older affected broccoli version, you may need to update your lock file... |
Closing due to inactivity. If the last comment about this problem being fixed is not accurate, please let us know! |
After upgrading to ember-cli 3.17.1 this error started popping up frequently.
If you have
ember s
running and editing files quickly it will show up.Edit one file, save, go to another file, edit and save before the previous incremental build is finished, the "Cannot start a build if one is already running" error pops up and live-reload won't recover. It needs to be restarted.
The text was updated successfully, but these errors were encountered: