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
Improve emulator env-related error-handling (e.g. missing java
)
#3443
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Hmmm interesting I thought we handled this:
emulator.instance.on("error", async (err: any) => {
if (err.path === "java" && err.code === "ENOENT") {
await _fatal(
emulator,
`${description} has exited because java is not installed, you can install it from https://openjdk.java.net/install/`
);
} else {
await _fatal(emulator, `${description} has exited: ${err}`);
}
}); I wonder why that block isn't catching the error ... maybe this is Windows or WSL specific? |
Ahhh I see this is storage specific. The Rules runtime (which is a |
@abeisgoat can you try to unify some of the logic so that the rules runtime benefits from the |
so sadly we had to diverge and not reuse a lot of the |
[REQUIRED] Environment info
firebase-tools: 9.12.1
Platform: Ubuntu 20.04 (via WSL2)
[REQUIRED] Test case
Run
firebase-tools
withoutjava
being installed.[REQUIRED] Steps to reproduce
Install
firebase-tools
, runfirebase init
and then smth likefirebase emulators:start --only storage
.[REQUIRED] Expected behavior
firebase-tools
complains about missingjava
.[REQUIRED] Actual behavior
Smth like this is dumped into the debug log:
** Additional info
As soon as I install
java
the very same command works without a glitch.The text was updated successfully, but these errors were encountered: