Cannot Detect SDK Version

Issue #384 resolved
jrattanpal created an issue

I get following error in intelliJ

10:16 AM    Invalid configuration for module 'TE Recruiting App'
                Module 'TE Recruiting App': The following must be configured properly:
                module must have a generated offline symbol table
                module must use an Illuminated Cloud SDK

                Full resolution of these items may require multiple steps.
                Resolve  Ignore (show balloon)

When I go to Project settings and try to create SDK, I get "Cannot Detect SDK Version". Not sure if it's IntelliJ issue or Illuminated Cloud.

Thanks

Comments (17)

  1. Scott Wells repo owner

    You shouldn't need to create an SDK explicitly. Illuminated Cloud creates one for you after the Offline Symbol Table is created and associates that SDK with the module. Have you tried clicking the "Resolve" button in that balloon?

  2. jrattanpal reporter

    I have. I click that button and nothing happens and it shows the same error again. It doesn't attach any SDK.

  3. Scott Wells repo owner

    Okay, can you do two things for me? First send me your idea.log so I can see if that's failing silently for some reason. Second, would you mind generating the OST explicitly using Build>Illuminated Cloud>Generate Offline Symbol Table and choosing Full?

  4. Vivek M. Chawla

    @RoseSilverSoftware - I was having the same issue, but generating the OST explicitly seems to have fixed the problem.

    I'm still curious about why the "resolve" steps did not fix the problem. I kept going in circles, and it looked like IC never noticed that the module actually was connected to an SDK. Also, since it looks like explicitly generating the OST usually fixes odd problems, do you think the error message should mention it? It might save users' time if they didn't already know that they should do this (I know I forgot about this as a troubleshooting step).

  5. Scott Wells repo owner

    Sorry, been doing holiday weekend stuff and away from my computer. I'm also curious why clicking Resolve doesn't fix the issue. Let me take a look and see if there's a gap in that logic that would be fixed by generating an OST.

  6. Scott Wells repo owner

    Okay, I see how/why this particular issue could occur. Basically it happens when more than one connection is configured for a single module. I need to give a more specific message and automated resolution. I'll take care of that. Thanks for providing the info!

  7. Scott Wells repo owner

    Hah! At a closer glance, I actually already have everything set up to deal with this properly in the module validator...I just call the wrong setter when I detect the state. Testing now, but it looks like a one line change should put this one to bed.

  8. jrattanpal reporter

    I have the latest version. Today I opened a new project and see the same error. But clicking resolve doesn't help.

    Log file attached.

  9. Scott Wells repo owner

    Bummer. Do you mind sending over the following files so I can see what's going on in detail?

    • .idea/illuminatedCloud.xml
    • .idea/modules.xml
    • <your-module>.iml for each IC module in the project

    Obviously feel free to scrub them of anything you don't feel comfortable sharing, and you can email them to me directly instead of attaching them here.

    If you'd prefer not to share these files, I'll instrument this area with significantly more debug logging and give you a new build so that we can corner whatever is going on.

    Sorry for the nuisance!

  10. Scott Wells repo owner

    I've glanced over the provided files and nothing stands out to me. I just instrumented the module validator so that it will tell me exactly why it's deciding that the module is invalid. I'm spinning a build with just that change right now and will attach it to this issue shortly. I'll provide instructions on how to install it and turn on debug logging. Hopefully that will shine a bright light on what's happening.

  11. Scott Wells repo owner

    Okay, here's the build. You can install it using Settings>Plugin>Install plugin from disk. You'll restart the IDE, then in Help>Debug log settings, add:

    #com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleValidator
    

    You can then either close and reopen your project, or you can open the project structure settings. Either one will cause the module validator to kick in. In the resulting log, I'm interested in something like the following:

    2016-09-17 10:46:33,497 [  14016]  DEBUG - lluminatedCloudModuleValidator - Validating module <moduleName>. 
    2016-09-17 10:46:33,531 [  14050]  DEBUG - lluminatedCloudModuleValidator -   hasFacet = true; isIcModule = true 
    ...
    2016-09-17 10:46:33,531 [  14050]  DEBUG - lluminatedCloudModuleValidator -   Validation result for module <moduleName>: IlluminatedCloudModuleValidationResult{hasErrors=false, needsSourceRoot=false, needsModuleType=false, needsFacet=false, needsConnection=false, needsUniqueConnection=false, needsOfflineSymbolTable=false, needsSdk=false} 
    

    There should be additional entries instead of ... that should tell us what looks invalid and why. If you don't mind, send that over and hopefully I can help resolve this for you.

  12. Scott Wells repo owner

    I'm pretty sure that the final state of this was related to the issues identified in #415. Resolving here since I believe I've addressed the original problems from this issue.

  13. Log in to comment