salesforcedx-vscode
salesforcedx-vscode copied to clipboard
SFDX Extension is not working for Scratch Orgs
Summary
I only can use this extension for Sandboxes. When I'm switching to an existing Scratch Org. Im not able to push/pull/depoy/retrieve any source via the context menu.
It all works for Sandboxes. I also switched between multiple Scratch Orgs (also different from Different Dev Hubs). It looks like all Scratch Orgs are affected:
Connected to a sandbox:
Connected to a scratch org:
As you can see in the scratch org-screen: the sfdx: commands are missing completely in the context menu.
Steps To Reproduce:
- Auth a scratch org via the following: sfdx auth:sfdxurl:store -f ./[email protected] -a [email protected]
- Set default org in the vscode-project
- You shouldnt be able to deploy anything via the context menu
- Try to switch to a sandbox
- You should be able.
Expected result
I can see all options from the salesforce extension in vscode.
Actual result
I can not see all options from the salesforce extension in vscode.
Additional information
I can also see some errors in the vscode-dev-console. This error only occurs on activating your extension:
Salesforce Extension Version in VS Code:
SFDX CLI Version: 7.143.0-7049747
OS and version: macOS Big Sur 11.6
Found a closed issue without any workaround or bugfix from your site: https://github.com/forcedotcom/salesforcedx-vscode/issues/3558
Or also closed: https://github.com/forcedotcom/salesforcedx-vscode/issues/3521
Also maybe one more hint:
- The Auth-File is in a whole different folder and not in the same folder as the sfdx project. After the authentication I just set the default org in my sfdx project to the before authenticated org.
@Schuchie - There is a known limitation in source tracked orgs (which includes scratch orgs and some sandbox orgs) and so we don't show "SFDX: Deploy Source to Org" and "SFDX: Retrieve Source From Org" commands for them. We are actively working on this and should have a fix out in one of the upcoming releases. Thank you!
Hey @jag-sfdc, but some of mine colleges can use this functionality on scratch orgs (based on same org shape etc.) so its looks completely random for me.
@jag-sfdc any update on that problem?
Hi @Schuchie to follow up on this one - this is an item we're actively working on! We have some big internal updates to roll out first, but once those are out the door we have a lot of this work ready to go. Keep an eye on your release notes over the next month for changes to the source deploy/retrieve behavior. ( #safeharbor of course 😄 )
@randi274 Thats sound pretty good. Thx for the feedback!
Any update? @randi274
Getting real close 🤞 those big internal updates turned out to be BIG, but those are finally almost out the door. An updated timeline would likely be after the Dreamforce dust settles.
Got the same issue recently and not able to resolve it. :(
I'm facing the same issue :(
Hi @avaHitesh-github, I was able to resolve this issue by removing the sf
cli and keeping only the sfdx
one.
Hope it helps in you case.
I still have the same problem since the creation of the issue. I dont have sf cli installed only sfdx.
@randi274 did you already published your update?
@kevanmoothien I've only installed SFDX CLI but I do see a .sf folder as well and also see the SF command in bin folder of sfdx. Is it just like removing the file from the bin folder or do I need any further steps or commands to remove the SF from sfdx? Thanks!
I had uninstalled everything including the sf
and sfdx
cli complement. I also deleted the project's .sf
and .sfdx
folders.
And then I deleted all local configurations that may exist. (On Ubuntu, it was /home/user/.sf
and /home/user/.sfdx
.
And then install sfdx from a fresh install.
Hi @Schuchie thanks for the follow-up! We're actively working on this during this iteration, so those Deploy/Retrieve commands will appear against scratch orgs once that work is complete.
No ETA on it just yet, but @klewis-sfdc if you're able, can you tag this ticket once that work is ready?
Just to make sure we're not confusing the issue though @Schuchie - are you still finding that the Push/Pull commands are neither working through the Command Palette nor appearing in a context menu when you're working against a scratch org? That functionality is what should be working today.
@randi274 Testest two days ago, these settings were not available on a new project. Also updated the CLI and all the other stuff to the latest version. Still no diff.
sfdx-cli/7.183.1 darwin-arm64 node-v18.11.0
SF Extension package v56.14.0
I've this problem.