Illuminated Cloud Project Generation broken with Idea 2018.1 and v1.8.2.3 of plugin

Issue #959 resolved
Corey Yeatman created an issue

Hi,

I have just updated to 2018.1 of IntelliJ IDEA (with v1.8.2.3-idea14 of the plugin), and now creating a new Illuminated Cloud project seems to be broken ... it does not actually retrieve any metadata so the 'src' folder is left empty. This was working just the other day under 2017.3. The Idea logs show the following output at the time of project generation - with a 'dialog' error as below (NoSuchMethodError).

Uninstalling and re-installing the plugin hasn't helped. Can't see this issue reported by anyone else, so not sure if this is a problem on my end or not.

Is v1.8.2.3 meant to be compatible with 2018.1 of Idea?

2018-04-09 17:43:50,557 [6391963]   INFO - ellij.project.impl.ProjectImpl - 182 project components initialized in 90 ms 
2018-04-09 17:43:50,557 [6391963]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms 
2018-04-09 17:43:51,056 [6392462]   INFO - CompilerBackwardReferenceIndex - backward reference index version differ due to: class java.io.FileNotFoundException 
2018-04-09 17:43:51,224 [6392630]   INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 1 millis 
2018-04-09 17:43:51,225 [6392631]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.grunt.GruntfileManager 
2018-04-09 17:43:51,225 [6392631]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.gulp.GulpfileManager 
2018-04-09 17:43:51,226 [6392632]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.npm.PackageJsonFileManager 
2018-04-09 17:43:51,234 [6392640]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 13ms; general responsiveness: ok; EDT responsiveness: ok 
2018-04-09 17:43:51,313 [6392719]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Anonymous Apex) or icon jar:file:/Applications/IntelliJ%20IDEA.app/Contents/lib/icons.jar!/nodes/ejbFinderMethod.png 
2018-04-09 17:43:51,315 [6392721]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  SOQL Query) or icon jar:file:/Applications/IntelliJ%20IDEA.app/Contents/lib/icons.jar!/nodes/dataSchema.png 
2018-04-09 17:43:51,439 [6392845]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 12ms; general responsiveness: ok; EDT responsiveness: ok 
2018-04-09 17:43:51,476 [6392882]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 37ms; general responsiveness: ok; EDT responsiveness: ok 
2018-04-09 17:43:51,541 [6392947]   INFO - tartup.impl.StartupManagerImpl - /Users/corey/Data/Development/Projects/Salesforce/Live/ASF - Production/.idea case-sensitivity: expected=false actual=false 
2018-04-09 17:43:51,541 [6392947]   INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>] 
2018-04-09 17:43:51,559 [6392965]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.grunt.GruntService 
2018-04-09 17:43:51,559 [6392965]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.gulp.GulpService 
2018-04-09 17:43:51,559 [6392965]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.npm.NpmScriptsService 
2018-04-09 17:43:51,669 [6393075]  ERROR - pplication.impl.LaterInvocator - com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog; 
java.lang.NoSuchMethodError: com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog;
    at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.dismissModalDialogIfNecessary(SourceFile:475)
    at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.retrieveMetadata(SourceFile:397)
    at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.access$1000(SourceFile:61)
    at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder$2.run(SourceFile:354)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:837)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:434)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2018-04-09 17:43:51,670 [6393076]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 2018.1  Build #IU-181.4203.550 
2018-04-09 17:43:51,670 [6393076]  ERROR - pplication.impl.LaterInvocator - JDK: 1.8.0_152-release 
2018-04-09 17:43:51,670 [6393076]  ERROR - pplication.impl.LaterInvocator - VM: OpenJDK 64-Bit Server VM 

Comments (12)

  1. Corey Yeatman reporter

    Note that metadata retrieval for existing Illuminated Cloud projects I've previously created seems to still work ok.

  2. Scott Wells repo owner

    Hi, Corey. Sorry for the issue. It looks like JetBrains made an incompatible change in the plugin SDK in 2018.1. I'll issue an update very shortly to accommodate for it.

  3. Scott Wells repo owner

    Just uploaded 1.8.2.4 which should address this issue. Please let me know if you still see it after updating.

  4. Corey Yeatman reporter

    Hi Scott, unfortunately it didn't fix it ... I updated the plugin, restarted the IDE, double-checked it was v1.8.2.4 now installed, and still got this error when creating a new project:

    2018-04-10 13:42:26,370 [ 641453]   INFO - ellij.project.impl.ProjectImpl - 182 project components initialized in 77 ms 
    2018-04-10 13:42:26,371 [ 641454]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms 
    2018-04-10 13:42:26,409 [ 641492]   WARN - dktype.IlluminatedCloudSdkType - Failed to set the SDK for project 'Test' and connection 'Test - Partial Sandbox' 
    2018-04-10 13:42:26,815 [ 641898]   INFO - CompilerBackwardReferenceIndex - backward reference index version differ due to: class java.io.FileNotFoundException 
    2018-04-10 13:42:26,969 [ 642052]   INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 0 millis 
    2018-04-10 13:42:26,978 [ 642061]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.grunt.GruntfileManager 
    2018-04-10 13:42:26,978 [ 642061]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.gulp.GulpfileManager 
    2018-04-10 13:42:26,978 [ 642061]   INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.npm.PackageJsonFileManager 
    2018-04-10 13:42:26,979 [ 642062]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 12ms; general responsiveness: ok; EDT responsiveness: ok 
    2018-04-10 13:42:27,072 [ 642155]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Anonymous Apex) or icon jar:file:/Applications/IntelliJ%20IDEA.app/Contents/lib/icons.jar!/nodes/ejbFinderMethod.png 
    2018-04-10 13:42:27,073 [ 642156]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  SOQL Query) or icon jar:file:/Applications/IntelliJ%20IDEA.app/Contents/lib/icons.jar!/nodes/dataSchema.png 
    2018-04-10 13:42:27,163 [ 642246]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 13ms; general responsiveness: ok; EDT responsiveness: ok 
    2018-04-10 13:42:27,167 [ 642250]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4ms; general responsiveness: ok; EDT responsiveness: ok 
    2018-04-10 13:42:27,267 [ 642350]   INFO - tartup.impl.StartupManagerImpl - /Users/corey/Data/Development/Projects/Salesforce/Live/Test/.idea case-sensitivity: expected=false actual=false 
    2018-04-10 13:42:27,268 [ 642351]   INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>] 
    2018-04-10 13:42:27,285 [ 642368]  ERROR - pplication.impl.LaterInvocator - com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog; 
    java.lang.NoSuchMethodError: com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog;
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.dismissModalDialogIfNecessary(SourceFile:475)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.retrieveMetadata(SourceFile:397)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.access$1000(SourceFile:61)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder$2.run(SourceFile:354)
        at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
        at java.awt.EventQueue.access$500(EventQueue.java:98)
        at java.awt.EventQueue$3.run(EventQueue.java:715)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:837)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:434)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    2018-04-10 13:42:27,285 [ 642368]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 2018.1  Build #IU-181.4203.550 
    2018-04-10 13:42:27,285 [ 642368]  ERROR - pplication.impl.LaterInvocator - JDK: 1.8.0_152-release 
    2018-04-10 13:42:27,285 [ 642368]  ERROR - pplication.impl.LaterInvocator - VM: OpenJDK 64-Bit Server VM 
    2018-04-10 13:42:27,285 [ 642368]  ERROR - pplication.impl.LaterInvocator - Vendor: JetBrains s.r.o 
    2018-04-10 13:42:27,286 [ 642369]  ERROR - pplication.impl.LaterInvocator - OS: Mac OS X 
    2018-04-10 13:42:27,286 [ 642369]  ERROR - pplication.impl.LaterInvocator - Last Action: WelcomeScreen.RemoveSelected 
    2018-04-10 13:42:27,403 [ 642486]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.grunt.GruntService 
    2018-04-10 13:42:27,404 [ 642487]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.gulp.GulpService 
    2018-04-10 13:42:27,404 [ 642487]   INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.npm.NpmScriptsService 
    2018-04-10 13:42:27,421 [ 642504]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 1143 ms 
    2018-04-10 13:42:27,426 [ 642509]   WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. 
    2018-04-10 13:42:27,439 [ 642522]   INFO - cloudConfig.CloudConfigManager - === StatusBar.start create === 
    2018-04-10 13:42:27,447 [ 642530]   INFO - ellij.license.LicenseValidator - Server license validation result was Genuine. 
    2018-04-10 13:42:27,883 [ 642966]   INFO - j.ide.ui.OptionsTopHitProvider - 74 ms spent to cache options in project 
    2018-04-10 13:42:32,624 [ 647707]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1ms; general responsiveness: ok; EDT responsiveness: ok 
    2018-04-10 13:42:32,626 [ 647709]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2ms; general responsiveness: ok; EDT responsiveness: ok 
    2018-04-10 13:42:35,495 [ 650578]   INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings. 
    
  5. Scott Wells repo owner

    Ugh...it looks like it didn't pick up the build with the fix properly. Just verified the fix 100% myself to make sure I'm not making the same mistake twice. I've just posted a new update. Do you mind seeing whether it does or does not eliminates the issue for you before I resolve this ticket?

  6. Corey Yeatman reporter

    You won't want to hear this but unfortunately - it still didn't work - same error as before. Have double checked it is indeed saying it is 1.8.2.5 is installed and restarted IntelliJ Idea as well.

    Hopefully I'm not doing something really dumb here, but its finding the update when I do 'check for updates' and definitely looks like its updating the plugin. Is there any way that update could be failing and I just cant see it? Is it worth de-registering / uninstalling / reinstalling / re-reigstering the plugin completely?

    2018-04-10 15:06:05,466 [ 334541]  ERROR - pplication.impl.LaterInvocator - com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog; 
    java.lang.NoSuchMethodError: com.intellij.openapi.wm.impl.ModalityHelper.getBlockerForFocusedFrame()Ljavax/swing/JDialog;
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.dismissModalDialogIfNecessary(SourceFile:475)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.retrieveMetadata(SourceFile:397)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder.access$1000(SourceFile:61)
        at com.illuminatedcloud.intellij.moduletype.IlluminatedCloudModuleBuilder$2.run(SourceFile:354)
        at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
        at java.awt.EventQueue.access$500(EventQueue.java:98)
        at java.awt.EventQueue$3.run(EventQueue.java:715)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:837)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:434)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    2018-04-10 15:06:05,467 [ 334542]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 2018.1  Build #IU-181.4203.550 
    
  7. Scott Wells repo owner

    I just decompiled the class and see what's going on. Basically when the plugin builds, it's linking with an earlier version of the SDK that has the previous signature (the return type changed from JDialog to Dialog). When it executes in 2018.1, the runtime can't resolve the signature. It should be able to do so, but the Java compiler optimizer is static linking the reference.

    I've attached a new build here where I've changed the way it links to that behavior. Do you mind installing it using Settings>Plugins>Install plugin from disk to see whether third time is the charm? If not and this is causing issues for you, you may need to roll IntelliJ back to 2017.3.* until I can produce the correct fix (should be tomorrow if this one doesn't do it).

    Sorry for the repeated false starts...

  8. Corey Yeatman reporter

    Hi Scott - yes, that zipped version worked. Thanks for the speedy fix and response - appreciate it. That keeps me going, and I'll await the "correct fix" in the next few days. Cheers.

  9. Scott Wells repo owner

    Whew! Thanks for confirming, and for your patience. I'll get a release out today. It'll be exactly what you already have, so no need to update until you're prompted again for a build.

  10. Log in to comment