Studio 1.4.0 broken with IntelliJ on Windows and project in WSL2
See original GitHub issueWith version 1.4.0 of studio installed, working on the windows subsystem for linux v2 (WSL2) is not possible anymore.
Already without any user action IntelliJ shows an error java.lang.IllegalArgumentException: 'other' is different type of Path
(full stacktrace see below).
Trying to start the jmix application the same error appears again and from then on the “start” button in IntelliJ is disabled.
Uninstalling studio version 1.4.0 and reinstalling 1.3.9 fixes the issue.
Setup:
- Windows 11
- WSL2 with Ubuntu 22.04
- IntelliJ is installed in Windows
- Project sources are located under WSL2 (
\\wsl.localhost\Ubuntu-20.04\path\to\project
) - Java 17 installation is located under WSL2
Full stack trace
2022-10-31 10:25:38,918 [ 105535] SEVERE - #c.i.o.a.i.ApplicationImpl - 'other' is different type of Path
java.lang.IllegalArgumentException: 'other' is different type of Path
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:400)
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42)
at com.haulmont.jmixstudio.util.HPsiUtil.tryGetRelativePath(HPsiUtil.kt:81)
at com.haulmont.jmixstudio.backend.properties.JmixPropertySourceKt.pathString(JmixPropertySource.kt:75)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl$loadProjectModulePropertySourcesNoCache$4.invoke(JmixPropertiesManagerImpl.kt:195)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl$loadProjectModulePropertySourcesNoCache$4.invoke(JmixPropertiesManagerImpl.kt:195)
at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:85)
at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3347)
at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3364)
at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3363)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl.loadProjectModulePropertySourcesNoCache(JmixPropertiesManagerImpl.kt:195)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl.loadPropertySources$lambda-15(JmixPropertiesManagerImpl.kt:167)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl.loadPropertySources(JmixPropertiesManagerImpl.kt:166)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl.loadProperties(JmixPropertiesManagerImpl.kt:80)
at com.haulmont.jmixstudio.intellij.properties.JmixPropertiesManagerImpl.loadProperty(JmixPropertiesManagerImpl.kt:73)
at com.haulmont.jmixstudio.intellij.project.resolve.JmixProjectStartupActivity$markJmixSystemDirsAsExcluded$lambda-7$$inlined$runReadAction$1.compute(actions.kt:62)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:928)
at com.haulmont.jmixstudio.intellij.project.resolve.JmixProjectStartupActivity.markJmixSystemDirsAsExcluded$lambda-7(JmixModuleStateService.kt:369)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:297)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to build using Intellij on Windows and WSL2
Unable to build using Intellij on Windows and WSL2. What steps will reproduce the issue? 1.Import maven project 2.Hit Debug 3. What is...
Read more >Support Gradle integration for projects in WSL2 : IDEA-235720
IDEA-263810 Error "Gradle sync failed: Operation result has not been received" when opening Gradle project in WSL 2 with EAP 5 because of...
Read more >WSL | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA lets you create and open projects in the WSL file system, run, and debug applications in the WSL environment. You can...
Read more >Maven wsl projects is failing to resolve dependencies
Looking in the project view under 'External Libraries' only the Java libraries are showing - no dependencies. The dependencies are loaded locally in...
Read more >Freeze on opening project from WSL2 : IDEA-273398
Happened when re-run IDE. The last opened project was a project inside WSL. IDE runs and freezes on project opening. Nothing happens when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @tkonsta,
This is known minor issue relevant for several specific nighlty build versions. You can update Jmix plugin to the latest nightly build where the problem is fixed.
Hi @Gasloff , I just had another Exception message coming up when I opened a new non-jmix project in IntelliJ. It sounds a bit similar as the one from this topic, but I don’t know if this relates to the initial problem here, or if this is something different.
Should I open a new issue?
The StackTrace was the following: