-
Notifications
You must be signed in to change notification settings - Fork 976
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
Incorrect path resolve when other VS Code extensions run firebase related command #7471
Comments
Hey @jin-qin, thanks for reporting this issue. This behavior is a consequence of some recent work we've been doing on a VSCode extension. We should looks into better ways to detect when we are running as part of VSCode. As a immediate workaround, you can manually set the env var that triggers this behavior:
|
It works, thank you @joehan |
Confirming that I found the same issue trying to start firebase emulators via npm script within the Ionic vscode extension, and that adding the VSCODE_CWD='' environment variable to the npm script did alleviate the issue. The npm script ran fine originally from the command line, but gave this error when executing from the Ionic vscode extension:
Here's my updated npm script:
|
Confirmed having problem in VSCode extension. Thanks for the workaround! Here's how I bypassed it:
The key point is not to forget to include the original environment variables. |
Ran into the same issue ourselves when invoking the Firebase emulators from inside a Playwrite global setup script after running the Playwrite test from the ms-playwright VSCode extension. Setting |
[REQUIRED] Environment info
firebase-tools: 13.13.3
Platform: macOS Sonoma 14.5
[REQUIRED] Test case
Use Orta.vscode-jest extension, configure
firebase emulators:exec "jest"
as its command, run jest unit test.[REQUIRED] Steps to reproduce
test.sh
, and put the following content into it:settings.json
, add"jest.jestCommandLine": "./test.sh"
or put./test.sh
intoJest: Jest Command Line
in Jest extension settings.[REQUIRED] Expected behavior
Unit test is passed.
[REQUIRED] Actual behavior
Received error, test aborted:
Workaround
In fact, if I remove the following extension check in
src/templates.ts
:the issue will be suppressed and the unit test is passed.
The text was updated successfully, but these errors were encountered: