Hi,
My project’s layout (simple directory, git repository, hasn’t CUBA project as root):
ROOT
– Cuba project 1
– custom_modules
– -- Cuba project 2
– -- Cuba project 3
– distrib/
– -- Cuba project 4
In this example, when build.gradle of CUBA project 2 or 3 is loaded in IntelliJ via “Link project”, all is fine (clean/build/deploy/execution …) but generating App component descriptor. CUBA studio plugin search build.gradle at root, not in subdirectory.
java.lang.Throwable: CUBA Plugin not initialized! /home/kerain/src/stadiam-refacto/build.gradle file not found.
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
at com.haulmont.studio.intellij.project.resolve.CubaProjectStartupActivity.runActivity(CubaProjectStartupActivity.java:72)
java.lang.NullPointerException
at com.haulmont.studio.intellij.action.appcomponent.CreateAppComponentDescriptorAction.createAndOpenAppComponentDescriptor(CreateAppComponentDescriptorAction.java:70)
at com.haulmont.studio.intellij.action.appcomponent.CreateAppComponentDescriptorAction.doActionPerformed(CreateAppComponentDescriptorAction.java:48)
Best regards, Stef.
CUBA Platform version: 7.2.15
CUBA Studio plugin version: 15.6-211
IntelliJ version: IntelliJ IDEA 2021.2.2 (Ultimate Edition)