Intellij Android Gradle Plugin Unsupported method: Dependencies.getJars() - intellij-idea

I am having issues with my Intellij set up. I am able to build successfully from the command line, but when I try to refresh my build file it never completes and just says 'Gradle project sync in progress...'. When I tail the logs, I get this:
INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [--init-script, /private/var/folders/nj/qb8hxhjx6ng8bp5c0070dt3m0000gn/T/ijinit9082569265104558481.gradle]
INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2 ms
INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
ERROR - plication.impl.ApplicationImpl - null
java.lang.AssertionError: null
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:66)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2077)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeOnEdt(ExternalSystemApiUtil.java:377)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeProjectChangeAction(ExternalSystemApiUtil.java:359)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback.onSuccess(ExternalSystemUtil.java:760)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:434)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3$2.run(ExternalSystemUtil.java:483)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1126)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1103)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2074)
... 19 more
Caused by: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Dependencies.getJars().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240)
at com.sun.proxy.$Proxy128.getJars(Unknown Source)
at com.android.tools.idea.gradle.dependency.Dependency.populate(Dependency.java:99)
at com.android.tools.idea.gradle.dependency.Dependency.extractFrom(Dependency.java:88)
at com.android.tools.idea.gradle.customizer.android.DependenciesModuleCustomizer.setUpDependencies(DependenciesModuleCustomizer.java:50)
at com.android.tools.idea.gradle.customizer.android.DependenciesModuleCustomizer.setUpDependencies(DependenciesModuleCustomizer.java:43)
at com.android.tools.idea.gradle.customizer.AbstractDependenciesModuleCustomizer.customizeModule(AbstractDependenciesModuleCustomizer.java:57)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.customizeModule(AndroidProjectDataService.java:149)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.access$100(AndroidProjectDataService.java:58)
at com.android.tools.idea.gradle.service.AndroidProjectDataService$1.execute(AndroidProjectDataService.java:103)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeOnEdt(ExternalSystemApiUtil.java:374)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeProjectChangeAction(ExternalSystemApiUtil.java:359)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.importData(AndroidProjectDataService.java:94)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:90)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1$1.run(ExternalSystemUtil.java:766)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:329)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1.execute(ExternalSystemUtil.java:763)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
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:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
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)
ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 13.1.4 Build #IU-135.1230
ERROR - plication.impl.ApplicationImpl - JDK: 1.6.0_65
ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
ERROR - plication.impl.ApplicationImpl - Vendor: Apple Inc.
ERROR - plication.impl.ApplicationImpl - OS: Mac OS X
ERROR - plication.impl.ApplicationImpl - Last Action: ExternalSystem.RefreshAllProjects
Anyone have any ideas, I can't seem to figure out the source of either of the errors I am seeing.

If you want to use v0.13 of the Android Gradle plugin at the time of this writing, you should use Android Studio 0.8.11 or later. While IntelliJ has the Android plugin built-in, it doesn't update as often and isn't the latest version, and support for 0.13 of the Gradle plugin was added very recently.

Related

IntelliJ IDEA 2020.1 Build #IU-201.6668.121 PsiAnnotationStubImpl Error

After upgrading to the version in the title, i get the following exception and can't find out what's the problem. It seems like an annotation and parsing error inside of intellij.
To run the application i am using OpenJ9. Intellij itself runs with 11.0.6 like mentioned in the exception below.
2020-04-09 08:49:53,688 [1843359] ERROR - ubs.impl.PsiAnnotationStubImpl - Bad annotation in jar:///home/.m2/repository/org/checkerframework/jdk8/2.8.1/jdk8-2.8.1.jar!/java/util/List.class
com.intellij.util.IncorrectOperationException: Incorrect annotation '#jdk.Profile+Annotation(value=1)'
at com.intellij.psi.impl.PsiJavaParserFacadeImpl.newException(PsiJavaParserFacadeImpl.java:389)
at com.intellij.psi.impl.PsiJavaParserFacadeImpl.createAnnotationFromText(PsiJavaParserFacadeImpl.java:103)
at com.intellij.psi.impl.PsiElementFactoryImpl.createAnnotationFromText(PsiElementFactoryImpl.java:661)
at com.intellij.psi.impl.java.stubs.impl.PsiAnnotationStubImpl.getPsiElement(PsiAnnotationStubImpl.java:56)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl$2.compute(ClsAnnotationImpl.java:55)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl$2.compute(ClsAnnotationImpl.java:50)
at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:37)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl.getParameterList(ClsAnnotationImpl.java:94)
at com.intellij.psi.impl.compiled.ClsAnnotationImpl.appendMirrorText(ClsAnnotationImpl.java:65)
at com.intellij.psi.impl.compiled.ClsElementImpl.appendText(ClsElementImpl.java:232)
at com.intellij.psi.impl.compiled.ClsModifierListImpl.appendMirrorText(ClsModifierListImpl.java:88)
at com.intellij.psi.impl.compiled.ClsElementImpl.appendText(ClsElementImpl.java:224)
at com.intellij.psi.impl.compiled.ClsClassImpl.appendMirrorText(ClsClassImpl.java:333)
at com.intellij.psi.impl.compiled.ClsElementImpl.appendText(ClsElementImpl.java:224)
at com.intellij.psi.impl.compiled.ClsFileImpl.appendMirrorText(ClsFileImpl.java:275)
at com.intellij.psi.impl.compiled.ClsFileImpl.lambda$decompile$2(ClsFileImpl.java:545)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:864)
at com.intellij.psi.impl.compiled.ClsFileImpl.decompile(ClsFileImpl.java:545)
at jd.ide.intellij.JavaDecompilerService.decompile(JavaDecompilerService.java:58)
at jd.ide.intellij.CachingJavaDecompilerService$2.load(CachingJavaDecompilerService.java:81)
at jd.ide.intellij.CachingJavaDecompilerService$2.load(CachingJavaDecompilerService.java:77)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4806)
at jd.ide.intellij.CachingJavaDecompilerService.accessToDecompiledText(CachingJavaDecompilerService.java:62)
at jd.ide.intellij.CachingJavaDecompilerService.decompile(CachingJavaDecompilerService.java:53)
at jd.ide.intellij.JavaLightClassDecompiler.getText(JavaLightClassDecompiler.java:22)
at com.intellij.psi.impl.compiled.ClassFileDecompiler.decompile(ClassFileDecompiler.java:26)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:470)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.getDocument(FileDocumentManagerImpl.java:202)
at com.intellij.psi.impl.compiled.ClsFileImpl.getMirror(ClsFileImpl.java:337)
at com.intellij.psi.impl.compiled.ClsElementImpl.getMirror(ClsElementImpl.java:144)
at com.intellij.debugger.impl.DebuggerUtilsImpl.getPsiClassAndType(DebuggerUtilsImpl.java:145)
at com.intellij.debugger.ui.tree.render.CachedEvaluator.initEvaluatorAndChildrenExpression(CachedEvaluator.java:50)
at com.intellij.debugger.ui.tree.render.CachedEvaluator.lambda$getEvaluator$1(CachedEvaluator.java:89)
at com.intellij.psi.impl.PsiDocumentManagerBase.lambda$commitAndRunReadAction$6(PsiDocumentManagerBase.java:524)
at com.intellij.psi.impl.PsiDocumentManagerBase.lambda$commitAndRunReadAction$7(PsiDocumentManagerBase.java:549)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:898)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
at com.intellij.psi.impl.PsiDocumentManagerBase.commitAndRunReadAction(PsiDocumentManagerBase.java:547)
at com.intellij.psi.impl.PsiDocumentManagerBase.commitAndRunReadAction(PsiDocumentManagerBase.java:524)
at com.intellij.debugger.ui.tree.render.CachedEvaluator.getEvaluator(CachedEvaluator.java:89)
at com.intellij.debugger.ui.tree.render.ExpressionChildrenRenderer.isExpandable(ExpressionChildrenRenderer.java:156)
at com.intellij.debugger.ui.tree.render.CompoundNodeRenderer.isExpandable(CompoundNodeRenderer.java:74)
at com.intellij.debugger.ui.impl.watch.ValueDescriptorImpl.calcRepresentation(ValueDescriptorImpl.java:293)
at com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl.updateRepresentationNoNotify(NodeDescriptorImpl.java:69)
at com.intellij.debugger.ui.impl.watch.NodeDescriptorImpl.updateRepresentation(NodeDescriptorImpl.java:61)
at com.intellij.debugger.engine.JavaValue$1.contextAction(JavaValue.java:178)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:57)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:43)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:151)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:29)
at com.intellij.debugger.impl.InvokeThread.lambda$run$0(InvokeThread.java:138)
at com.intellij.openapi.project.DumbService.runWithAlternativeResolveEnabled(DumbService.java:376)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:125)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:19)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.lambda$run$0(InvokeThread.java:49)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:210)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:48)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.AssertionError: Unexpected token: '+'
at com.intellij.lang.java.parser.JavaParserUtil.parseFragment(JavaParserUtil.java:193)
at com.intellij.psi.impl.source.tree.JavaElementType$JavaDummyElementType.parseContents(JavaElementType.java:263)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:192)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:565)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:191)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:242)
at com.intellij.psi.impl.source.JavaDummyElement.getFirstChildNode(JavaDummyElement.java:69)
at com.intellij.psi.impl.PsiJavaParserFacadeImpl.createAnnotationFromText(PsiJavaParserFacadeImpl.java:101)
2020-04-09 08:49:53,690 [1843361] ERROR - ubs.impl.PsiAnnotationStubImpl - IntelliJ IDEA 2020.1 Build #IU-201.6668.121
2020-04-09 08:49:53,690 [1843361] ERROR - ubs.impl.PsiAnnotationStubImpl - JDK: 11.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-04-09 08:49:53,690 [1843361] ERROR - ubs.impl.PsiAnnotationStubImpl - OS: Linux
2020-04-09 08:49:53,690 [1843361] ERROR - ubs.impl.PsiAnnotationStubImpl - Last Action: ChooseRunConfiguration
This happens when i try to debug my application and some fields have an error value like:
Does anyone have an idea how to fix this?
Edit:
Installed over snap. Maybe i should install it manually to prevent the snap-auto-update.
After disabling
Settings -> Build, Execution, Deployment -> Debugger -> Data Views -> Java -> Enable alternative view for Collections classes
i am able to debug the nested collections. I think this is still a workaround and should be fixed by JetBrains.
Edit:
The approach above works, but at this point it looks like a Java Decompiler plugin does not work correctly. Thus no intellij bug.

IntelliJ plugin failing to load templates

I am using IntelliJ (v2018.3) to create a Dart project. When I select a Dart project in the New Project dialog, IntelliJ seems to get stuck "loading Dart project templates".
I checked the idea.log file. Apparently, something in the Dart plugin is causing the following failure:
2018-11-25 23:27:54,132 [ 41721] ERROR - plication.impl.ApplicationImpl - com/intellij/javascript/debugger/execution/JavascriptDebugConfigurationType
java.lang.NoClassDefFoundError: com/intellij/javascript/debugger/execution/JavascriptDebugConfigurationType
at com.jetbrains.lang.dart.projectWizard.DartGeneratorPeer.lambda$startLoadingTemplates$2(DartGeneratorPeer.java:108)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.intellij.javascript.debugger.execution.JavascriptDebugConfigurationType PluginClassLoader[Dart, 183.4284.122] com.intellij.ide.plugins.cl.PluginClassLoader#2308abea
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2018.3 Build #IC-183.4284.148
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2018-11-25 23:27:54,136 [ 41725] ERROR - plication.impl.ApplicationImpl - OS: Windows 10
2018-11-25 23:27:54,142 [ 41731] ERROR - plication.impl.ApplicationImpl - Plugin to blame: Dart version: 183.4284.122
2018-11-25 23:27:54,142 [ 41731] ERROR - plication.impl.ApplicationImpl - Last Action: WelcomeScreen.CreateNewProject
Clearly, something s failing in the plugin. Something is missing in the intallation?
Does anyone know how I might be able to fix this problem?
The issue is logged as https://youtrack.jetbrains.com/issue/WEB-35995.
As a workaround click Next to create an empty Dart project and then use the stagehand tool manually in Terminal to generate a sample project contents (https://pub.dartlang.org/packages/stagehand).

IntelliJ 14 not able to run scala test

Recently, my newly created IntelliJ project failed to run scala test with following error in console:
2015-07-30 09:46:56,731 [72575363] ERROR -
llij.ide.plugins.PluginManager -
org/jetbrains/idea/maven/project/MavenProjectsManager
java.lang.NoClassDefFoundError:
org/jetbrains/idea/maven/project/MavenProjectsManager
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.provideDefaultWorkingDir(AbstractTestRunConfiguration.scala:122)
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.initWorkingDir(AbstractTestRunConfiguration.scala:116)
at org.jetbrains.plugins.scala.testingSupport.test.scalatest.ScalaTestConfigurationProducer.createConfigurationByLocation(ScalaTestConfigurationProducer.scala:62)
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestConfigurationProducer$class.createConfigurationByElement(AbstractTestConfigurationProducer.scala:30)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.createConfigurationByElement(TestConfigurationProducer.scala:18)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:33)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:18)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:87)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:170)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:106)
at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:131)
at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:43)
at com.intellij.execution.actions.ConfigurationContext.createConfiguration(ConfigurationContext.java:119)
at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:112)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:194)
at com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:243)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:620)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:483)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
2015-07-30 09:46:56,731 [72575363] ERROR -
llij.ide.plugins.PluginManager - IntelliJ IDEA 14.1.4 Build
IU-141.1532.4 2015-07-30 09:46:56,731 [72575363] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_31 2015-07-30
09:46:56,731 [72575363] ERROR - llij.ide.plugins.PluginManager - VM:
Java HotSpot(TM) 64-Bit Server VM 2015-07-30 09:46:56,731 [72575363]
ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
2015-07-30 09:46:56,731 [72575363] ERROR -
llij.ide.plugins.PluginManager - OS: Linux
I searched around, but couldn't find anything useful. Anyone had the same issue, and knows how to fix it?
Found it.
Install the "Maven Integration" plugin from the settings.
If you're wondering how I solved that, I saw that there was a strange error even if you try to create a new spec2 configuration.
This was the error in my console:
[ 73962] ERROR - llij.ide.plugins.PluginManager - org/jetbrains/idea/maven/project/MavenProjectsManager
java.lang.NoClassDefFoundError: org/jetbrains/idea/maven/project/MavenProjectsManager
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.provideDefaultWorkingDir(AbstractTestRunConfiguration.scala:122)
The org.jetbrains.idea.maven.project.MavenProjectsManager class is in the maven plugin.
Installing solved that problem and this one.

Access to the secured property 'sonar.mantis.login.secured' is not possible in preview mode

Server:SonarQube4.4
When run sonar-eclipse plugin to analyze my android project,I got a error log like this:
19:11:02.596 INFO - Execute Findbugs 3.0.0 done: 12857 ms
19:11:02.650 INFO - Sensor FindbugsSensor done: 12913 ms 19:11:02.651
INFO - Sensor CpdSensor... 19:11:02.651 INFO - SonarEngine is used
for java 19:11:02.652 INFO - Cross-project analysis disabled
19:11:02.809 INFO - Sensor CpdSensor done: 158 ms 19:11:02.809 INFO
- Sensor MantisSensor... Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute Sonar at
org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method) at
org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at
org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)
at
org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)
Caused by: Access to the secured property 'sonar.mantis.login.secured'
is not possible in preview mode. The SonarQube plugin which requires
this property must be deactivated in preview mode.
how to fix this error?
You have to deactivate the Mantis plugin in preview mode.
Through the SonarQube web interface, log in as administrator and then go to Settings > General > General and update the "Plugins excluded for Preview and Incremental modes" property with the key of the Mantis plugin.

Error when clicking 'new project' in Intellij 12

when clicking 'new project' it doesn't create it but instead spits out this error message on the console.....
[ 10829] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(451,206),absolute(1321,483),button=1,modifiers=Button1,clickCount=1] on frame1
java.lang.ClassCastException: com.intellij.openapi.module.UnknownModuleType cannot be cast to com.intellij.openapi.module.WebModuleType
at com.intellij.openapi.module.WebModuleType.getInstance(WebModuleType.java:13)
at com.intellij.ide.util.projectWizard.WebProjectTemplate.createModuleBuilder(WebProjectTemplate.java:50)
at com.intellij.ide.util.newProjectWizard.modes.CreateFromTemplateMode.createSteps(CreateFromTemplateMode.java:119)
at com.intellij.ide.util.newProjectWizard.modes.WizardMode.getSteps(WizardMode.java:51)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.initModuleWizard(AddModuleWizard.java:136)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.<init>(AddModuleWizard.java:78)
at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:73)
at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:26)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:169)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:132)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
[ 10831] ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 12.1.4 Build #IC-129.713
[ 10831] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.7.0_21
[ 10831] ERROR - com.intellij.ide.IdeEventQueue - VM: OpenJDK 64-Bit Server VM
[ 10831] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Oracle Corporation
[ 10831] ERROR - com.intellij.ide.IdeEventQueue - OS: Linux
[ 10832] ERROR - com.intellij.ide.IdeEventQueue - Last Action: WelcomeScreen.CreateNewProject
i searched around online and got the impression it was plugin specific but i removed the plugins folder and the problem still persisted....i also downloaded another Intellij Version 12 and ran that but i got the same error so im guessing it's environment related....
im running it on the latest version of Ubuntu
please help!!!
Wrong place. Create an issue on http://youtrack.jetbrains.com/issues/IDEA
Or just search... http://youtrack.jetbrains.com/issue/IDEA-92381