-
Notifications
You must be signed in to change notification settings - Fork 933
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
Handle PowerShell comma behavior for parsing command arguments #7506
Comments
Hey @paulpv, thanks for the detailed report. I was able to reproduce this issue when using PowerShell, however, when I tried using Command Prompt, the command When using the Command Prompt, checking the generated
However, when using PowerShell, I checked the generated
I noticed that the “,” separating Could you try adding quotes around the argument to see if you would be able to start the emulators? The command would look something like:
|
Purfect! Works just fine now! I had a feeling it had something to do with the commas! "Today I learned" that PS treats commas differently. Hopefully this helps out anyone in the future that runs into this! You may close as appropriate. |
Awesome! It’s good to hear that the command now works. For now, I’ll go ahead and close this issue as it’s solved. Though, I’ll bring this up to our engineering team to see if we could update the docs. |
Quick update, re-opening this issue. Discussed this with our engineering team and we think we could add some logic to handle how PowerShell treats commas. I'll change the title of the issue to match this. |
firebase emulators:start --only firestore,functions,hosting
not working; firebase emulators:start
works fine
[REQUIRED] Environment info
firebase-tools: 13.14.2
Platform: Windows
[REQUIRED] Test case
...
[REQUIRED] Steps to reproduce
Setup:
PowerShell v7 Administrator:
Close and reopen PowerShell (Admin), then:
[REQUIRED] Expected behavior
Emulator starts
[REQUIRED] Actual behavior
Notes
Everything works fine if I run just:
or even just
Seems like anything comma-separated
--only a,b
does not work.This is using an existing project that runs fine on Mac/Linux, when I use
--only firestore,functions,hosting
.Log of a successful non-
--only a,b
command:The text was updated successfully, but these errors were encountered: