When the firebase emulator:start
is ran in my vscode powershell terminal, some java.exe windows pop open. Everything works great.
When I go to close the firebase emulator, using the ctrl+c command, there are logs in the terminal suggesting that everything is supposedly shutting down gracefully. Here's the log after ^C
:
i emulators: Received SIGINT (Ctrl-C) for the first time. Starting a clean shutdown.
i emulators: Please wait for a clean shutdown or send the SIGINT (Ctrl-C) signal again to stop right now.
i Automatically exporting data using --export-on-exit "./data" please wait for the export to finish...
Terminate batch job (Y/N)? i Found running emulator hub for project une-petite-partie at http://localhost:4400
i Deleting directory C:UsersscharDocumentsProgrammingProjectsCard Gamedatafirestore_export
i Exporting data to: C:UsersscharDocumentsProgrammingProjectsCard Gamedata
i emulators: Received export request. Exporting data to C:UsersscharDocumentsProgrammingProjectsCard Gamedata.
+ emulators: Export complete.
+ Export complete
i emulators: Shutting down emulators.
i ui: Stopping Emulator UI
! Emulator UI has exited upon receiving signal: SIGINT
i functions: Stopping Functions Emulator
i hosting: Stopping Hosting Emulator
i database: Stopping Database Emulator
! Database Emulator has exited upon receiving signal: SIGINT
i firestore: Stopping Firestore Emulator
! Firestore Emulator has exited upon receiving signal: SIGINT
i pubsub: Stopping Pub/Sub Emulator
! Pub/Sub Emulator has exited upon receiving signal: SIGINT
i hub: Stopping emulator hub
i logging: Stopping Logging Emulator
There's a (Y/N) prompt in there, so If I type Y or N, then the terminal comes back to regular powershell stand by.
In reality, the java.exe windows stays open. At that point, if I run firebase emulator:start
again, I get an error saying that the emulator's ports are being used. If I close the java.exe windows manually and run the emulator again, it all works as expected.
I'm using Windows 10, powershell and VS code. I'm not looking for a hack to clear the ports as I can simply close the java.exe windows. I want to know how to close all of it in one fell swoop within powershell. Is there such a thing? Is this an issue I should be reporting?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…