Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When running in WSL emulator does not properly detect lack of 'java' executable #1713
Hi Firebase team,
I've not had success trying to get emulators working in WSL.
The recent update (#1458) fixed the
End goal is to have console.log() showing function output in the command prompt.
Here are the details:
[REQUIRED] Environment info
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
Test commands pasted. The issue happens reliably everytime, emulators are unable to start.
[REQUIRED] Expected behavior
Emulators should start, firebase function output viewable in command prompt.
[REQUIRED] Actual behavior
Also, running firebase serve:
git:(master) ✗ firebase emulators:start --debug [11/10/19| 8:30AM]
[2019-10-10T21:31:52.464Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
Error: An unexpected error has occurred.
Thanks @samtstern for all your help.
I have now installed java separately, following this: https://wiki.jmk.hu/wiki/Install_Java_Development_Kit_on_Windows_Subsystem_for_Linux
I am now seeing hosting logging in the command prompt like: `127.0.0.1 - - [10/Oct/2019:22:14:40 +0000] "GET /static/media/image.f098d4b4.svg HTTP/1.1" 200 1783 "http://localhost:5000/app" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
Can you tell me, how can I see firebase function logging output in the console?