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
{{ message }}
Repository navigation
PubSub Emulator on Windows launches a Java window #3506
I've been using the Firestore, Functions, and Hosting emulators for ~1 year now. Today I added a PubSub function which means I had to start using the pubsub emulator.
For some reason when I do emulators:start the PubSub emulator launches in a new window:
This doesn't affect any of the functionality except that when I do Ctrl^C to close the emulators:start process it does not close the PubSub emulator. I have to manually click to close that window in order to free up the port.
[REQUIRED] Steps to reproduce
As far as I can tell, just launching the PubSub emulator on Windows.
[REQUIRED] Expected behavior
PubSub emulator runs as an invisible subprocess just like Functions, Firestore, etc.
[REQUIRED] Actual behavior
See above.
Reacted by David Barishev, AK, Mustafa Şenol Coşar, aalej, lawther, Johan Wänglöv and Louis Kapp
I'm on Windows 11, and when starting the emulators npx firebase emulators:start it opens the Java window. When I stop the emulator, the window persists and doesn't appear to shut anything down. And when I try to start them back up, it fails.
after stopping emulators, when trying to restart:
Reacted by Lars Öltjenbruns, enpepolicy, Jan Ochwat and Jacob Morrison
Activity
samtstern commentedon Jun 18, 2021
I think this is because we use
.batscript instead of just using the JAR:firebase-tools/src/emulator/downloadableEmulators.ts
Line 86 in 7c08e42
I wonder if there's a good reason we can't use the JAR directly?
markgoho commentedon Oct 28, 2021
I'm on Windows 11, and when starting the emulators
npx firebase emulators:startit opens the Java window. When I stop the emulator, the window persists and doesn't appear to shut anything down. And when I try to start them back up, it fails.after stopping emulators, when trying to restart:

ShanArosh commentedon Mar 20, 2023
Any Updates on this.
fix(emulators): prevent extra console windows and orphaned java.exe (#…