Idea IDE pluign 1.5.2-231 not working and crashing

java.lang.NullPointerException: Cannot invoke "com.intellij.jpa.facet.JpaModuleConfiguration.getDefaultJPAProviderName()" because "this.myFacet" is null


IntelliJ IDEA 2023.1 (Ultimate Edition)
Build #IU-231.8109.175, built on March 28, 2023
Licensed to **********
Subscription is active until November 16, 2023.
Runtime version: 17.0.6+10-b829.5 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Metal Rendering is ON
Non-Bundled Plugins:
    Batch Scripts Support (1.0.13)
    main.kotlin.com.jimschubert.intellij.swaggercodegen (4.3.1-p0)
    com.intellij.ideolog (203.0.30.0)
    com.crunch42.openapi (1.52)
    com.intellij.properties.bundle.editor (231.8109.91)
    CMD Support (1.0.5)
    org.strangeway.vaadin (231.8109.90)
    soapUI Plugin (3.5)
    com.haulmont.jpab (2023.1.4-231)
    CUBA (15.10-231)
    aws.toolkit (1.65-231)
    com.intellij.spring.websocket (231.8109.90)

Kotlin: 231-1.8.20-IJ8109.175

Hi

Thanks for reporting the issue.
Please attach idea.log file so we can investigate the issue. The error text you provided doesn’t contain Jmix related information.
Also I don’t see Jmix plugin in the Non-Bundled Plugins list. Did you disable it before you get IDE info?

The problem is the same after downgrade to JMIX plugin 1.5.1.
So IMHO it is not the issue of the new plugin version.

I suspect the this file: jmi-studio.xml, something went wrong during the IDE or plugin upgrade.
I dont like the “.main~1” entry/modul.

The error pops up every few seconds when editing some JMIX specific file like or descriptor. It also breaks syntax highlighting colours in IDE editor.

Greenshot 2023-04-19 10.54.26
Greenshot 2023-04-19 10.50.48
stacktrace1.txt (8.1 KB)
jmix-studio.xml (1.6 KB)

idea.log - end f the file…

idea.log (60.8 KB)

Thank you for the logs provided.

I did reproduce this error when deleted JPA facet defined for the project main module.
See the screenshot below:
Screenshot 2023-04-19 at 14.52.14

Do you have such JPA facet defined? If not, then try to create it. Highly likely this will fix the issue.

YouTrack issue created, so you can follow the progress

Module “.main~1” looks strange, I agree. As I now see on your screenshot it doesn’t contain JPA facet, so you have that exceptions.
Does this module recreate if manually delete it from the project structure?
jmix-studio.xml itself doesn’t define any modules, it just stores Jmix Studio settings for the IDE modules of the project.
Modules info stored by the IDE in .idea/modules/*.iml files

I re-created the project - as new empty Jmix projet and then copied all /src/.
After that everything works just fine.

So IMHO something went wrong during the update.
I ran plugin update in IDE, it updated Jmix, JPABuddy and Cuba plugins. After than problems started…