You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the server restarts after making a code change it is killed and doesn't come back up. After some investigation it appears to have been introduced with this pr: #11691
Essentially if the first promise wins then it resolves and await this.startApiServer() is called. The problem here is the second promise still executes so after 2 seconds it still kills the server anyways.
Running the following code in chrome dev tools console will demonstrate the issue:
After upgrading to 8.4.1 the same thing happens in my project that if I edit in the api the server shuts down and doesn't start again. I use vscode on mac. Really glad I found the bug report here, because I've spent hours debugging.
What's not working?
When the server restarts after making a code change it is killed and doesn't come back up. After some investigation it appears to have been introduced with this pr: #11691
Essentially if the first promise wins then it resolves and
await this.startApiServer()
is called. The problem here is the second promise still executes so after 2 seconds it still kills the server anyways.Running the following code in chrome dev tools console will demonstrate the issue:
Output is:
Promise 1 resolved
Race settled with: First
Promise 2 resolved
How do we reproduce the bug?
Make a change in some code on the api side and save so the server restarts
What's your environment? (If it applies)
No response
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: