forcedotcom / code-builder-feedback

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

Unable to create a scratch org with Code Builder #187

Closed dustinrediess-sikich closed 1 year ago

dustinrediess-sikich commented 2 years ago

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

git2gus[bot] commented 2 years ago

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

FabienTaillon commented 2 years ago

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.

jonnyhork commented 2 years ago

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!

dustinrediess-sikich commented 2 years ago

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

dustinrediess-sikich commented 2 years ago

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.

smaddox-sf commented 1 year ago

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