IntelliJ Liferay plugin update failed for ActionGroup( - intellij-idea

The IntelliJ plugin for Liferay is not functional. I get this error:
update failed for ActionGroup(com.liferay.ide.idea.ui.actions.LiferayActionGroup, id=LiferayActionGroup) with text=Liferay
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
Any thoughts?
I tried disabling the plugin and reenabling it, invalidating caches and restarts, and a few other things.

Related

React native screens configuration failed

trying to build an android project,and gradle fails with this exception:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':react-native-screens'.
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'archiveClassifier' for task ':react-native-screens:androidJavadocJar' of type org.gradle.api.tasks.bundling.Jar.
According to the PR that created this change you need Gradle 4.10+. So if you update it should work again. You need to update the version of the gradle plugin to 3.3.2 as well. I'm not sure but I do think you could even update to Gradle 5.x and build plugin 3.4+.
Link referenced to Create My Answer

sbt.compiler.EvalException: Type Error in Expression

I'm quite new with IntelliJ (and on this site too tbh) and have been using it for only a couple of days. When I tried to build my project this exception came up. I tried to solve the problem but to no avail. I tried to see if the same problem occured on a newly created project and yes it does. So the code I've written should have no influence on the build. IƤve also checked if there might be a problem with the sbt version but I am up to date.
This is what the error looks like. I have absolutely no clue how to solve this so any help would be very much appreciated.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from C:\Users\Johner-Institut\.sbt\0.13\plugins
Waiting for lock on C:\Users\Johner-Institut\.ivy2\.sbt.ivy.lock to be available...
[info] Loading project definition from C:\Users\Johner-Institut\Desktop\Project\project
C:\Users\Johner-Institut\Desktop\Project\build.sbt:5: error: recursive value project needs type
lazy val `project` = (project in file(".")).enablePlugins(PlayScala)
^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
Don't use project as a name for sbt project, that's why the recursion error. Try something like:
lazy val root = (project in file(".")).enablePlugins(PlayScala)

"sbt launcher does not exist" when attempting to open sbt project in Intellij

Here is an attempt to open an sbt project in Intellij 2016.3 ultimate:
We are greeted with the following friendly notification:
Afa sbt details: I have installed sbt via homebrew and
That path truly does not exist. So I went to Preferences | Build Execution Deployment | SBT to fix the path:
$ll /usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
-rwxr-xr-x 1 boescst USWIN\Domain Users 1210231 Oct 28 10:46 /usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
Let' update the path:
However the same error message still occurs. Is there some other place in Intellij that needs to be updated?
The following happened when trying to import an sbt project:
The following dialog has a Show Logs link but clicking on it does nothing ..
Another update I opened the idea.log manually. It shows basically same information:
2017-01-04 18:07:21,280 [ 34384] WARN -
nal.AbstractExternalSystemTask - SBT launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.jar
com.intellij.openapi.externalSystem.model.ExternalSystemException: SBT
launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.jar at
org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:61)
at
org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:28)
at
com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.a(RemoteExternalSystemProjectResolverImpl.java:37)
at
com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
at
com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
at
com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
at
com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:51)
at
com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:139)
at
com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:125)
at
com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:414)
at
com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.run(ExternalSystemUtil.java:486)
at
com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)
at
com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)
at
com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at
com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at
com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at
com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at
com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:569)
at
com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
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)
java.io.FileNotFoundException: SBT launcher does not exist:
/usr/local/Cellar/sbt/0.13.9/libexec/sbt-launch.ja
I have repeatedly tried changing the sbt launch settings. The error still occurs. Intellij is caching that information somewhere. I've even deleted the .idea and .iml files. Same result. Now I have reinstalled Intellij . Still same issue! What the heck !!!???
For Launcher, in preference window, pick "Bundled" option instead of custom.

Cannot refresh gradle project in IntelliJ

Why does this happen? There is no reason, I'm just trying to press the refresh button and it never works.
Error:Timeout waiting to lock buildscript class cache for build file '/home/dac/proj/spring-boot-master/spring-boot-samples/spring-boot-sample-jetty-jsp/build.gradle' (/home/dac/.gradle/caches/2.3/scripts/build_68kj36zmyqst1ei1zilpv1rml/ProjectScript/buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 9475
Owner Operation: unknown
Our operation: Initialize cache
Lock file: /home/dac/.gradle/caches/2.3/scripts/build_68kj36zmyqst1ei1zilpv1rml/ProjectScript/buildscript/cache.properties.lock
The issue you are seeing is likely related to GRADLE-2795. Try to upgrade Gradle to 2.14 (which is the latest final version of Gradle at the time of writing). It should have this issue fixed.

springfox 2.2.3 snapshot dependencies adding failed because of missing nexus-maven-repository-index.properties

I setup my project with springfox 2.2.3 snapshot version in IDEA 14 with gradle. I follow instruction 2.1.1. Gradle Snapshot. I failed with error that maven repository cannot be indexed and see exception in IDEA's log:
WARN - #org.jetbrains.idea.maven - Failed to update Maven indices for: [com.intellij.util.CachedValueImpl#a1d13c] http://oss.jfrog.org/simple/oss-snapshot-local/io/springfox
org.jetbrains.idea.maven.server.MavenServerIndexerException: java.lang.RuntimeException: java.io.FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist
I tried both repositories and both failed:
http://oss.jfrog.org/simple/oss-snapshot-local/io/springfox/
http://oss.jfrog.org/oss-snapshot-local/io/springfox/
Could anyone have any idea how to fix the issue?
I tried to download dependencies manually and put them in my local .m2 directory and setup in gradle mavenLocal() instead of maven {url ...} but my attempt failed with IDEA's warning on Gradle refresh operation:
Warning:<i><b>project ':data-service': Web Facets/Artifacts will not be configured</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':data-service:runtime'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find io.springfox:springfox-swagger2:2.2.3-SNAPSHOT.
Required by:
parseq:data-service:2.4.0 alpha</i>
Now I think that should also manually add transitive dependencies for springfox package. But it looks ugly and I think I should not go this way.
Does anyone has idea what should I do?
I found issues with dependency donwloading:
* when I work from corporate network I have SSL certificate issue
* initially I added maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } into buildscript {...} section, I changed it to repositories {...} and fixed the issue
* also I updated my gradle to 2.4 version (but it didn't help)
Now my starting issue is fixed.