forcedotcom/code-builder-feedback

Unable to create a scratch org with Code Builder

Closed this issue · 6 comments

Getting an error when trying to create a scratch org either with the cli or with the command palette in CB. Does appear there is a version update to the cli available but I can't update it in the environment either.

To Reproduce
Steps to reproduce the behavior:

  1. Launch code builder
  2. Open terminal
  3. Execute sfdx force:org:create command
    OR
  4. Use the 'create a default scratch org' command in the palette

image

Using sfdx update fails
image

Cannot update with NPM
image

This issue has been linked to a new work item: W-11720586

I had the same issue recently, see #179.
Basically I forgot to connect/select a DevHub. As I suggested in the other issue I guess it could be a good idea to catch that and display a proper error message.

Hi @dustinrediess-sikich can you please verify which type org you are authenticated to and have set as your default dev hub? As stated in #179 this may be an issue related to which org you are connected to? Thanks!

I have CodeBuilder running on a scratch org and I believe it was connected to a DE org. My environment has since disappeared and I'm having new issues setting up a new one. Will try to set up CB on a DE org instead.

cb_env_error

I've recreated on a Dev edition and it seems to be working as expected. It is possible the dev hub wasn't connected in the other org.

Hi @dustinrediess-sikich - Im glad you're unblocked. Code Builder is meant to be installed in a more permanent org, so I think the org type is what caused the issue above