Gradle integration broken in 13 beta?

In 13 Beta IU-132.947 on Mac OSX the JetGradle panel seems to be missing and in Preferences -> Gradle my project isn't listed as a linked project.

5 comments
Comment actions Permalink

Hi Phill

The gradle tool window is not shown if an ide project is not linked to a gradle  project. Try to reimport the project: main menu => File => Import Project’ and proceed with  the target project dir or build.gradle file there

--Vlad

0
Comment actions Permalink

I tried that and the import failed, then when I re-opened my project I got an exception from the Gradle plugin:

null
java.lang.AssertionError
     at com.intellij.util.xmlb.MapBinding.deserialize(MapBinding.java:165)
     at com.intellij.util.xmlb.OptionTagBinding.deserialize(OptionTagBinding.java:112)
     at com.intellij.util.xmlb.BeanBinding._deserializeInto(BeanBinding.java:165)
     at com.intellij.util.xmlb.BeanBinding.deserialize(BeanBinding.java:122)
     at com.intellij.util.xmlb.XmlSerializer.deserialize(XmlSerializer.java:61)
     at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.deserializeState(DefaultStateSerializer.java:120)
     at com.intellij.openapi.components.impl.stores.XmlElementStorage.getState(XmlElementStorage.java:120)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:265)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$000(ComponentStoreImpl.java:44)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$1.run(ComponentStoreImpl.java:78)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:913)
     at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initComponent(ComponentStoreImpl.java:74)
     at com.intellij.openapi.project.impl.ProjectImpl.initializeComponent(ProjectImpl.java:216)
     at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.initializeInstance(ServiceManagerImpl.java:164)
     at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter$1.compute(ServiceManagerImpl.java:147)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:934)
     at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:139)
     at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:226)
     at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:213)
     at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:200)
     at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
     at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:40)
     at org.jetbrains.plugins.gradle.settings.GradleLocalSettings.getInstance(GradleLocalSettings.java:26)
     at org.jetbrains.plugins.gradle.GradleManager$3.fun(GradleManager.java:150)
     at org.jetbrains.plugins.gradle.GradleManager$3.fun(GradleManager.java:147)
     at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:452)
     at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(ExternalSystemUtil.java:498)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:274)
     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.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:657)
     at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:435)
     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:152)

0
Comment actions Permalink

remove IDEA files ('.idea' folder, *.iml files etc.) and reimport the project again

0
Comment actions Permalink

Thanks that worked.

0
Comment actions Permalink

This doesn't work if I open the project was created using the gradle idea plugin (gradlew idea) task. Is there way to link this project once created using the 'idea' task? We have extend the grails-gradle plugin to set the right source directories and generate run configurations. It would be nice if we can link the projects created and use the gradle tool view.

Anand

0

Please sign in to leave a comment.