Skip to content

PubSub Emulator on Windows launches a Java window #3506

Open

Description

@hatboysam

[REQUIRED] Environment info

firebase-tools: 9.3.0

Platform: WIndows 10

[REQUIRED] Test case

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:
image

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.

Activity

  1. samtstern commented on Jun 18, 2021

    @samtstern
    Contributor

    I think this is because we use .bat script instead of just using the JAR:

    `pubsub-emulator/bin/cloud-pubsub-emulator${process.platform === "win32" ? ".bat" : ""}`

    I wonder if there's a good reason we can't use the JAR directly?

  2. markgoho commented on Oct 28, 2021

    @markgoho

    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.

    image
    image

    after stopping emulators, when trying to restart:
    image

  3. ShanArosh commented on Mar 20, 2023

    @ShanArosh

    Any Updates on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions