Skip to content
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

Don't see all available commands #672

Closed
domonique-ncino opened this issue Oct 11, 2018 · 6 comments
Closed

Don't see all available commands #672

domonique-ncino opened this issue Oct 11, 2018 · 6 comments

Comments

@domonique-ncino
Copy link

Summary

I'm trying to use the extension and push my code up to my scratch org but I don't see the command in the commandPalette

Steps To Reproduce:

  1. Installed the Extension
  2. Reloaded
  3. Pulled command palette up
  4. Searched for 'Push'
  5. No results

Expected result

Show come up with the push command

Actual result

No results

Additional information

VS Code Version:
1.28.0
SFDX CLI Version:
43.19.0
OS and version:
High Sierra 10.13.6

@lcampos
Copy link
Contributor

lcampos commented Oct 11, 2018

@domonique-ncino thanks for reporting this, did you get any error on the Output panel for vscode ? Did you try searching for SFDX: Push on the command palette ?

It would be helpful if you could attach an image of what you get on the command palette.

@domonique-ncino
Copy link
Author

screen shot 2018-10-12 at 9 05 07 am

screen shot 2018-10-12 at 9 08 57 am

@vazexqi
Copy link
Contributor

vazexqi commented Oct 12, 2018

@domonique-ncino - Push works with a scratch org. Have you authenticated against a scratch org yet? You can check by doing SFDX: Open Default Org. If there is nothing associated then that means that the commands won't show up.

The technical reasons for this is that the push commands are gated on having an org associated. See https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/packages/salesforcedx-vscode-core/package.json#L204. In particular, the sfdx:default_username_has_change_tracking gate.

@domonique-ncino
Copy link
Author

I authenticated against a scratch org successfully and then tried to run Open Default Org and got this.

screen shot 2018-10-12 at 11 16 38 am

I ran the sfdx force:config:set defaultusername= to set the default username and it worked. Open Default Org now opens my org but I still don't see any new commands for pushing to my default org.

@vazexqi
Copy link
Contributor

vazexqi commented Oct 12, 2018

screenflow

This is how it works on my end.

What does your .sfdx/sfdx-config.json look like? There should be an entry for defaultusername. This is automatically set when you associate a default scratch org. The SFDX: Create Default Scratch Org... does this for you automatically.

@domonique-ncino
Copy link
Author

Works now. Thanks guys for all your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants