-
Notifications
You must be signed in to change notification settings - Fork 78
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
The "sf org open" command from VSCODE connected to WSL2 does not work #2677
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @NerioVillalobos 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
{ |
Reminder that WSL isn't supported (we don't replicate those bugs, don't run tests in that environment, etc). On windows, cmd.exe and powershell are well-used, so it's "best efforts, hope it works". So I'm going to close the issue. First, make sure you can replicate this with only If you're interested in doing some debugging and contributing a fix that'll help other WSL users without breaking anyone else, we're happy to take a PR. Under the hood, we're using this library https://github.com/sindresorhus/open. If that isn't working correctly for WSL2, you may need to wait for a fix there. We also do a check using isWSL here to give the browser extra time. If the "sometimes it works, sometimes it doesn't" is related to that, you could try adding more time there (and verifying that it's getting the correct answers for the environment). |
Hi, With pleasure, I am willing to help, but you would have to tell me what you need, at this moment perform the test by closing the vscode and executing the command directly from the wsl2 terminal, performing the procedure in this way nervill@DESKTOP-L91RLI8: and I didn't have any response attached image of what was done Forcing the command with the browser option I get the following result This can help you detect the error or what you would need to help you detect the error, tell me what you want me to do and I will be happy to do it. |
@NerioVillalobos @mshanemc |
This issue has been linked to a new work item: W-15278875 |
Summary
I use VSCODE and I connect it with a WSL Ubuntu instance where I have sf-cli installed and that way I use all the functionalities of sf-cli from WSL, I recently received a Windows update via Windows update and I updated the WSL using " wsl --update", from that moment on, when I try to use the "sf org open" command, it does not open the browse with the required org, it only shows me the browse with this url: https://tmp/
Steps To Reproduce
Expected result
The browser is expected to open with the salesforce default org that is configured
Actual result
Sometimes it opens the browser with the url https://tmp/ and on other occasions it simply does nothing, even though it informs the terminal that it is carrying out the opening process.
System Information
Additional information
nervill@DESKTOP-L91RLI8:~/DevOps$ sf org open
Opening org 00D52000000JP1DEAW as user [email protected]
Waiting to resolve the Lightning Experience-enabled custom domain...... done
The text was updated successfully, but these errors were encountered: