Can't assign Connection to the project for Salesforce DX

Issue #1253 resolved
Mikalai Balotska created an issue

I have just started to work with Salesforce DX into Illuminated Cloud 2. I faced with an issue when I can't select any connection where I create DX project. And as a result, I can't create a work version of the project.

Illuminated Cloud 2 ver. 2.0.5.6

IntelliJ IDEA 2018.3.5 (Community Edition) Build #IC-183.5912.21, built on February 26, 2019 JRE: 1.8.0_152-release-1343-b28 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.12.6

Comments (7)

  1. Scott Wells repo owner

    Resolving assuming that the provided link will help with creation of a scratch org for the SFDX project. If there are still issues, feel free to reopen with details about the nature of those issues.

  2. Mikalai Balotska reporter

    Yeah, I already tried to create scratch org. But I receive the error "No Dev Hub Found" (see image). In IDE I have a connection with my Developer Sandbox, where I enabled Dev Hub option. Could you please help with that? P.S.: Because I thought, that, first of all, I have to create DX project and then scratch org.

    dev1.jpg dev2.jpg

  3. Scott Wells repo owner

    Ah, okay. Thanks for the update. In the current official build you have to auth into the dev hub via the CLI. Check out Log In to the Dev Hub here:

    https://trailhead.salesforce.com/en/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx

    There is a pre-release/beta build posted here:

    https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1184/support-for-sfdx-projects-that-dont-use

    that allows you to do all of this from directly within IC. I will likely be including that in the official build within the next week or so.

    Once you have auth'ed into the dev hub, you should be able to create a scratch org from that dev hub from within IC.

    I'll leave this open until you're good to go.

  4. Mikalai Balotska reporter

    Yes! It's resolved now. I have just received the expected result. The problem was into CLI. The default Dev Hub org was deleted somehow :)

    Thanks a lot!

  5. Scott Wells repo owner

    Glad to hear, and sorry for resolving it before you had a solid fix. Thanks for the update!

  6. Log in to comment