we noticed a problem when working with Jmix Studio on Windows and an active WSL2 configuration. The error message happens when the Gradle build is performed. See the screenshot:
I’m working with Mario and I was the one who had the problem initially, so maybe it’s the easiest thing if I provide some more insights into the problem.
So the whole problem is for me very easy to reproduce:
Install/activate the jmix Plugin in IntelliJ Ultimate on Windows 10, which is installed “normally” on Windows
Open a gradle project, which lives on WSL2. This does not need to be a jmix project, but can be also e.g. a newly generated gradle project, which has a Java class in it (I attached an example to the thread, with which I could reproduce the error)
Click on “Reload all gradle projects” in the gradle view in IntelliJ
The error which Mario reported occurs
Disable the jmix Plugin in IntelliJ
Try step 3 again → Now it works without errors
Enable the jmix Plugin again
Try step 3 again → The error occurs again. So it is pretty obviously somehow connected to the jmix plugin being active
There are some issues with WSL2 and IDEA Gradle tooling subsystem compatibility. The latter is used for Jmix project resolving.
The problem is fixed in https://youtrack.cuba-platform.com/issue/JST-2498.
Nightly release including the fix is expected to be available in two days, so you can test it in your environment.
Thank you! This looks good, I just installed the nightly version of the plugin, and now I was able to import and build these projects on the WSL2 file system:
A real jmix project
The small test project with gradle but without jmix
Also in Windows everything still works as expected.