forcedotcom / code-builder-feedback

This repository is used to collect feedback for the Code Builder beta.
29 stars 2 forks source link

Can't Create A Scratch Org #48

Closed jjsfdc closed 4 years ago

jjsfdc commented 4 years ago

Describe the bug Scratch org creation fails with error: "You do not have access to the [ScratchOrgInfo] object"

To Reproduce Steps to reproduce the behavior:

  1. Command palette to "SFDX: Create Project"
  2. Choose Standard Project Template
  3. Name it "MyProject"
  4. Choose /root/workspace for the location
  5. Hamburger menu to File->Open and select "~/workspace/MyProject/" (may have to try a few times)
  6. Authorize a dev hub
  7. Command palette to "SFDX: Create Default Scratch Org"
  8. Accept defaults, name scratch org "scratch_1"
  9. Creation fails with error: ERROR running force:org:create: You do not have access to the [ScratchOrgInfo] object

Fails as well in terminal (see screenshot) Works fine on my Mac with same dev hub.

Expected behavior A scratch org would be created.

Screenshots

scratch-org-fail

Desktop (please complete the following information):

Additional context none

muenzpraeger commented 4 years ago

Looking at the username in the terminal output you've authorized the codebuilder org as your DevHub, and not your own one.

jjsfdc commented 4 years ago

yeah, I ripped out what I was connected to and re-connected and it worked this time, I'll close this