I cannot create new Apex Class in IDEA

336 views
Skip to first unread message

Konstantin

unread,
May 26, 2016, 9:40:12 AM5/26/16
to Illuminated Cloud Q&A
When I try to create an Apex class in the IDEA, nothing happens, the class does not appear.

Scott

unread,
May 26, 2016, 10:11:45 AM5/26/16
to Illuminated Cloud Q&A
Konstantin, is there anything in idea.log related to this? If you're not familiar with how to do that, it's under Help>Show Log in Explorer/Finder. Let me know what you find and I'll help you figure out why this feature isn't working properly for you.

Regards,
Scott

Konstantin

unread,
May 26, 2016, 10:16:09 AM5/26/16
to Illuminated Cloud Q&A
I get an error in log

java.lang.NoSuchMethodError: com.intellij.ide.fileTemplates.FileTemplateManager.getInstance(Lcom/intellij/openapi/project/Project;)Lcom/intellij/ide/fileTemplates/FileTemplateManager;
at com.illuminatedcloud.intellij.filetype.IlluminatedCloudFileTemplateUtil.getFileTemplateManager(SourceFile:77)
at com.illuminatedcloud.intellij.filetype.AbstractCreateIlluminatedCloudFileAction.addCustomFileTemplates(SourceFile:125)
at com.illuminatedcloud.intellij.filetype.AbstractCreateIlluminatedCloudFileAction.buildDialog(SourceFile:71)
at com.intellij.ide.actions.CreateFromTemplateAction.actionPerformed(CreateFromTemplateAction.java:63)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:739)
at com.intellij.ui.popup.AbstractPopup$18.run(AbstractPopup.java:1343)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:651)
at com.intellij.openapi.wm.impl.FocusManagerImpl.g(FocusManagerImpl.java:632)
at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:602)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$IdleRunnable.runEdt(FocusManagerImpl.java:108)
at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 14.0  Build #IU-139.224.1 
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0_65 
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM 
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - Vendor: Apple Inc. 
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X 
2016-05-26 18:14:15,289 [16307052]  ERROR - llij.ide.plugins.PluginManager - Last Action: NewElement 

Scott

unread,
May 26, 2016, 10:19:57 AM5/26/16
to Illuminated Cloud Q&A
Ah. You're on an older version of the IDE that was missing some things in the plugin SDK.  Please update to the latest released version of IntelliJ IDEA 14 which appears to be 14.1.7:


That update should be included in your current Ultimate Edition license.  Please let me know if that doesn't resolve these issues.

Regards,
Scott

Konstantin

unread,
May 26, 2016, 11:04:55 AM5/26/16
to Illuminated Cloud Q&A
Update to 14.1.7 and it worked, thank you!
With IDEA 15 also will work fine? 

Scott

unread,
May 26, 2016, 11:10:35 AM5/26/16
to Illuminated Cloud Q&A
Glad to hear!  Yes, it supports IDEA 15 and 2016.  I use the last as my own daily driver.

Best regards,
Scott

Reply all
Reply to author
Forward
0 new messages